Skip to content

Commit

Permalink
Update targetSdkVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss committed Oct 1, 2024
1 parent 235f582 commit 38f4755
Show file tree
Hide file tree
Showing 6 changed files with 142 additions and 101 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@ flutter pub get

NOTE: also had to up flutterVersionCode in android\app\build.gradle

Confirm that the targetSdkVersion is correct.

```bash
./gradlew printTargetSdkVersion
```

The default targetSdkVersion is configured in the flutter code base but can be overidden in ./android/local.properties by adding:

```
flutter.targetSdkVersion={target_version}
```

NOTE: You may need to update the `distributionUrl` in gradle-wrapper.properties to match you Java versions as per https://docs.gradle.org/current/userguide/compatibility.html.

Make sure you have a way to sign it!
You need to have your upload-keystore.jks configured in android/key.properties

Expand Down Expand Up @@ -197,7 +211,7 @@ The FBP System is based on observations of experimental fires and wildfires. The
- [ ] FBP: Consider : decimal places on wind direction and aspect aren't useful, e.g. SSE can be 157 degrees, we don't need 157.5

### v1.0.11 (current)
- [x] Update minSdkVersion for Android release
- [x] Update targetSdkVersion for Android release

### v1.0.10
- [x] New cert and profile for signing and distributing app
Expand Down
8 changes: 7 additions & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,10 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}

android.buildTypes.release.ndk.debugSymbolLevel = 'FULL'
android.buildTypes.release.ndk.debugSymbolLevel = 'FULL'

task printTargetSdkVersion {
doLast {
println("Target SDK Version: ${flutter.targetSdkVersion}")
}
}
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.21'
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
Loading

0 comments on commit 38f4755

Please sign in to comment.