Skip to content

Commit

Permalink
Update dependencies, cleanup gradle files, suppress a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
penn5 committed Jun 16, 2021
1 parent 019ddab commit 10b576b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion screengrab/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.1'
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
}
}
Expand Down
5 changes: 2 additions & 3 deletions screengrab/example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'com.google.android.material:material:1.3.0'

testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13.2'

androidTestImplementation 'androidx.test:runner:1.3.0'
androidTestImplementation 'androidx.test:rules:1.3.0'
Expand Down
12 changes: 6 additions & 6 deletions screengrab/screengrab-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ plugins {
id "signing"
}

static String lookupProperty(Project project, String gradlePropName, String envVarName) {
return project.hasProperty(gradlePropName) ? project.property(gradlePropName) : System.getenv()[envVarName]
}

Object[] versionInfo = screengrabVersion(rootProject.file('version.properties'))
String versionNameString = versionInfo[0] as String
Expand All @@ -36,7 +33,7 @@ android {
}

dependencies {
implementation "androidx.annotation:annotation:1.1.0"
implementation "androidx.annotation:annotation:1.2.0"
implementation 'androidx.test:core:1.3.0'
implementation 'androidx.test:runner:1.3.0'
implementation 'androidx.test:rules:1.3.0'
Expand Down Expand Up @@ -144,12 +141,15 @@ afterEvaluate {

/*
* Requires the following settings in ~/.gradle/gradle.properties
* signing.enabled=true
* signing.keyId=516466E9 # last 8 digits of signing key (can get with `gpg -K`)
* signing.password=
* signing.secretKeyRingFile=/Users/josh/.gnupg/secring.gpg # export with `gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg`
*/
signing {
sign publishing.publications
if (new Boolean(project.findProperty('signing.enabled'))) {
signing {
sign publishing.publications
}
}

task cleanBuildPublishLocal(type: GradleBuild) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class LocaleUtil {

private static final String TAG = LocaleUtil.class.getSimpleName();

@SuppressWarnings({"JavaReflectionMemberAccess"})
@SuppressWarnings({"JavaReflectionMemberAccess", "deprecation", "RedundantSuppression"})
@SuppressLint("PrivateApi")
public static LocaleListCompat changeDeviceLocaleTo(LocaleListCompat locale) {
if (locale == null) {
Expand Down

0 comments on commit 10b576b

Please sign in to comment.