rns-mediapicker 0.0.1 → 0.0.2
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,70 +1,47 @@
|
|
|
1
|
-
// 1. Buildscript defines WHERE to get the plugins
|
|
2
|
-
buildscript {
|
|
3
|
-
ext.kotlin_version = project.hasProperty('kotlinVersion') ? project.kotlinVersion : '1.8.10'
|
|
4
|
-
repositories {
|
|
5
|
-
google()
|
|
6
|
-
mavenCentral()
|
|
7
|
-
}
|
|
8
|
-
dependencies {
|
|
9
|
-
classpath "com.android.tools.build:gradle:7.4.2"
|
|
10
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
// 2. Apply the plugins immediately after buildscript
|
|
15
1
|
apply plugin: 'com.android.library'
|
|
16
2
|
apply plugin: 'kotlin-android'
|
|
17
3
|
|
|
18
|
-
// 3. Define helper functions
|
|
19
4
|
def safeExtGet(prop, fallback) {
|
|
20
5
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
21
6
|
}
|
|
22
7
|
|
|
23
|
-
// 4. The Android block - should now be recognized
|
|
24
8
|
android {
|
|
25
|
-
|
|
26
|
-
namespace "com.
|
|
27
|
-
|
|
28
|
-
compileSdkVersion safeExtGet('compileSdkVersion', 33)
|
|
9
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 34)
|
|
10
|
+
namespace "com.rnsmediapicker"
|
|
29
11
|
|
|
30
12
|
defaultConfig {
|
|
31
|
-
minSdkVersion safeExtGet('minSdkVersion',
|
|
32
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
33
|
-
|
|
34
|
-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
13
|
+
minSdkVersion safeExtGet('minSdkVersion', 23)
|
|
14
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 34)
|
|
35
15
|
}
|
|
36
16
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
17
|
+
buildTypes {
|
|
18
|
+
release {
|
|
19
|
+
minifyEnabled false
|
|
20
|
+
}
|
|
40
21
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
|
|
23
|
+
lintOptions {
|
|
24
|
+
abortOnError false
|
|
44
25
|
}
|
|
45
26
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
27
|
+
compileOptions {
|
|
28
|
+
sourceCompatibility JavaVersion.VERSION_18
|
|
29
|
+
targetCompatibility JavaVersion.VERSION_18
|
|
49
30
|
}
|
|
50
|
-
}
|
|
51
31
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
32
|
+
kotlinOptions {
|
|
33
|
+
jvmTarget = '18'
|
|
34
|
+
}
|
|
55
35
|
}
|
|
56
36
|
|
|
57
37
|
dependencies {
|
|
38
|
+
// React Native dependency
|
|
58
39
|
implementation "com.facebook.react:react-native:+"
|
|
59
40
|
|
|
41
|
+
// Kotlin standard library
|
|
60
42
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
implementation "com.google.android.material:material:1.9.0"
|
|
43
|
+
|
|
44
|
+
// AndroidX for FileProvider and UI components
|
|
65
45
|
implementation "androidx.core:core-ktx:1.12.0"
|
|
66
|
-
|
|
67
|
-
// Glide for profile pictures
|
|
68
|
-
implementation "com.github.bumptech.glide:glide:4.15.1"
|
|
69
|
-
annotationProcessor "com.github.bumptech.glide:compiler:4.15.1"
|
|
46
|
+
implementation "androidx.appcompat:appcompat:1.6.1"
|
|
70
47
|
}
|