react-native-android-media-fetcher 1.0.0 → 1.0.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 +27 -18
- package/android/gradle.properties +4 -3
- package/package.json +1 -1
package/android/build.gradle
CHANGED
|
@@ -5,28 +5,37 @@ buildscript {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
dependencies {
|
|
8
|
-
classpath "com.android.tools.build:gradle:8.
|
|
9
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.0"
|
|
8
|
+
classpath "com.android.tools.build:gradle:8.3.0"
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
11
|
|
|
12
|
+
apply plugin: "com.android.library"
|
|
13
|
+
apply plugin: "kotlin-android"
|
|
14
|
+
|
|
13
15
|
def isNewArchitectureEnabled() {
|
|
14
16
|
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
apply plugin: "com.android.library"
|
|
18
|
-
apply plugin: "kotlin-android"
|
|
19
|
-
|
|
20
19
|
if (isNewArchitectureEnabled()) {
|
|
21
20
|
apply plugin: "com.facebook.react"
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
def getExtOrDefault(name) {
|
|
25
|
-
|
|
23
|
+
def getExtOrDefault(name, defaultValue) {
|
|
24
|
+
if (rootProject.ext.has(name)) {
|
|
25
|
+
return rootProject.ext.get(name)
|
|
26
|
+
}
|
|
27
|
+
if (project.hasProperty("AndroidMediaFetcher_" + name)) {
|
|
28
|
+
return project.properties["AndroidMediaFetcher_" + name]
|
|
29
|
+
}
|
|
30
|
+
return defaultValue
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
def getExtOrIntegerDefault(name) {
|
|
29
|
-
|
|
33
|
+
def getExtOrIntegerDefault(name, defaultValue) {
|
|
34
|
+
def value = getExtOrDefault(name, defaultValue)
|
|
35
|
+
if (value instanceof Integer) {
|
|
36
|
+
return value
|
|
37
|
+
}
|
|
38
|
+
return value.toString().toInteger()
|
|
30
39
|
}
|
|
31
40
|
|
|
32
41
|
def supportsNamespace() {
|
|
@@ -47,11 +56,11 @@ android {
|
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
58
|
|
|
50
|
-
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
|
|
59
|
+
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion", 35)
|
|
51
60
|
|
|
52
61
|
defaultConfig {
|
|
53
|
-
minSdkVersion
|
|
54
|
-
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
|
|
62
|
+
minSdkVersion getExtOrIntegerDefault("minSdkVersion", 24)
|
|
63
|
+
targetSdkVersion getExtOrIntegerDefault("targetSdkVersion", 35)
|
|
55
64
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
|
|
56
65
|
}
|
|
57
66
|
|
|
@@ -70,12 +79,12 @@ android {
|
|
|
70
79
|
}
|
|
71
80
|
|
|
72
81
|
compileOptions {
|
|
73
|
-
sourceCompatibility JavaVersion.
|
|
74
|
-
targetCompatibility JavaVersion.
|
|
82
|
+
sourceCompatibility JavaVersion.VERSION_17
|
|
83
|
+
targetCompatibility JavaVersion.VERSION_17
|
|
75
84
|
}
|
|
76
85
|
|
|
77
86
|
kotlinOptions {
|
|
78
|
-
jvmTarget = "
|
|
87
|
+
jvmTarget = "17"
|
|
79
88
|
}
|
|
80
89
|
|
|
81
90
|
sourceSets {
|
|
@@ -94,12 +103,12 @@ repositories {
|
|
|
94
103
|
google()
|
|
95
104
|
}
|
|
96
105
|
|
|
97
|
-
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
106
|
+
def kotlin_version = getExtOrDefault("kotlinVersion", "1.9.24")
|
|
98
107
|
|
|
99
108
|
dependencies {
|
|
100
|
-
implementation "com.facebook.react:react-
|
|
109
|
+
implementation "com.facebook.react:react-android:+"
|
|
101
110
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
102
|
-
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.
|
|
111
|
+
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0"
|
|
103
112
|
}
|
|
104
113
|
|
|
105
114
|
if (isNewArchitectureEnabled()) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
AndroidMediaFetcher_kotlinVersion=1.9.
|
|
2
|
-
AndroidMediaFetcher_compileSdkVersion=
|
|
3
|
-
AndroidMediaFetcher_targetSdkVersion=
|
|
1
|
+
AndroidMediaFetcher_kotlinVersion=1.9.24
|
|
2
|
+
AndroidMediaFetcher_compileSdkVersion=35
|
|
3
|
+
AndroidMediaFetcher_targetSdkVersion=35
|
|
4
|
+
AndroidMediaFetcher_minSdkVersion=24
|
package/package.json
CHANGED