@norcy/react-native-toolkit 0.1.155 → 0.1.157

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,7 +1,12 @@
1
1
  ext.applyDefaultConfig = { targetProject ->
2
2
  targetProject.android {
3
+ compileSdkVersion targetProject.rootProject.ext.compileSdkVersion
4
+
3
5
  defaultConfig {
6
+ minSdkVersion targetProject.rootProject.ext.minSdkVersion
7
+ targetSdkVersion targetProject.rootProject.ext.targetSdkVersion
4
8
  multiDexEnabled true
9
+ missingDimensionStrategy 'store', 'play'
5
10
  ndk {
6
11
  abiFilters "armeabi-v7a", "arm64-v8a"
7
12
  }
@@ -23,6 +28,14 @@ ext.applyDefaultConfig = { targetProject ->
23
28
  keyAlias 'androiddebugkey'
24
29
  keyPassword 'android'
25
30
  }
31
+ release {
32
+ if (targetProject.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
33
+ storeFile targetProject.file(targetProject.MYAPP_RELEASE_STORE_FILE)
34
+ storePassword targetProject.MYAPP_RELEASE_STORE_PASSWORD
35
+ keyAlias targetProject.MYAPP_RELEASE_KEY_ALIAS
36
+ keyPassword targetProject.MYAPP_RELEASE_KEY_PASSWORD
37
+ }
38
+ }
26
39
  }
27
40
  }
28
41
  }
@@ -61,11 +74,14 @@ ext.applyBuildTypes = { targetProject ->
61
74
  buildTypes {
62
75
  debug {
63
76
  signingConfig signingConfigs.debug
77
+ resValue "string", "app_name", "@string/app_name_debug"
64
78
  }
65
79
  release {
80
+ signingConfig signingConfigs.debug
66
81
  minifyEnabled false
67
82
  proguardFiles targetProject.android.getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
68
83
  crunchPngs false
84
+ resValue "string", "app_name", "@string/app_name_release"
69
85
  }
70
86
  }
71
87
  }
@@ -121,9 +137,13 @@ ext.applyCommonPlugins = { targetProject ->
121
137
  }
122
138
 
123
139
  ext.applyAll = { targetProject ->
140
+ targetProject.ext.react = [enableHermes: false]
141
+ targetProject.apply from: targetProject.file("../../node_modules/react-native/react.gradle")
142
+
124
143
  applyDefaultConfig(targetProject)
125
144
  applyBuildTypes(targetProject)
126
145
  applyCommonAndroidConfig(targetProject)
127
146
  applyCommonPlugins(targetProject)
147
+ applyCommonDependencies(targetProject)
128
148
  }
129
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@norcy/react-native-toolkit",
3
- "version": "0.1.155",
3
+ "version": "0.1.157",
4
4
  "description": "My Toolkit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",