Upgrade to Gradle/Gradle Android plugin 7.x

Additionally, enable some more linting (per the Android plugin release
notes' recommendation) and fix a lint warning.
This commit is contained in:
AJ Jordan 2021-10-19 23:09:54 -07:00
parent 80960e23fc
commit fbc390b714
4 changed files with 4 additions and 3 deletions

View file

@ -37,6 +37,7 @@ android {
lintOptions {
abortOnError true
disable "MissingTranslation"
checkDependencies true
}
testOptions {

View file

@ -103,7 +103,7 @@ public class BackupsPreferencesFragment extends PreferencesFragment {
return;
}
int flags = data.getFlags() & (Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
int flags = Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_WRITE_URI_PERMISSION;
getContext().getContentResolver().takePersistableUriPermission(data.getData(), flags);
Preferences prefs = getPreferences();

View file

@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.17'
// NOTE: Do not place your application dependencies here; they belong

View file

@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip