Skip to content

Commit 5f98af6

Browse files
authored
Merge pull request #87 from YkSix/increase_minSdk_to_align_AosLineSdk
Bump Android LINE SDK version to 5.9.1 and minSdk to 24
2 parents 736eacd + 63fa14a commit 5f98af6

File tree

6 files changed

+28
-12
lines changed

6 files changed

+28
-12
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,24 @@ target 'Runner' do
103103

104104
#### Android
105105

106-
No specific settings are required.
106+
To ensure compatibility with the latest features, you need to update the `minSdk` version in your app's `build.gradle` file to `24` or higher.
107+
108+
Here's how you can do it:
109+
110+
1. Open your app's `build.gradle` file.
111+
2. Locate the `android` block, and within it, find the `defaultConfig` block.
112+
3. In the `defaultConfig` block, replace the current `minSdk` value with `24`.
113+
114+
Here's a diff to show what your changes might look like:
115+
116+
```diff
117+
android {
118+
defaultConfig {
119+
- minSdk flutter.minSdkVersion
120+
+ minSdk 24
121+
}
122+
}
123+
```
107124

108125
### Importing and using
109126

android/build.gradle

+4-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:7.0.1'
12+
classpath 'com.android.tools.build:gradle:7.3.1'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515

16-
1716
}
1817

1918
rootProject.allprojects {
@@ -27,13 +26,13 @@ apply plugin: 'com.android.library'
2726
apply plugin: 'kotlin-android'
2827

2928
android {
30-
compileSdkVersion 31
29+
compileSdk 33
3130

3231
sourceSets {
3332
main.java.srcDirs += 'src/main/kotlin'
3433
}
3534
defaultConfig {
36-
minSdkVersion 21
35+
minSdk 24
3736
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
3837
consumerProguardFiles 'consumer-proguard-rules.pro'
3938
}
@@ -43,7 +42,7 @@ android {
4342
}
4443

4544
dependencies {
46-
implementation('com.linecorp.linesdk:linesdk:5.8.1') {
45+
implementation('com.linecorp.linesdk:linesdk:5.9.1') {
4746
exclude group: 'androidx.lifecycle', module: 'lifecycle-viewmodel-ktx'
4847
}
4948
implementation 'com.google.code.gson:gson:2.8.5'

android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip

example/android/app/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
2626
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2727

2828
android {
29-
compileSdkVersion 31
29+
compileSdk 33
3030

3131
sourceSets {
3232
main.java.srcDirs += 'src/main/kotlin'
@@ -38,8 +38,8 @@ android {
3838

3939
defaultConfig {
4040
applicationId "com.linecorp.linesdk.sample"
41-
minSdkVersion 24
42-
targetSdkVersion 31
41+
minSdk 24
42+
targetSdk 31
4343
versionCode flutterVersionCode.toInteger()
4444
versionName flutterVersionName
4545
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

example/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
}
77

88
dependencies {
9-
classpath 'com.android.tools.build:gradle:7.0.1'
9+
classpath 'com.android.tools.build:gradle:7.3.1'
1010
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1111
}
1212
}

example/android/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip

0 commit comments

Comments
 (0)