@vanikya/ota-react-native 0.1.2 → 0.1.4

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,26 +1,13 @@
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"
10
+
24
11
  compileSdkVersion safeExtGet('compileSdkVersion', 34)
25
12
 
26
13
  defaultConfig {
@@ -35,24 +22,31 @@ android {
35
22
  }
36
23
 
37
24
  compileOptions {
38
- sourceCompatibility JavaVersion.VERSION_1_8
39
- targetCompatibility JavaVersion.VERSION_1_8
25
+ sourceCompatibility JavaVersion.VERSION_17
26
+ targetCompatibility JavaVersion.VERSION_17
40
27
  }
41
28
 
42
29
  kotlinOptions {
43
- jvmTarget = '1.8'
30
+ jvmTarget = '17'
31
+ }
32
+
33
+ sourceSets {
34
+ main {
35
+ java.srcDirs = ['src/main/java']
36
+ }
37
+ }
38
+
39
+ lintOptions {
40
+ abortOnError false
44
41
  }
45
42
  }
46
43
 
47
44
  repositories {
48
45
  mavenCentral()
49
46
  google()
50
- maven {
51
- url "$projectDir/../node_modules/react-native/android"
52
- }
53
47
  }
54
48
 
55
49
  dependencies {
56
- implementation "com.facebook.react:react-native:+"
57
- implementation "org.jetbrains.kotlin:kotlin-stdlib:${safeExtGet('kotlinVersion', '1.8.0')}"
50
+ //noinspection GradleDynamicVersion
51
+ implementation "com.facebook.react:react-android:+"
58
52
  }
@@ -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>
@@ -6,16 +6,21 @@ Pod::Spec.new do |s|
6
6
  s.name = "ota-update"
7
7
  s.version = package["version"]
8
8
  s.summary = package["description"]
9
- s.homepage = package["repository"]["url"]
9
+ s.homepage = package["homepage"]
10
10
  s.license = package["license"]
11
- s.authors = { "OTA Update" => "support@ota-update.dev" }
11
+ s.authors = { "Vanikya" => "support@vanikya.com" }
12
12
 
13
13
  s.platforms = { :ios => "13.0" }
14
- s.source = { :git => "https://github.com/your-org/ota-update.git", :tag => "#{s.version}" }
14
+ s.source = { :git => "https://github.com/vanikya/ota-update.git", :tag => "v#{s.version}" }
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
- s.dependency "React-Core"
18
+ # Use install_modules_dependencies for new architecture support
19
+ if respond_to?(:install_modules_dependencies, true)
20
+ install_modules_dependencies(s)
21
+ else
22
+ s.dependency "React-Core"
23
+ end
19
24
 
20
25
  s.swift_version = "5.0"
21
26
  end
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.4",
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",
@@ -10,9 +10,10 @@
10
10
  "files": [
11
11
  "src",
12
12
  "lib",
13
- "ios",
14
13
  "android",
14
+ "ios",
15
15
  "*.podspec",
16
+ "react-native.config.js",
16
17
  "README.md"
17
18
  ],
18
19
  "scripts": {
@@ -56,7 +57,9 @@
56
57
  },
57
58
  "peerDependencies": {
58
59
  "react": ">=17.0.0",
59
- "react-native": ">=0.70.0"
60
+ "react-native": ">=0.70.0",
61
+ "expo-file-system": ">=15.0.0",
62
+ "expo-crypto": ">=12.0.0"
60
63
  },
61
64
  "peerDependenciesMeta": {
62
65
  "expo-file-system": {
@@ -74,10 +77,5 @@
74
77
  "module",
75
78
  "typescript"
76
79
  ]
77
- },
78
- "codegenConfig": {
79
- "name": "OTAUpdateSpec",
80
- "type": "modules",
81
- "jsSrcsDir": "src"
82
80
  }
83
81
  }
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ packageImportPath: 'import com.otaupdate.OTAUpdatePackage;',
6
+ packageInstance: 'new OTAUpdatePackage()',
7
+ },
8
+ ios: {
9
+ // iOS uses Swift, auto-detected
10
+ },
11
+ },
12
+ },
13
+ };