[fenix] Integrate Android Autofill support into Nightly and debug builds.
parent
325e5619ca
commit
d0152f7e79
@ -0,0 +1,19 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.autofill
|
||||
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import mozilla.components.feature.autofill.AutofillConfiguration
|
||||
import mozilla.components.feature.autofill.ui.AbstractAutofillConfirmActivity
|
||||
import org.mozilla.fenix.ext.components
|
||||
|
||||
/**
|
||||
* Activity responsible for asking the user to confirm before auto-filling a third-party app.
|
||||
*/
|
||||
@RequiresApi(Build.VERSION_CODES.O)
|
||||
class AutofillConfirmActivity : AbstractAutofillConfirmActivity() {
|
||||
override val configuration: AutofillConfiguration by lazy { components.autofillConfiguration }
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.autofill
|
||||
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import mozilla.components.feature.autofill.AbstractAutofillService
|
||||
import mozilla.components.feature.autofill.AutofillConfiguration
|
||||
import org.mozilla.fenix.ext.components
|
||||
|
||||
/**
|
||||
* Service responsible for implementing Android's Autofill framework.
|
||||
*/
|
||||
@RequiresApi(Build.VERSION_CODES.O)
|
||||
class AutofillService : AbstractAutofillService() {
|
||||
override val configuration: AutofillConfiguration by lazy { components.autofillConfiguration }
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
package org.mozilla.fenix.autofill
|
||||
|
||||
import android.os.Build
|
||||
import androidx.annotation.RequiresApi
|
||||
import mozilla.components.feature.autofill.AutofillConfiguration
|
||||
import mozilla.components.feature.autofill.ui.AbstractAutofillUnlockActivity
|
||||
import org.mozilla.fenix.ext.components
|
||||
|
||||
/**
|
||||
* Activity responsible for unlocking the autofill service by asking the user to verify.
|
||||
*/
|
||||
@RequiresApi(Build.VERSION_CODES.O)
|
||||
class AutofillUnlockActivity : AbstractAutofillUnlockActivity() {
|
||||
override val configuration: AutofillConfiguration by lazy { components.autofillConfiguration }
|
||||
}
|
Loading…
Reference in New Issue