@momo-kits/native-kits 0.150.0-image.3 → 0.150.0-image.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.
@@ -9,8 +9,8 @@ Pod::Spec.new do |spec|
9
9
  spec.vendored_frameworks = 'build/cocoapods/framework/compose.framework'
10
10
  spec.libraries = 'c++'
11
11
  spec.ios.deployment_target = '13.0'
12
- spec.dependency 'SDWebImage', '5.14.3'
13
-
12
+ spec.dependency 'SDWebImage', '>= 5.19.1'
13
+
14
14
  spec.xcconfig = {
15
15
  'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
16
16
  }
@@ -8,10 +8,19 @@ plugins {
8
8
  id("maven-publish")
9
9
  }
10
10
 
11
+ fun getVersionFromPackageJson(): String {
12
+ val packageJsonFile = file("../package.json")
13
+ val packageJsonText = packageJsonFile.readText()
14
+ val versionRegex = "\"version\"\\s*:\\s*\"([^\"]*)\"".toRegex()
15
+ val matchResult = versionRegex.find(packageJsonText)
16
+ return matchResult?.groupValues?.get(1) ?: throw IllegalStateException("Version not found in package.json")
17
+ }
18
+
11
19
  val libName = "MoMoComposeKits"
12
20
  val libGroup = "vn.momo.kits"
13
21
  val libVersion = "0.0.1"
14
22
 
23
+ version = getVersionFromPackageJson()
15
24
  kotlin {
16
25
  androidTarget {
17
26
  publishLibraryVariants("release")
@@ -45,7 +54,7 @@ kotlin {
45
54
  }
46
55
 
47
56
  pod("SDWebImage") {
48
- version = "5.14.3"
57
+ version = ">= 5.19.1"
49
58
  }
50
59
  }
51
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/native-kits",
3
- "version": "0.150.0-image.3",
3
+ "version": "0.150.0-image.4",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@momo-platform/native-max-api": "1.0.18"