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.
@@ -5,28 +5,37 @@ buildscript {
5
5
  }
6
6
 
7
7
  dependencies {
8
- classpath "com.android.tools.build:gradle:8.1.0"
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
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["AndroidMediaFetcher_" + name]
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
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["AndroidMediaFetcher_" + name]).toInteger()
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 29
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.VERSION_1_8
74
- targetCompatibility JavaVersion.VERSION_1_8
82
+ sourceCompatibility JavaVersion.VERSION_17
83
+ targetCompatibility JavaVersion.VERSION_17
75
84
  }
76
85
 
77
86
  kotlinOptions {
78
- jvmTarget = "1.8"
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-native:+"
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.7.3"
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.0
2
- AndroidMediaFetcher_compileSdkVersion=34
3
- AndroidMediaFetcher_targetSdkVersion=34
1
+ AndroidMediaFetcher_kotlinVersion=1.9.24
2
+ AndroidMediaFetcher_compileSdkVersion=35
3
+ AndroidMediaFetcher_targetSdkVersion=35
4
+ AndroidMediaFetcher_minSdkVersion=24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-android-media-fetcher",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A React Native package for fetching audio files with metadata from Android devices",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",