@vanikya/ota-react-native 0.1.2 → 0.1.3

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,24 +1,10 @@
1
- buildscript {
2
- ext.safeExtGet = {prop, fallback ->
3
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
4
- }
5
- repositories {
6
- google()
7
- mavenCentral()
8
- }
9
- dependencies {
10
- classpath("com.android.tools.build:gradle:7.4.2")
11
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.8.0')}")
12
- }
1
+ def safeExtGet(prop, fallback) {
2
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
13
3
  }
14
4
 
15
5
  apply plugin: 'com.android.library'
16
6
  apply plugin: 'kotlin-android'
17
7
 
18
- def safeExtGet(prop, fallback) {
19
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
20
- }
21
-
22
8
  android {
23
9
  namespace "com.otaupdate"
24
10
  compileSdkVersion safeExtGet('compileSdkVersion', 34)
@@ -35,24 +21,27 @@ android {
35
21
  }
36
22
 
37
23
  compileOptions {
38
- sourceCompatibility JavaVersion.VERSION_1_8
39
- targetCompatibility JavaVersion.VERSION_1_8
24
+ sourceCompatibility JavaVersion.VERSION_17
25
+ targetCompatibility JavaVersion.VERSION_17
40
26
  }
41
27
 
42
28
  kotlinOptions {
43
- jvmTarget = '1.8'
29
+ jvmTarget = '17'
30
+ }
31
+
32
+ sourceSets {
33
+ main {
34
+ java.srcDirs = ['src/main/java']
35
+ }
44
36
  }
45
37
  }
46
38
 
47
39
  repositories {
48
40
  mavenCentral()
49
41
  google()
50
- maven {
51
- url "$projectDir/../node_modules/react-native/android"
52
- }
53
42
  }
54
43
 
55
44
  dependencies {
56
- implementation "com.facebook.react:react-native:+"
57
- implementation "org.jetbrains.kotlin:kotlin-stdlib:${safeExtGet('kotlinVersion', '1.8.0')}"
45
+ //noinspection GradleDynamicVersion
46
+ implementation "com.facebook.react:react-android:+"
58
47
  }
@@ -1,4 +1,3 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
- package="com.otaupdate">
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
4
3
  </manifest>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vanikya/ota-react-native",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "OTA Update SDK for React Native apps - self-hosted CodePush/EAS Updates alternative",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",