|
1 | 1 | buildscript { |
2 | | - ext { |
3 | | - kotlinVersion = '1.9.24' |
4 | | - } |
| 2 | + def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : "1.9.24" |
5 | 3 |
|
6 | 4 | repositories { |
7 | 5 | google() |
8 | 6 | mavenCentral() |
9 | 7 | } |
10 | 8 |
|
11 | 9 | dependencies { |
12 | | - classpath "com.android.tools.build:gradle:8.1.2" |
| 10 | + classpath "com.android.tools.build:gradle" |
13 | 11 | classpath "com.facebook.react:react-native-gradle-plugin" |
14 | | - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" |
| 12 | + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" |
15 | 13 | } |
16 | 14 | } |
17 | 15 |
|
18 | | -repositories { |
19 | | - google() |
20 | | - mavenCentral() |
| 16 | +def safeExtGet(prop, fallback) { |
| 17 | + rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback |
21 | 18 | } |
22 | 19 |
|
23 | 20 | apply plugin: "com.android.library" |
24 | 21 | apply plugin: "kotlin-android" |
25 | | -apply plugin: "com.facebook.react.rootproject" |
26 | | - |
27 | | -def safeExtGet(prop, fallback) { |
28 | | - rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback |
29 | | -} |
30 | 22 |
|
31 | 23 | android { |
32 | | - compileSdkVersion safeExtGet("compileSdkVersion", 31) |
| 24 | + compileSdkVersion safeExtGet("compileSdkVersion", 35) |
33 | 25 |
|
34 | 26 | defaultConfig { |
35 | | - minSdkVersion safeExtGet('minSdkVersion', 24) |
36 | | - targetSdkVersion safeExtGet('targetSdkVersion', 31) |
| 27 | + minSdkVersion safeExtGet("minSdkVersion", 24) |
| 28 | + targetSdkVersion safeExtGet("targetSdkVersion", 35) |
37 | 29 | versionCode 1 |
38 | | - versionName "1.0" |
39 | | - } |
40 | | - |
41 | | - // Include "lib/" as sources, unfortunetely react-native link can't handle |
42 | | - // setting up alternative gradle modules. We still have "lib" defined as a |
43 | | - // standalone gradle module just to be used in AndroidNativeExample |
44 | | - sourceSets { |
45 | | - main.java.srcDirs += 'lib/src/main/java' |
| 30 | + versionName "2.2.1" |
46 | 31 | } |
47 | 32 | } |
48 | 33 |
|
49 | 34 | dependencies { |
50 | | - //noinspection GradleDynamicVersion from node modules |
51 | 35 | implementation "com.facebook.react:react-native:+" |
52 | 36 | implementation "com.linecorp.linesdk:linesdk:5.8.1" |
53 | | - implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion" |
54 | 37 | implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3" |
55 | | - implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3" |
56 | 38 | } |
0 commit comments