@react-native-hero/dimension 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
buildscript {
|
|
2
2
|
// Buildscript is evaluated before everything else so we can't use safeExtGet
|
|
3
|
-
def kotlinVersion = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : '
|
|
3
|
+
def kotlinVersion = rootProject.ext.has('kotlinVersion') ? rootProject.ext.get('kotlinVersion') : '2.0.21'
|
|
4
4
|
|
|
5
5
|
repositories {
|
|
6
6
|
jcenter()
|
|
@@ -19,12 +19,12 @@ def safeExtGet(prop, fallback) {
|
|
|
19
19
|
apply plugin: 'com.android.library'
|
|
20
20
|
|
|
21
21
|
android {
|
|
22
|
-
compileSdkVersion safeExtGet('compileSdkVersion',
|
|
23
|
-
buildToolsVersion safeExtGet('buildToolsVersion', '
|
|
22
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 35)
|
|
23
|
+
buildToolsVersion safeExtGet('buildToolsVersion', '35.0.0')
|
|
24
24
|
|
|
25
25
|
defaultConfig {
|
|
26
|
-
minSdkVersion safeExtGet('minSdkVersion',
|
|
27
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
26
|
+
minSdkVersion safeExtGet('minSdkVersion', 20)
|
|
27
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 35)
|
|
28
28
|
versionCode 1
|
|
29
29
|
versionName "1.0"
|
|
30
30
|
}
|
|
@@ -35,7 +35,7 @@ android {
|
|
|
35
35
|
|
|
36
36
|
dependencies {
|
|
37
37
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
|
|
38
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '
|
|
38
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '2.0.21')}"
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
apply plugin: 'kotlin-android'
|
|
@@ -131,11 +131,11 @@ class RNTDimensionModule(private val reactContext: ReactApplicationContext) : Re
|
|
|
131
131
|
|
|
132
132
|
waitActivity = fun () {
|
|
133
133
|
Handler(Looper.getMainLooper()).postDelayed({
|
|
134
|
-
handler(currentActivity)
|
|
134
|
+
handler(reactContext.currentActivity)
|
|
135
135
|
}, 200)
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
handler(currentActivity)
|
|
138
|
+
handler(reactContext.currentActivity)
|
|
139
139
|
|
|
140
140
|
}
|
|
141
141
|
|