Skip to content

Commit d44c79e

Browse files
committed
Update to android 14
1 parent 5c751ec commit d44c79e

File tree

9 files changed

+52
-29
lines changed

9 files changed

+52
-29
lines changed

.github/workflows/build_android_store.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ jobs:
2121
ANDROID_KEYSTORE_ALIAS: upload
2222
ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PW }}
2323
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PW }}
24+
JAVA_VERSION: "17.x"
25+
JAVA_DISTRIBUTION: "zulu"
2426
steps:
2527
- uses: actions/checkout@v2
2628

29+
- uses: actions/setup-java@v3
30+
with:
31+
java-version: ${{ env.JAVA_VERSION }}
32+
distribution: ${{ env.JAVA_DISTRIBUTION }}
33+
2734
- uses: subosito/flutter-action@v2
2835
with:
29-
flutter-version: 3.16.0
36+
flutter-version: 3.16.2
3037
channel: stable
3138
cache: true
3239

.github/workflows/build_microsoft_store.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- uses: subosito/flutter-action@v2
2424
with:
25-
flutter-version: 3.16.0
25+
flutter-version: 3.16.2
2626
channel: stable
2727
cache: true
2828

.github/workflows/deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- uses: subosito/flutter-action@v2
2626
with:
27-
flutter-version: 3.16.0
27+
flutter-version: 3.16.2
2828
channel: stable
2929
cache: true
3030

@@ -65,7 +65,7 @@ jobs:
6565

6666
- uses: subosito/flutter-action@v2
6767
with:
68-
flutter-version: 3.16.0
68+
flutter-version: 3.16.2
6969
channel: stable
7070
cache: true
7171

.github/workflows/deploy_develop.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: subosito/flutter-action@v2
2525
with:
26-
flutter-version: 3.16.0
26+
flutter-version: 3.16.2
2727
channel: stable
2828
cache: true
2929

.github/workflows/pr_preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
- uses: subosito/flutter-action@v2
2222
with:
23-
flutter-version: 3.16.0
23+
flutter-version: 3.16.2
2424
channel: stable
2525
cache: true
2626

android/app/build.gradle

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,37 @@ if (keystorePropertiesFile.exists()) {
2727
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2828
}
2929

30+
def signingKeyStorePassword = keystoreProperties.getProperty('storePassword')
31+
if (signingKeyStorePassword == null) {
32+
signingKeyStorePassword = System.getenv('ANDROID_KEYSTORE_PASSWORD')
33+
}
34+
35+
def signingKeyAlias = keystoreProperties.getProperty('keyAlias')
36+
if (signingKeyAlias == null) {
37+
signingKeyAlias = System.getenv("ANDROID_KEYSTORE_ALIAS")
38+
}
39+
40+
def signingKeyPassword = keystoreProperties.getProperty('keyPassword')
41+
if (signingKeyPassword == null) {
42+
signingKeyPassword = System.getenv('ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD')
43+
}
44+
45+
def signingKeyStoreFilePath = keystoreProperties.getProperty('storeFile')
46+
if (signingKeyStoreFilePath == null) {
47+
signingKeyStoreFilePath = System.getenv("ANDROID_KEYSTORE_PATH")
48+
}
49+
if (signingKeyStoreFilePath == null) {
50+
signingKeyStoreFilePath = "../island-puzzle.jks"
51+
}
52+
3053
apply plugin: 'com.android.application'
3154
apply plugin: 'kotlin-android'
3255
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
3356

3457
android {
35-
compileSdkVersion 31
58+
namespace "nl.renefloor.puzzle"
59+
compileSdkVersion 34
60+
ndkVersion "25.1.8937393"
3661

3762
compileOptions {
3863
sourceCompatibility JavaVersion.VERSION_1_8
@@ -49,8 +74,8 @@ android {
4974

5075
defaultConfig {
5176
applicationId "nl.renefloor.puzzle"
52-
minSdkVersion 16
53-
targetSdkVersion 30
77+
minSdkVersion 21
78+
targetSdkVersion 34
5479
versionCode flutterVersionCode.toInteger()
5580
versionName flutterVersionName
5681
}
@@ -62,28 +87,18 @@ android {
6287
}
6388

6489
signingConfigs {
65-
if (System.getenv("ANDROID_KEYSTORE_PATH")) {
66-
release {
67-
storeFile file(System.getenv("ANDROID_KEYSTORE_PATH"))
68-
keyAlias System.getenv("ANDROID_KEYSTORE_ALIAS")
69-
keyPassword System.getenv("ANDROID_KEYSTORE_PRIVATE_KEY_PASSWORD")
70-
storePassword System.getenv("ANDROID_KEYSTORE_PASSWORD")
71-
}
72-
} else {
73-
release {
74-
keyAlias keystoreProperties['keyAlias']
75-
keyPassword keystoreProperties['keyPassword']
76-
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
77-
storePassword keystoreProperties['storePassword']
78-
}
90+
release {
91+
storeFile file(signingKeyStoreFilePath)
92+
storePassword signingKeyStorePassword
93+
keyAlias signingKeyAlias
94+
keyPassword signingKeyPassword
7995
}
8096
}
8197

8298
buildTypes {
8399
release {
84100
signingConfig signingConfigs.release
85101
minifyEnabled true
86-
useProguard true
87102
proguardFiles getDefaultProguardFile('proguard-android.txt')
88103
}
89104
debug {

android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
android:theme="@style/LaunchTheme"
1111
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
1212
android:hardwareAccelerated="true"
13+
android:exported="true"
1314
android:windowSoftInputMode="adjustResize">
1415
<!-- Specifies an Android theme to apply to this Activity as soon as
1516
the Android process has started. This theme is visible to the user

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.10'
2+
ext.kotlin_version = '1.9.21'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:4.1.0'
9+
classpath 'com.android.tools.build:gradle:8.1.4'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}
@@ -24,6 +24,6 @@ subprojects {
2424
project.evaluationDependsOn(':app')
2525
}
2626

27-
task clean(type: Delete) {
27+
tasks.register("clean", Delete) {
2828
delete rootProject.buildDir
2929
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Jun 23 08:50:38 CEST 2017
1+
#Mon Dec 04 20:44:16 CET 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip

0 commit comments

Comments
 (0)