Update gradle plugin version and other properties

This was basically done by creating a new flutter project and comparing the
different generated files
This commit is contained in:
Roland Geider
2023-02-07 21:39:14 +01:00
parent c42dc0c825
commit 0e0ae643cb
3 changed files with 16 additions and 7 deletions

View File

@@ -44,12 +44,12 @@ if (localMapsPropertiesFile.exists()) {
project.logger.info('Load maps properties from environment')
try {
wgerProperties['WGER_API_KEY'] = System.getenv('WGER_API_KEY')
} catch(NullPointerException e) {
} catch (NullPointerException e) {
project.logger.warn('Failed to load WGER_API_KEY from environment.', e)
}
}
def wgerApiKey = wgerProperties.getProperty('WGER_API_KEY')
if(wgerApiKey == null){
if (wgerApiKey == null) {
wgerApiKey = ""
project.logger.error('Wger Api Key not configured. Set it in `/fastlane/metadata/android/envfiles/wger.properties` or in the environment variable `WGER_API_KEY`')
}
@@ -58,6 +58,15 @@ android {
compileSdkVersion 33
ndkVersion "25.1.8937393"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

View File

@@ -1,12 +1,12 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.7.10'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.android.tools.build:gradle:7.2.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
@@ -14,7 +14,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

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.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip