Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AutofillFramework sample #57

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions AutofillFramework/Application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ List<String> dirs = [
'main'] // main sample code; look here for the interesting stuff.

android {
namespace 'com.example.android.autofill.app'

compileSdkVersion 28

defaultConfig {
Expand Down
2 changes: 2 additions & 0 deletions AutofillFramework/afservice/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'com.android.application'

android {
namespace 'com.example.android.autofill.service'

compileSdkVersion 28

defaultConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,12 @@ public void onCreate(Bundle savedInstanceState) {
break;
}
loggingLevelContainer.setOnCheckedChangeListener((group, checkedId) -> {
switch (checkedId) {
case R.id.loggingOff:
mPreferences.setLoggingLevel(Util.LogLevel.Off);
break;
case R.id.loggingDebug:
mPreferences.setLoggingLevel(Util.LogLevel.Debug);
break;
case R.id.loggingVerbose:
mPreferences.setLoggingLevel(Util.LogLevel.Verbose);
break;
if (checkedId == R.id.loggingOff) {
mPreferences.setLoggingLevel(Util.LogLevel.Off);
} else if (checkedId == R.id.loggingDebug) {
mPreferences.setLoggingLevel(Util.LogLevel.Debug);
} else if (checkedId == R.id.loggingVerbose) {
mPreferences.setLoggingLevel(Util.LogLevel.Verbose);
}
});
RadioGroup dalCheckRequirementContainer = findViewById(R.id.dalCheckRequirementContainer);
Expand All @@ -163,16 +159,12 @@ public void onCreate(Bundle savedInstanceState) {
break;
}
dalCheckRequirementContainer.setOnCheckedChangeListener((group, checkedId) -> {
switch (checkedId) {
case R.id.dalDisabled:
mPreferences.setDalCheckRequired(Disabled);
break;
case R.id.dalLoginOnly:
mPreferences.setDalCheckRequired(LoginOnly);
break;
case R.id.dalAllUrls:
mPreferences.setDalCheckRequired(AllUrls);
break;
if (checkedId == R.id.dalDisabled) {
mPreferences.setDalCheckRequired(Disabled);
} else if (checkedId == R.id.dalLoginOnly) {
mPreferences.setDalCheckRequired(LoginOnly);
} else if (checkedId == R.id.dalAllUrls) {
mPreferences.setDalCheckRequired(AllUrls);
}
});
}
Expand Down
6 changes: 3 additions & 3 deletions AutofillFramework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath 'com.android.tools.build:gradle:8.1.1'
}
}

allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
3 changes: 2 additions & 1 deletion AutofillFramework/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Mon Sep 04 11:10:48 CEST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists