@computools/react-native-template-controller 1.0.10 → 1.0.12
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.
- package/README.md +11 -5
- package/package.json +1 -1
- package/template/android/app/build.gradle +3 -7
- package/template/android/app/src/debug/AndroidManifest.xml +1 -5
- package/template/android/app/src/main/java/com/reactnativetemplate/MainActivity.kt +32 -0
- package/template/android/app/src/main/java/com/reactnativetemplate/MainApplication.kt +45 -0
- package/template/android/build.gradle +8 -8
- package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/template/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/template/android/gradle.properties +0 -3
- package/template/android/gradlew +11 -6
- package/template/babel.config.js +1 -1
- package/template/ios/Podfile +0 -7
- package/template/ios/ReactNativeTemplate/AppDelegate.mm +5 -0
- package/template/ios/ReactNativeTemplate/Info.plist +4 -8
- package/template/ios/ReactNativeTemplate.xcodeproj/project.pbxproj +28 -78
- package/template/ios/ReactNativeTemplate.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/template/ios/{ReactNativeTemplate dev-Info.plist → ReactNativeTemplate_dev-Info.plist} +4 -8
- package/template/ios/{ReactNativeTemplate stg-Info.plist → ReactNativeTemplate_stg-Info.plist} +4 -8
- package/template/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm +0 -16
- package/template/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h +8 -25
- package/template/ios/build/generated/ios/FBReactNativeSpecJSI-generated.cpp +1223 -276
- package/template/ios/build/generated/ios/FBReactNativeSpecJSI.h +1427 -424
- package/template/ios/build/generated/ios/React-Codegen.podspec.json +1 -1
- package/template/package.json +14 -14
- package/template/tsconfig.json +1 -1
- package/template/android/app/src/debug/java/com/reactnativetemplate/ReactNativeFlipper.java +0 -75
- package/template/android/app/src/main/java/com/reactnativetemplate/MainActivity.java +0 -40
- package/template/android/app/src/main/java/com/reactnativetemplate/MainApplication.java +0 -62
- package/template/android/app/src/release/java/com/reactnativetemplate/ReactNativeFlipper.java +0 -20
package/README.md
CHANGED
@@ -1,23 +1,27 @@
|
|
1
|
-
# template-controller
|
1
|
+
# template-controller 🏄♂️
|
2
2
|
|
3
3
|
[](https://www.npmjs.com/package/@computools/react-native-template-controller)
|
4
4
|
|
5
5
|
<img src="https://ik.imagekit.io/computools/computools-background/upload-8a50e7e4-c14e-4b55-ae17-bd0cca2f6493.webp">
|
6
6
|
|
7
|
-
###
|
7
|
+
### Latest supported RN version [0.73.1](https://github.com/facebook/react-native/releases/tag/v0.73.1) 🎯
|
8
8
|
|
9
|
-
|
9
|
+
### Precondition: 📗
|
10
10
|
|
11
|
+
`node` >= 18
|
11
12
|
|
13
|
+
`java` >= 17
|
14
|
+
|
15
|
+
### Usage: 🚛
|
12
16
|
```sh
|
13
17
|
npx react-native init MyApp --template @computools/react-native-template-controller
|
14
18
|
```
|
15
19
|
|
16
|
-
### Preview:
|
20
|
+
### Preview: 😍
|
17
21
|
|
18
22
|
![preview]
|
19
23
|
|
20
|
-
### Envs support out of the box:
|
24
|
+
### Envs support out of the box: 📦
|
21
25
|
|
22
26
|
![envs_preview]
|
23
27
|
|
@@ -29,8 +33,10 @@ See the below table to find out which version of the template to use.
|
|
29
33
|
|
30
34
|
| React Native | Template |
|
31
35
|
| ------------ | -------- |
|
36
|
+
| 0.73 | 1.0.11 |
|
32
37
|
| 0.72 | 1.0.0 |
|
33
38
|
| 0.71.11 | 0.0.7 |
|
34
39
|
|
40
|
+
|
35
41
|
[preview]: <https://ik.imagekit.io/computools/template-snapshots/rn-template.gif>
|
36
42
|
[envs_preview]: <https://ik.imagekit.io/computools/template-snapshots/template-env.png>
|
package/package.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
apply plugin: "com.android.application"
|
2
|
+
apply plugin: "org.jetbrains.kotlin.android"
|
2
3
|
|
3
4
|
project.ext.envConfigFiles = [
|
4
5
|
productiondebug: ".env.production",
|
@@ -82,7 +83,7 @@ def jscFlavor = 'org.webkit:android-jsc:+'
|
|
82
83
|
|
83
84
|
android {
|
84
85
|
ndkVersion rootProject.ext.ndkVersion
|
85
|
-
|
86
|
+
buildToolsVersion rootProject.ext.buildToolsVersion
|
86
87
|
compileSdkVersion rootProject.ext.compileSdkVersion
|
87
88
|
|
88
89
|
flavorDimensions "default"
|
@@ -142,15 +143,10 @@ android {
|
|
142
143
|
dependencies {
|
143
144
|
// The version of react-native is set by the React Native Gradle Plugin
|
144
145
|
implementation("com.facebook.react:react-android")
|
146
|
+
implementation("com.facebook.react:flipper-integration")
|
145
147
|
|
146
148
|
implementation("androidx.core:core-splashscreen:1.0.0")
|
147
149
|
|
148
|
-
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
|
149
|
-
debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
|
150
|
-
exclude group:'com.squareup.okhttp3', module:'okhttp'
|
151
|
-
}
|
152
|
-
|
153
|
-
debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
|
154
150
|
if (hermesEnabled.toBoolean()) {
|
155
151
|
implementation("com.facebook.react:hermes-android")
|
156
152
|
} else {
|
@@ -2,12 +2,8 @@
|
|
2
2
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
3
3
|
xmlns:tools="http://schemas.android.com/tools">
|
4
4
|
|
5
|
-
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
|
6
|
-
|
7
5
|
<application
|
8
6
|
android:usesCleartextTraffic="true"
|
9
7
|
tools:targetApi="28"
|
10
|
-
tools:ignore="GoogleAppIndexingWarning"
|
11
|
-
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" android:exported="false" />
|
12
|
-
</application>
|
8
|
+
tools:ignore="GoogleAppIndexingWarning"/>
|
13
9
|
</manifest>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
package com.reactnativetemplate
|
2
|
+
|
3
|
+
import android.os.Bundle
|
4
|
+
import com.facebook.react.ReactActivity
|
5
|
+
import com.zoontek.rnbootsplash.RNBootSplash
|
6
|
+
import com.facebook.react.ReactActivityDelegate
|
7
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
|
8
|
+
import com.facebook.react.defaults.DefaultReactActivityDelegate
|
9
|
+
|
10
|
+
class MainActivity : ReactActivity() {
|
11
|
+
|
12
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
13
|
+
RNBootSplash.init(this)
|
14
|
+
super.onCreate(savedInstanceState)
|
15
|
+
}
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Returns the name of the main component registered from JavaScript. This is used to schedule
|
19
|
+
* rendering of the component.
|
20
|
+
*/
|
21
|
+
override fun getMainComponentName(): String = "ReactNativeTemplate"
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
|
25
|
+
* which allows you to enable New Architecture with a single boolean flags [fabricEnabled]
|
26
|
+
*/
|
27
|
+
override fun createReactActivityDelegate(): ReactActivityDelegate =
|
28
|
+
DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled)
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
// RNBootSplash.init(this);
|
@@ -0,0 +1,45 @@
|
|
1
|
+
package com.reactnativetemplate
|
2
|
+
|
3
|
+
import android.app.Application
|
4
|
+
import com.facebook.react.PackageList
|
5
|
+
import com.facebook.react.ReactApplication
|
6
|
+
import com.facebook.react.ReactHost
|
7
|
+
import com.facebook.react.ReactNativeHost
|
8
|
+
import com.facebook.react.ReactPackage
|
9
|
+
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
10
|
+
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
11
|
+
import com.facebook.react.defaults.DefaultReactNativeHost
|
12
|
+
import com.facebook.react.flipper.ReactNativeFlipper
|
13
|
+
import com.facebook.soloader.SoLoader
|
14
|
+
|
15
|
+
class MainApplication : Application(), ReactApplication {
|
16
|
+
|
17
|
+
override val reactNativeHost: ReactNativeHost =
|
18
|
+
object : DefaultReactNativeHost(this) {
|
19
|
+
override fun getPackages(): List<ReactPackage> {
|
20
|
+
// Packages that cannot be autolinked yet can be added manually here, for example:
|
21
|
+
// packages.add(new MyReactNativePackage());
|
22
|
+
return PackageList(this).packages
|
23
|
+
}
|
24
|
+
|
25
|
+
override fun getJSMainModuleName(): String = "index"
|
26
|
+
|
27
|
+
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
|
28
|
+
|
29
|
+
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
|
30
|
+
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
|
31
|
+
}
|
32
|
+
|
33
|
+
override val reactHost: ReactHost
|
34
|
+
get() = getDefaultReactHost(this.applicationContext, reactNativeHost)
|
35
|
+
|
36
|
+
override fun onCreate() {
|
37
|
+
super.onCreate()
|
38
|
+
SoLoader.init(this, false)
|
39
|
+
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
|
40
|
+
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
41
|
+
load()
|
42
|
+
}
|
43
|
+
ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)
|
44
|
+
}
|
45
|
+
}
|
@@ -1,14 +1,11 @@
|
|
1
|
-
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
2
|
-
|
3
1
|
buildscript {
|
4
2
|
ext {
|
5
|
-
buildToolsVersion = "
|
3
|
+
buildToolsVersion = "34.0.0"
|
6
4
|
minSdkVersion = 21
|
7
|
-
compileSdkVersion =
|
8
|
-
targetSdkVersion =
|
9
|
-
|
10
|
-
|
11
|
-
ndkVersion = "23.1.7779620"
|
5
|
+
compileSdkVersion = 34
|
6
|
+
targetSdkVersion = 34
|
7
|
+
ndkVersion = "25.1.8937393"
|
8
|
+
kotlinVersion = "1.8.0"
|
12
9
|
}
|
13
10
|
repositories {
|
14
11
|
google()
|
@@ -17,5 +14,8 @@ buildscript {
|
|
17
14
|
dependencies {
|
18
15
|
classpath("com.android.tools.build:gradle")
|
19
16
|
classpath("com.facebook.react:react-native-gradle-plugin")
|
17
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
|
20
18
|
}
|
21
19
|
}
|
20
|
+
|
21
|
+
apply plugin: "com.facebook.react.rootproject"
|
Binary file
|
@@ -1,6 +1,7 @@
|
|
1
1
|
distributionBase=GRADLE_USER_HOME
|
2
2
|
distributionPath=wrapper/dists
|
3
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.
|
3
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
|
4
4
|
networkTimeout=10000
|
5
|
+
validateDistributionUrl=true
|
5
6
|
zipStoreBase=GRADLE_USER_HOME
|
6
7
|
zipStorePath=wrapper/dists
|
@@ -24,9 +24,6 @@ android.useAndroidX=true
|
|
24
24
|
# Automatically convert third-party libraries to use AndroidX
|
25
25
|
android.enableJetifier=true
|
26
26
|
|
27
|
-
# Version of flipper SDK to use with React Native
|
28
|
-
FLIPPER_VERSION=0.182.0
|
29
|
-
|
30
27
|
# Use this property to specify which architecture you want to build.
|
31
28
|
# You can also override it from the CLI using
|
32
29
|
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
package/template/android/gradlew
CHANGED
@@ -83,10 +83,8 @@ done
|
|
83
83
|
# This is normally unused
|
84
84
|
# shellcheck disable=SC2034
|
85
85
|
APP_BASE_NAME=${0##*/}
|
86
|
-
|
87
|
-
|
88
|
-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
89
|
-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
86
|
+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
87
|
+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
90
88
|
|
91
89
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
92
90
|
MAX_FD=maximum
|
@@ -133,10 +131,13 @@ location of your Java installation."
|
|
133
131
|
fi
|
134
132
|
else
|
135
133
|
JAVACMD=java
|
136
|
-
|
134
|
+
if ! command -v java >/dev/null 2>&1
|
135
|
+
then
|
136
|
+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
137
137
|
|
138
138
|
Please set the JAVA_HOME variable in your environment to match the
|
139
139
|
location of your Java installation."
|
140
|
+
fi
|
140
141
|
fi
|
141
142
|
|
142
143
|
# Increase the maximum file descriptors if we can.
|
@@ -152,7 +153,7 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
152
153
|
'' | soft) :;; #(
|
153
154
|
*)
|
154
155
|
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
155
|
-
# shellcheck disable=SC3045
|
156
|
+
# shellcheck disable=SC3045
|
156
157
|
ulimit -n "$MAX_FD" ||
|
157
158
|
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
158
159
|
esac
|
@@ -197,6 +198,10 @@ if "$cygwin" || "$msys" ; then
|
|
197
198
|
done
|
198
199
|
fi
|
199
200
|
|
201
|
+
|
202
|
+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
203
|
+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
204
|
+
|
200
205
|
# Collect all arguments for the java command;
|
201
206
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
202
207
|
# shell script including quotes and variable substitutions, so put them in
|
package/template/babel.config.js
CHANGED
package/template/ios/Podfile
CHANGED
@@ -28,14 +28,8 @@ end
|
|
28
28
|
abstract_target 'ReactNativeTemplateCommonPods' do
|
29
29
|
config = use_native_modules!
|
30
30
|
|
31
|
-
# Flags change depending on the env values.
|
32
|
-
flags = get_default_flags()
|
33
|
-
|
34
31
|
use_react_native!(
|
35
32
|
:path => config[:reactNativePath],
|
36
|
-
# Hermes is now enabled by default. Disable by setting this flag to false.
|
37
|
-
:hermes_enabled => flags[:hermes_enabled],
|
38
|
-
:fabric_enabled => flags[:fabric_enabled],
|
39
33
|
# Enables Flipper.
|
40
34
|
#
|
41
35
|
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
@@ -57,7 +51,6 @@ abstract_target 'ReactNativeTemplateCommonPods' do
|
|
57
51
|
config[:reactNativePath],
|
58
52
|
:mac_catalyst_enabled => false
|
59
53
|
)
|
60
|
-
__apply_Xcode_12_5_M1_post_install_workaround(installer)
|
61
54
|
end
|
62
55
|
|
63
56
|
target 'ReactNativeTemplateDev' do
|
@@ -26,14 +26,10 @@
|
|
26
26
|
<true/>
|
27
27
|
<key>NSAppTransportSecurity</key>
|
28
28
|
<dict>
|
29
|
-
<key>
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
34
|
-
<true/>
|
35
|
-
</dict>
|
36
|
-
</dict>
|
29
|
+
<key>NSAllowsArbitraryLoads</key>
|
30
|
+
<false/>
|
31
|
+
<key>NSAllowsLocalNetworking</key>
|
32
|
+
<true/>
|
37
33
|
</dict>
|
38
34
|
<key>NSLocationWhenInUseUsageDescription</key>
|
39
35
|
<string></string>
|
@@ -62,9 +62,9 @@
|
|
62
62
|
89C6BE57DB24E9ADA2F236DE /* Pods-ReactNativeTemplate-ReactNativeTemplateTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeTemplate-ReactNativeTemplateTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeTemplate-ReactNativeTemplateTests/Pods-ReactNativeTemplate-ReactNativeTemplateTests.release.xcconfig"; sourceTree = "<group>"; };
|
63
63
|
8EBF383E00D37EDF8A756D7A /* Pods-ReactNativeTemplateCommonPods-ReactNativeTemplateTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeTemplateCommonPods-ReactNativeTemplateTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeTemplateCommonPods-ReactNativeTemplateTests/Pods-ReactNativeTemplateCommonPods-ReactNativeTemplateTests.debug.xcconfig"; sourceTree = "<group>"; };
|
64
64
|
9314CDCD2AF3CEA200F58B73 /* ReactNativeTemplateDev.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeTemplateDev.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
65
|
-
9314CDCE2AF3CEA200F58B73 /*
|
65
|
+
9314CDCE2AF3CEA200F58B73 /* ReactNativeTemplate_dev-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ReactNativeTemplate_dev-Info.plist"; sourceTree = "<group>"; };
|
66
66
|
9314CDE02AF3CEAA00F58B73 /* ReactNativeTemplateStg.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeTemplateStg.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
67
|
-
9314CDE12AF3CEAB00F58B73 /*
|
67
|
+
9314CDE12AF3CEAB00F58B73 /* ReactNativeTemplate_stg-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "ReactNativeTemplate_stg-Info.plist"; sourceTree = "<group>"; };
|
68
68
|
CC42567843001A172A5AC86F /* libPods-ReactNativeTemplateCommonPods-ReactNativeTemplate.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeTemplateCommonPods-ReactNativeTemplate.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
69
69
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
70
70
|
F6871D19848CB427931AA26F /* libPods-ReactNativeTemplateCommonPods-ReactNativeTemplateStg.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeTemplateCommonPods-ReactNativeTemplateStg.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
@@ -158,14 +158,14 @@
|
|
158
158
|
83CBB9F61A601CBA00E9B192 = {
|
159
159
|
isa = PBXGroup;
|
160
160
|
children = (
|
161
|
+
9314CDCE2AF3CEA200F58B73 /* ReactNativeTemplate_dev-Info.plist */,
|
162
|
+
9314CDE12AF3CEAB00F58B73 /* ReactNativeTemplate_stg-Info.plist */,
|
161
163
|
13B07FAE1A68108700A75B9A /* ReactNativeTemplate */,
|
162
164
|
832341AE1AAA6A7D00B99B32 /* Libraries */,
|
163
165
|
00E356EF1AD99517003FC87E /* ReactNativeTemplateTests */,
|
164
166
|
83CBBA001A601CBA00E9B192 /* Products */,
|
165
167
|
2D16E6871FA4F8E400B85C8A /* Frameworks */,
|
166
168
|
BBD78D7AC51CEA395F1C20DB /* Pods */,
|
167
|
-
9314CDCE2AF3CEA200F58B73 /* ReactNativeTemplate dev-Info.plist */,
|
168
|
-
9314CDE12AF3CEAB00F58B73 /* ReactNativeTemplate stg-Info.plist */,
|
169
169
|
);
|
170
170
|
indentWidth = 2;
|
171
171
|
sourceTree = "<group>";
|
@@ -231,7 +231,6 @@
|
|
231
231
|
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeTemplate" */;
|
232
232
|
buildPhases = (
|
233
233
|
C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */,
|
234
|
-
FD10A7F022414F080027D42C /* Start Packager */,
|
235
234
|
13B07F871A680F5B00A75B9A /* Sources */,
|
236
235
|
13B07F8C1A680F5B00A75B9A /* Frameworks */,
|
237
236
|
13B07F8E1A680F5B00A75B9A /* Resources */,
|
@@ -253,7 +252,6 @@
|
|
253
252
|
buildConfigurationList = 9314CDCA2AF3CEA200F58B73 /* Build configuration list for PBXNativeTarget "ReactNativeTemplateDev" */;
|
254
253
|
buildPhases = (
|
255
254
|
9314CDBD2AF3CEA200F58B73 /* [CP] Check Pods Manifest.lock */,
|
256
|
-
9314CDBE2AF3CEA200F58B73 /* Start Packager */,
|
257
255
|
9314CDBF2AF3CEA200F58B73 /* Sources */,
|
258
256
|
9314CDC22AF3CEA200F58B73 /* Frameworks */,
|
259
257
|
9314CDC42AF3CEA200F58B73 /* Resources */,
|
@@ -275,7 +273,6 @@
|
|
275
273
|
buildConfigurationList = 9314CDDD2AF3CEAA00F58B73 /* Build configuration list for PBXNativeTarget "ReactNativeTemplateStg" */;
|
276
274
|
buildPhases = (
|
277
275
|
9314CDD02AF3CEAA00F58B73 /* [CP] Check Pods Manifest.lock */,
|
278
|
-
9314CDD12AF3CEAA00F58B73 /* Start Packager */,
|
279
276
|
9314CDD22AF3CEAA00F58B73 /* Sources */,
|
280
277
|
9314CDD52AF3CEAA00F58B73 /* Frameworks */,
|
281
278
|
9314CDD72AF3CEAA00F58B73 /* Resources */,
|
@@ -323,9 +320,9 @@
|
|
323
320
|
projectRoot = "";
|
324
321
|
targets = (
|
325
322
|
13B07F861A680F5B00A75B9A /* ReactNativeTemplate */,
|
326
|
-
00E356ED1AD99517003FC87E /* ReactNativeTemplateTests */,
|
327
|
-
9314CDBC2AF3CEA200F58B73 /* ReactNativeTemplateDev */,
|
328
323
|
9314CDCF2AF3CEAA00F58B73 /* ReactNativeTemplateStg */,
|
324
|
+
9314CDBC2AF3CEA200F58B73 /* ReactNativeTemplateDev */,
|
325
|
+
00E356ED1AD99517003FC87E /* ReactNativeTemplateTests */,
|
329
326
|
);
|
330
327
|
};
|
331
328
|
/* End PBXProject section */
|
@@ -423,25 +420,6 @@
|
|
423
420
|
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
424
421
|
showEnvVarsInLog = 0;
|
425
422
|
};
|
426
|
-
9314CDBE2AF3CEA200F58B73 /* Start Packager */ = {
|
427
|
-
isa = PBXShellScriptBuildPhase;
|
428
|
-
buildActionMask = 2147483647;
|
429
|
-
files = (
|
430
|
-
);
|
431
|
-
inputFileListPaths = (
|
432
|
-
);
|
433
|
-
inputPaths = (
|
434
|
-
);
|
435
|
-
name = "Start Packager";
|
436
|
-
outputFileListPaths = (
|
437
|
-
);
|
438
|
-
outputPaths = (
|
439
|
-
);
|
440
|
-
runOnlyForDeploymentPostprocessing = 0;
|
441
|
-
shellPath = /bin/sh;
|
442
|
-
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
|
443
|
-
showEnvVarsInLog = 0;
|
444
|
-
};
|
445
423
|
9314CDC72AF3CEA200F58B73 /* Bundle React Native code and images */ = {
|
446
424
|
isa = PBXShellScriptBuildPhase;
|
447
425
|
buildActionMask = 2147483647;
|
@@ -514,25 +492,6 @@
|
|
514
492
|
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
515
493
|
showEnvVarsInLog = 0;
|
516
494
|
};
|
517
|
-
9314CDD12AF3CEAA00F58B73 /* Start Packager */ = {
|
518
|
-
isa = PBXShellScriptBuildPhase;
|
519
|
-
buildActionMask = 2147483647;
|
520
|
-
files = (
|
521
|
-
);
|
522
|
-
inputFileListPaths = (
|
523
|
-
);
|
524
|
-
inputPaths = (
|
525
|
-
);
|
526
|
-
name = "Start Packager";
|
527
|
-
outputFileListPaths = (
|
528
|
-
);
|
529
|
-
outputPaths = (
|
530
|
-
);
|
531
|
-
runOnlyForDeploymentPostprocessing = 0;
|
532
|
-
shellPath = /bin/sh;
|
533
|
-
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
|
534
|
-
showEnvVarsInLog = 0;
|
535
|
-
};
|
536
495
|
9314CDDA2AF3CEAA00F58B73 /* Bundle React Native code and images */ = {
|
537
496
|
isa = PBXShellScriptBuildPhase;
|
538
497
|
buildActionMask = 2147483647;
|
@@ -678,25 +637,6 @@
|
|
678
637
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-ReactNativeTemplateCommonPods-ReactNativeTemplateTests/Pods-ReactNativeTemplateCommonPods-ReactNativeTemplateTests-resources.sh\"\n";
|
679
638
|
showEnvVarsInLog = 0;
|
680
639
|
};
|
681
|
-
FD10A7F022414F080027D42C /* Start Packager */ = {
|
682
|
-
isa = PBXShellScriptBuildPhase;
|
683
|
-
buildActionMask = 2147483647;
|
684
|
-
files = (
|
685
|
-
);
|
686
|
-
inputFileListPaths = (
|
687
|
-
);
|
688
|
-
inputPaths = (
|
689
|
-
);
|
690
|
-
name = "Start Packager";
|
691
|
-
outputFileListPaths = (
|
692
|
-
);
|
693
|
-
outputPaths = (
|
694
|
-
);
|
695
|
-
runOnlyForDeploymentPostprocessing = 0;
|
696
|
-
shellPath = /bin/sh;
|
697
|
-
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
|
698
|
-
showEnvVarsInLog = 0;
|
699
|
-
};
|
700
640
|
/* End PBXShellScriptBuildPhase section */
|
701
641
|
|
702
642
|
/* Begin PBXSourcesBuildPhase section */
|
@@ -756,7 +696,7 @@
|
|
756
696
|
"$(inherited)",
|
757
697
|
);
|
758
698
|
INFOPLIST_FILE = ReactNativeTemplateTests/Info.plist;
|
759
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
699
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
760
700
|
LD_RUNPATH_SEARCH_PATHS = (
|
761
701
|
"$(inherited)",
|
762
702
|
"@executable_path/Frameworks",
|
@@ -780,7 +720,7 @@
|
|
780
720
|
BUNDLE_LOADER = "$(TEST_HOST)";
|
781
721
|
COPY_PHASE_STRIP = NO;
|
782
722
|
INFOPLIST_FILE = ReactNativeTemplateTests/Info.plist;
|
783
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
723
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
784
724
|
LD_RUNPATH_SEARCH_PATHS = (
|
785
725
|
"$(inherited)",
|
786
726
|
"@executable_path/Frameworks",
|
@@ -854,7 +794,7 @@
|
|
854
794
|
buildSettings = {
|
855
795
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
856
796
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
857
|
-
CLANG_CXX_LANGUAGE_STANDARD = "c++
|
797
|
+
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
858
798
|
CLANG_CXX_LIBRARY = "libc++";
|
859
799
|
CLANG_ENABLE_MODULES = YES;
|
860
800
|
CLANG_ENABLE_OBJC_ARC = YES;
|
@@ -899,7 +839,7 @@
|
|
899
839
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
900
840
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
901
841
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
902
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
842
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
903
843
|
LD_RUNPATH_SEARCH_PATHS = (
|
904
844
|
/usr/lib/swift,
|
905
845
|
"$(inherited)",
|
@@ -917,10 +857,15 @@
|
|
917
857
|
"-DFOLLY_NO_CONFIG",
|
918
858
|
"-DFOLLY_MOBILE=1",
|
919
859
|
"-DFOLLY_USE_LIBCPP=1",
|
860
|
+
"-DFOLLY_CFG_NO_COROUTINES=1",
|
861
|
+
);
|
862
|
+
OTHER_LDFLAGS = (
|
863
|
+
"$(inherited)",
|
864
|
+
" ",
|
920
865
|
);
|
921
|
-
OTHER_LDFLAGS = "$(inherited) ";
|
922
866
|
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
|
923
867
|
SDKROOT = iphoneos;
|
868
|
+
USE_HERMES = true;
|
924
869
|
};
|
925
870
|
name = Debug;
|
926
871
|
};
|
@@ -929,7 +874,7 @@
|
|
929
874
|
buildSettings = {
|
930
875
|
ALWAYS_SEARCH_USER_PATHS = NO;
|
931
876
|
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
|
932
|
-
CLANG_CXX_LANGUAGE_STANDARD = "c++
|
877
|
+
CLANG_CXX_LANGUAGE_STANDARD = "c++20";
|
933
878
|
CLANG_CXX_LIBRARY = "libc++";
|
934
879
|
CLANG_ENABLE_MODULES = YES;
|
935
880
|
CLANG_ENABLE_OBJC_ARC = YES;
|
@@ -970,7 +915,7 @@
|
|
970
915
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
971
916
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
972
917
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
973
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
918
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
974
919
|
LD_RUNPATH_SEARCH_PATHS = (
|
975
920
|
/usr/lib/swift,
|
976
921
|
"$(inherited)",
|
@@ -987,10 +932,15 @@
|
|
987
932
|
"-DFOLLY_NO_CONFIG",
|
988
933
|
"-DFOLLY_MOBILE=1",
|
989
934
|
"-DFOLLY_USE_LIBCPP=1",
|
935
|
+
"-DFOLLY_CFG_NO_COROUTINES=1",
|
936
|
+
);
|
937
|
+
OTHER_LDFLAGS = (
|
938
|
+
"$(inherited)",
|
939
|
+
" ",
|
990
940
|
);
|
991
|
-
OTHER_LDFLAGS = "$(inherited) ";
|
992
941
|
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
|
993
942
|
SDKROOT = iphoneos;
|
943
|
+
USE_HERMES = true;
|
994
944
|
VALIDATE_PRODUCT = YES;
|
995
945
|
};
|
996
946
|
name = Release;
|
@@ -1003,7 +953,7 @@
|
|
1003
953
|
CLANG_ENABLE_MODULES = YES;
|
1004
954
|
CURRENT_PROJECT_VERSION = 1;
|
1005
955
|
ENABLE_BITCODE = NO;
|
1006
|
-
INFOPLIST_FILE = "
|
956
|
+
INFOPLIST_FILE = "ReactNativeTemplate_dev-Info.plist";
|
1007
957
|
LD_RUNPATH_SEARCH_PATHS = (
|
1008
958
|
"$(inherited)",
|
1009
959
|
"@executable_path/Frameworks",
|
@@ -1029,7 +979,7 @@
|
|
1029
979
|
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon dev";
|
1030
980
|
CLANG_ENABLE_MODULES = YES;
|
1031
981
|
CURRENT_PROJECT_VERSION = 1;
|
1032
|
-
INFOPLIST_FILE = "
|
982
|
+
INFOPLIST_FILE = "ReactNativeTemplate_dev-Info.plist";
|
1033
983
|
LD_RUNPATH_SEARCH_PATHS = (
|
1034
984
|
"$(inherited)",
|
1035
985
|
"@executable_path/Frameworks",
|
@@ -1055,7 +1005,7 @@
|
|
1055
1005
|
CLANG_ENABLE_MODULES = YES;
|
1056
1006
|
CURRENT_PROJECT_VERSION = 1;
|
1057
1007
|
ENABLE_BITCODE = NO;
|
1058
|
-
INFOPLIST_FILE = "
|
1008
|
+
INFOPLIST_FILE = "ReactNativeTemplate_stg-Info.plist";
|
1059
1009
|
LD_RUNPATH_SEARCH_PATHS = (
|
1060
1010
|
"$(inherited)",
|
1061
1011
|
"@executable_path/Frameworks",
|
@@ -1081,7 +1031,7 @@
|
|
1081
1031
|
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon stg";
|
1082
1032
|
CLANG_ENABLE_MODULES = YES;
|
1083
1033
|
CURRENT_PROJECT_VERSION = 1;
|
1084
|
-
INFOPLIST_FILE = "
|
1034
|
+
INFOPLIST_FILE = "ReactNativeTemplate_stg-Info.plist";
|
1085
1035
|
LD_RUNPATH_SEARCH_PATHS = (
|
1086
1036
|
"$(inherited)",
|
1087
1037
|
"@executable_path/Frameworks",
|
package/template/ios/{ReactNativeTemplate dev-Info.plist → ReactNativeTemplate_dev-Info.plist}
RENAMED
@@ -26,14 +26,10 @@
|
|
26
26
|
<true/>
|
27
27
|
<key>NSAppTransportSecurity</key>
|
28
28
|
<dict>
|
29
|
-
<key>
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
34
|
-
<true/>
|
35
|
-
</dict>
|
36
|
-
</dict>
|
29
|
+
<key>NSAllowsArbitraryLoads</key>
|
30
|
+
<false/>
|
31
|
+
<key>NSAllowsLocalNetworking</key>
|
32
|
+
<true/>
|
37
33
|
</dict>
|
38
34
|
<key>NSLocationWhenInUseUsageDescription</key>
|
39
35
|
<string></string>
|
package/template/ios/{ReactNativeTemplate stg-Info.plist → ReactNativeTemplate_stg-Info.plist}
RENAMED
@@ -26,14 +26,10 @@
|
|
26
26
|
<true/>
|
27
27
|
<key>NSAppTransportSecurity</key>
|
28
28
|
<dict>
|
29
|
-
<key>
|
30
|
-
<
|
31
|
-
|
32
|
-
|
33
|
-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
34
|
-
<true/>
|
35
|
-
</dict>
|
36
|
-
</dict>
|
29
|
+
<key>NSAllowsArbitraryLoads</key>
|
30
|
+
<false/>
|
31
|
+
<key>NSAllowsLocalNetworking</key>
|
32
|
+
<true/>
|
37
33
|
</dict>
|
38
34
|
<key>NSLocationWhenInUseUsageDescription</key>
|
39
35
|
<string></string>
|