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.
@@ -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
- // Crucial for AGP 7+
26
- namespace "com.rnsnativecall"
27
-
28
- compileSdkVersion safeExtGet('compileSdkVersion', 33)
9
+ compileSdkVersion safeExtGet('compileSdkVersion', 34)
10
+ namespace "com.rnsmediapicker"
29
11
 
30
12
  defaultConfig {
31
- minSdkVersion safeExtGet('minSdkVersion', 21)
32
- targetSdkVersion safeExtGet('targetSdkVersion', 33)
33
-
34
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13
+ minSdkVersion safeExtGet('minSdkVersion', 23)
14
+ targetSdkVersion safeExtGet('targetSdkVersion', 34)
35
15
  }
36
16
 
37
- compileOptions {
38
- sourceCompatibility JavaVersion.VERSION_17
39
- targetCompatibility JavaVersion.VERSION_17
17
+ buildTypes {
18
+ release {
19
+ minifyEnabled false
20
+ }
40
21
  }
41
-
42
- kotlinOptions {
43
- jvmTarget = '17' // Changed from 1.8
22
+
23
+ lintOptions {
24
+ abortOnError false
44
25
  }
45
26
 
46
- // lintOptions is deprecated in newer AGP, using lint instead
47
- lint {
48
- abortOnError false
27
+ compileOptions {
28
+ sourceCompatibility JavaVersion.VERSION_18
29
+ targetCompatibility JavaVersion.VERSION_18
49
30
  }
50
- }
51
31
 
52
- repositories {
53
- mavenCentral()
54
- google()
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
- implementation "com.google.firebase:firebase-messaging:23.4.0"
62
- implementation "androidx.appcompat:appcompat:1.6.1"
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
  }
@@ -1,5 +1,4 @@
1
1
  package com.rnsmediapicker
2
-
3
2
  import com.facebook.react.ReactPackage
4
3
  import com.facebook.react.bridge.NativeModule
5
4
  import com.facebook.react.bridge.ReactApplicationContext
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <paths>
3
- <external-path name="my_images" path="." />
4
- <cache-path name="cache" path="." />
3
+ <cache-path name="my_cache" path="." />
4
+ <external-cache-path name="my_external_cache" path="." />
5
5
  </paths>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rns-mediapicker",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "High-performance React Native module for picking media on Android and iOS.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",