diff --git a/gradle.properties b/gradle.properties index 5d905080..9d672377 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,4 +9,5 @@ org.gradle.welcome=never android.useAndroidX=true android.enableJetifier=false + android.suppressUnsupportedCompileSdk=35 diff --git a/mobile/build.gradle b/mobile/build.gradle index 8fc17ad0..51cf4936 100644 --- a/mobile/build.gradle +++ b/mobile/build.gradle @@ -8,8 +8,10 @@ plugins { /** Load API access-token from file `token.properties` */ if (rootProject.file('token.properties').exists()) { def apikeys = new Properties() - apikeys.load(new FileInputStream(rootProject.file('token.properties'))) + def fis = new FileInputStream(rootProject.file('token.properties')) + apikeys.load(fis) project.ext.set('accessToken', apikeys['accessToken']) + fis.close() } else { println "*** File `token.properties` is missing; the GitHub API may be rate-limited." println "*** The personal access token needs to be defined with an EditTextPreference."