@nrwl/react-native 14.1.7 → 14.1.8-beta.1
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/migrations.json +37 -0
- package/package.json +10 -10
- package/plugins/metro-resolver.js +6 -6
- package/plugins/metro-resolver.js.map +1 -1
- package/src/generators/application/files/app/android/app/build.gradle.template +2 -4
- package/src/generators/application/files/app/android/app/src/debug/AndroidManifest.xml.template +1 -1
- package/src/generators/application/files/app/android/app/src/debug/java/com/__lowerCaseName__/ReactNativeFlipper.java.template +1 -1
- package/src/generators/application/files/app/android/app/src/main/AndroidManifest.xml.template +1 -1
- package/src/generators/application/files/app/android/app/src/main/java/com/__lowerCaseName__/MainActivity.java.template +1 -1
- package/src/generators/application/files/app/android/app/src/main/res/drawable/rn_edit_text_material.xml +8 -1
- package/src/generators/application/files/app/android/app/src/main/res/values/styles.xml +7 -11
- package/src/generators/application/files/app/android/build.gradle.template +1 -5
- package/src/generators/application/files/app/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/src/generators/application/files/app/android/gradle.properties +1 -1
- package/src/generators/application/files/app/android/gradlew.bat +89 -234
- package/src/generators/application/files/app/android/gradlew.template +1 -1
- package/src/generators/application/files/app/android/settings.gradle.template +1 -1
- package/src/generators/application/files/app/ios/Podfile.template +5 -0
- package/src/generators/application/files/app/ios/__className__/main.m +1 -1
- package/src/generators/application/files/app/ios/__className__.xcodeproj/project.pbxproj.template +175 -0
- package/src/generators/application/files/app/ios/__className__Tests/Info.plist +24 -0
- package/src/generators/application/files/app/ios/__className__Tests/__className__Tests.m +66 -0
- package/src/utils/versions.d.ts +4 -4
- package/src/utils/versions.js +5 -5
- package/src/generators/application/files/app/android/app/src/main/res/drawable/splashscreen.xml +0 -7
- package/src/generators/application/files/app/android/app/src/main/res/drawable/splashscreen_image.png +0 -0
- package/src/generators/application/files/app/android/app/src/main/res/values/colors.xml +0 -5
- package/src/generators/application/files/app/ios/__className__/Base.lproj/LaunchScreen.xib.template +0 -42
- package/src/generators/application/files/app/ios/__className__/Supporting/Expo.plist +0 -10
- package/src/generators/application/files/app/ios/__className__.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
- package/src/generators/application/files/app/ios/__className__.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/src/generators/application/files/app/ios/__className__.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
package/migrations.json
CHANGED
|
@@ -562,6 +562,43 @@
|
|
|
562
562
|
"alwaysAddToPackageJson": false
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
|
+
},
|
|
566
|
+
"14.1.8": {
|
|
567
|
+
"version": "14.1.8-beta.0",
|
|
568
|
+
"packages": {
|
|
569
|
+
"react-native": {
|
|
570
|
+
"version": "0.68.2",
|
|
571
|
+
"alwaysAddToPackageJson": false
|
|
572
|
+
},
|
|
573
|
+
"metro": {
|
|
574
|
+
"version": "0.70.3",
|
|
575
|
+
"alwaysAddToPackageJson": false
|
|
576
|
+
},
|
|
577
|
+
"metro-resolver": {
|
|
578
|
+
"version": "0.70.3",
|
|
579
|
+
"alwaysAddToPackageJson": false
|
|
580
|
+
},
|
|
581
|
+
"metro-babel-register": {
|
|
582
|
+
"version": "0.70.3",
|
|
583
|
+
"alwaysAddToPackageJson": false
|
|
584
|
+
},
|
|
585
|
+
"metro-config": {
|
|
586
|
+
"version": "0.70.3",
|
|
587
|
+
"alwaysAddToPackageJson": false
|
|
588
|
+
},
|
|
589
|
+
"metro-react-native-babel-preset": {
|
|
590
|
+
"version": "0.70.3",
|
|
591
|
+
"alwaysAddToPackageJson": false
|
|
592
|
+
},
|
|
593
|
+
"@types/react-native": {
|
|
594
|
+
"version": "0.67.7",
|
|
595
|
+
"alwaysAddToPackageJson": false
|
|
596
|
+
},
|
|
597
|
+
"react-test-renderer": {
|
|
598
|
+
"version": "18.1.0",
|
|
599
|
+
"alwaysAddToPackageJson": false
|
|
600
|
+
}
|
|
601
|
+
}
|
|
565
602
|
}
|
|
566
603
|
}
|
|
567
604
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react-native",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.8-beta.1",
|
|
4
4
|
"description": "React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.\n\nThe Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Detox, and Storybook.\n\n- Scaffolding for creating buildable libraries that can be published to npm.\n\n- Utilities for automatic workspace refactoring.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Monorepo",
|
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"types": "index.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nrwl/detox": "14.1.
|
|
28
|
-
"@nrwl/devkit": "14.1.
|
|
29
|
-
"@nrwl/jest": "14.1.
|
|
30
|
-
"@nrwl/linter": "14.1.
|
|
31
|
-
"@nrwl/storybook": "14.1.
|
|
32
|
-
"@nrwl/react": "14.1.
|
|
33
|
-
"@nrwl/workspace": "14.1.
|
|
27
|
+
"@nrwl/detox": "14.1.8-beta.1",
|
|
28
|
+
"@nrwl/devkit": "14.1.8-beta.1",
|
|
29
|
+
"@nrwl/jest": "14.1.8-beta.1",
|
|
30
|
+
"@nrwl/linter": "14.1.8-beta.1",
|
|
31
|
+
"@nrwl/storybook": "14.1.8-beta.1",
|
|
32
|
+
"@nrwl/react": "14.1.8-beta.1",
|
|
33
|
+
"@nrwl/workspace": "14.1.8-beta.1",
|
|
34
34
|
"chalk": "^4.1.0",
|
|
35
35
|
"enhanced-resolve": "^5.8.3",
|
|
36
36
|
"fs-extra": "^10.1.0",
|
|
37
37
|
"ignore": "^5.0.4",
|
|
38
|
-
"metro-resolver": "^0.70.
|
|
38
|
+
"metro-resolver": "^0.70.3",
|
|
39
39
|
"node-fetch": "^2.6.7",
|
|
40
40
|
"tsconfig-paths": "^3.9.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"react-native": "^0.68.
|
|
43
|
+
"react-native": "^0.68.2"
|
|
44
44
|
},
|
|
45
45
|
"builders": "./executors.json",
|
|
46
46
|
"ng-update": {
|
|
@@ -21,7 +21,7 @@ function getResolveRequest(extensions) {
|
|
|
21
21
|
if (DEBUG)
|
|
22
22
|
console.log(chalk.cyan(`[Nx] Resolving: ${moduleName}`));
|
|
23
23
|
const { resolveRequest } = _context, context = tslib_1.__rest(_context, ["resolveRequest"]);
|
|
24
|
-
const resolvedPath = defaultMetroResolver(context,
|
|
24
|
+
const resolvedPath = defaultMetroResolver(context, realModuleName, platform, DEBUG) ||
|
|
25
25
|
tsconfigPathsResolver(context, extensions, realModuleName, moduleName, platform, DEBUG) ||
|
|
26
26
|
pnpmResolver(extensions, context, realModuleName, moduleName, DEBUG);
|
|
27
27
|
if (resolvedPath) {
|
|
@@ -35,13 +35,13 @@ exports.getResolveRequest = getResolveRequest;
|
|
|
35
35
|
* This function try to resolve path using metro's default resolver
|
|
36
36
|
* @returns path if resolved, else undefined
|
|
37
37
|
*/
|
|
38
|
-
function defaultMetroResolver(context,
|
|
38
|
+
function defaultMetroResolver(context, realModuleName, platform, debug) {
|
|
39
39
|
try {
|
|
40
|
-
return metroResolver.resolve(context,
|
|
40
|
+
return metroResolver.resolve(context, realModuleName, platform);
|
|
41
41
|
}
|
|
42
42
|
catch (_a) {
|
|
43
43
|
if (debug)
|
|
44
|
-
console.log(chalk.cyan(`[Nx] Unable to resolve with default Metro resolver: ${
|
|
44
|
+
console.log(chalk.cyan(`[Nx] Unable to resolve with default Metro resolver: ${realModuleName}`));
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
@@ -83,13 +83,13 @@ function tsconfigPathsResolver(context, extensions, realModuleName, moduleName,
|
|
|
83
83
|
let matcher;
|
|
84
84
|
let absoluteBaseUrl;
|
|
85
85
|
let paths;
|
|
86
|
-
function getMatcher(
|
|
86
|
+
function getMatcher(debug) {
|
|
87
87
|
if (!matcher) {
|
|
88
88
|
const result = (0, tsconfig_paths_1.loadConfig)();
|
|
89
89
|
if (result.resultType === 'success') {
|
|
90
90
|
absoluteBaseUrl = result.absoluteBaseUrl;
|
|
91
91
|
paths = result.paths;
|
|
92
|
-
if (
|
|
92
|
+
if (debug) {
|
|
93
93
|
console.log(chalk.cyan(`[Nx] Located tsconfig at ${chalk.bold(absoluteBaseUrl)}`));
|
|
94
94
|
console.log(chalk.cyan(`[Nx] Found the following paths:\n:${chalk.bold(JSON.stringify(paths, null, 2))}`));
|
|
95
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-resolver.js","sourceRoot":"","sources":["../../../../packages/react-native/plugins/metro-resolver.ts"],"names":[],"mappings":";;;;AAAA,gDAAgD;AAEhD,mDAA6D;AAC7D,+BAA+B;AAC/B,uDAA0E;AAC1E,+BAAqC;AACrC,yBAAyB;AACzB,yCAA6C;AAE7C;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,OAAO,UACL,QAAa,EACb,cAAsB,EACtB,QAAuB,EACvB,UAAkB;QAElB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,KAAK,MAAM,CAAC;QAE3D,IAAI,KAAK;YAAE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,UAAU,EAAE,CAAC,CAAC,CAAC;QAEpE,MAAM,EAAE,cAAc,KAAiB,QAAQ,EAApB,OAAO,kBAAK,QAAQ,EAAzC,kBAA8B,CAAW,CAAC;QAEhD,MAAM,YAAY,GAChB,oBAAoB,CAAC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"metro-resolver.js","sourceRoot":"","sources":["../../../../packages/react-native/plugins/metro-resolver.ts"],"names":[],"mappings":"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"}
|
|
@@ -165,11 +165,9 @@ android {
|
|
|
165
165
|
// Make sure this target name is the same you specify inside the
|
|
166
166
|
// src/main/jni/Android.mk file for the `LOCAL_MODULE` variable.
|
|
167
167
|
targets "<%= lowerCaseName %>_appmodules"
|
|
168
|
-
|
|
169
168
|
// Fix for windows limit on number of character in file paths and in command lines
|
|
170
169
|
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
|
171
|
-
arguments "
|
|
172
|
-
"NDK_APP_SHORT_COMMANDS=true"
|
|
170
|
+
arguments "NDK_APP_SHORT_COMMANDS=true"
|
|
173
171
|
}
|
|
174
172
|
}
|
|
175
173
|
}
|
|
@@ -335,4 +333,4 @@ def isNewArchitectureEnabled() {
|
|
|
335
333
|
// - Invoke gradle with `-newArchEnabled=true`
|
|
336
334
|
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
|
|
337
335
|
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
|
|
338
|
-
}
|
|
336
|
+
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="utf-8"?>
|
|
2
2
|
<!-- Copyright (C) 2014 The Android Open Source Project
|
|
3
|
+
|
|
3
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
5
|
you may not use this file except in compliance with the License.
|
|
5
6
|
You may obtain a copy of the License at
|
|
7
|
+
|
|
6
8
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
7
10
|
Unless required by applicable law or agreed to in writing, software
|
|
8
11
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
9
12
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
@@ -15,15 +18,19 @@
|
|
|
15
18
|
android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
|
|
16
19
|
android:insetTop="@dimen/abc_edit_text_inset_top_material"
|
|
17
20
|
android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
|
|
21
|
+
|
|
18
22
|
<selector>
|
|
19
23
|
<!--
|
|
20
24
|
This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
|
|
21
25
|
The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
|
|
22
26
|
NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
|
|
27
|
+
|
|
23
28
|
<item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
29
|
+
|
|
24
30
|
For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
|
|
25
31
|
-->
|
|
26
32
|
<item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
|
|
27
33
|
<item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
|
|
28
34
|
</selector>
|
|
29
|
-
|
|
35
|
+
|
|
36
|
+
</inset>
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
<resources>
|
|
2
|
-
<!-- Base application theme. -->
|
|
3
|
-
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
4
|
-
<!-- Customize your theme here. -->
|
|
5
|
-
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
|
6
|
-
</style>
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
<!-- Base application theme. -->
|
|
4
|
+
<style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
5
|
+
<!-- Customize your theme here. -->
|
|
6
|
+
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
|
|
7
|
+
</style>
|
|
8
|
+
|
|
9
|
+
</resources>
|
|
@@ -12,10 +12,6 @@ buildscript {
|
|
|
12
12
|
if (System.properties['os.arch'] == "aarch64") {
|
|
13
13
|
// For M1 Users we need to use the NDK 24 which added support for aarch64
|
|
14
14
|
ndkVersion = "24.0.8215888"
|
|
15
|
-
} else if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
|
16
|
-
// For Android Users, we need to use NDK 23, otherwise the build will
|
|
17
|
-
// fail due to paths longer than the OS limit
|
|
18
|
-
ndkVersion = "23.1.7779620"
|
|
19
15
|
} else {
|
|
20
16
|
// Otherwise we default to the side-by-side NDK version from AGP.
|
|
21
17
|
ndkVersion = "21.4.7075529"
|
|
@@ -61,4 +57,4 @@ allprojects {
|
|
|
61
57
|
}
|
|
62
58
|
<% } %>
|
|
63
59
|
}
|
|
64
|
-
}
|
|
60
|
+
}
|
|
@@ -37,4 +37,4 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
|
37
37
|
# your application. You should enable this flag either if you want
|
|
38
38
|
# to write custom TurboModules/Fabric components OR use libraries that
|
|
39
39
|
# are providing them.
|
|
40
|
-
newArchEnabled=false
|
|
40
|
+
newArchEnabled=false
|
|
@@ -1,234 +1,89 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
92
|
-
MAX_FD=maximum
|
|
93
|
-
|
|
94
|
-
warn () {
|
|
95
|
-
echo "$*"
|
|
96
|
-
} >&2
|
|
97
|
-
|
|
98
|
-
die () {
|
|
99
|
-
echo
|
|
100
|
-
echo "$*"
|
|
101
|
-
echo
|
|
102
|
-
exit 1
|
|
103
|
-
} >&2
|
|
104
|
-
|
|
105
|
-
# OS specific support (must be 'true' or 'false').
|
|
106
|
-
cygwin=false
|
|
107
|
-
msys=false
|
|
108
|
-
darwin=false
|
|
109
|
-
nonstop=false
|
|
110
|
-
case "$( uname )" in #(
|
|
111
|
-
CYGWIN* ) cygwin=true ;; #(
|
|
112
|
-
Darwin* ) darwin=true ;; #(
|
|
113
|
-
MSYS* | MINGW* ) msys=true ;; #(
|
|
114
|
-
NONSTOP* ) nonstop=true ;;
|
|
115
|
-
esac
|
|
116
|
-
|
|
117
|
-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
# Determine the Java command to use to start the JVM.
|
|
121
|
-
if [ -n "$JAVA_HOME" ] ; then
|
|
122
|
-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
123
|
-
# IBM's JDK on AIX uses strange locations for the executables
|
|
124
|
-
JAVACMD=$JAVA_HOME/jre/sh/java
|
|
125
|
-
else
|
|
126
|
-
JAVACMD=$JAVA_HOME/bin/java
|
|
127
|
-
fi
|
|
128
|
-
if [ ! -x "$JAVACMD" ] ; then
|
|
129
|
-
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
130
|
-
|
|
131
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
132
|
-
location of your Java installation."
|
|
133
|
-
fi
|
|
134
|
-
else
|
|
135
|
-
JAVACMD=java
|
|
136
|
-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
137
|
-
|
|
138
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
139
|
-
location of your Java installation."
|
|
140
|
-
fi
|
|
141
|
-
|
|
142
|
-
# Increase the maximum file descriptors if we can.
|
|
143
|
-
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
144
|
-
case $MAX_FD in #(
|
|
145
|
-
max*)
|
|
146
|
-
MAX_FD=$( ulimit -H -n ) ||
|
|
147
|
-
warn "Could not query maximum file descriptor limit"
|
|
148
|
-
esac
|
|
149
|
-
case $MAX_FD in #(
|
|
150
|
-
'' | soft) :;; #(
|
|
151
|
-
*)
|
|
152
|
-
ulimit -n "$MAX_FD" ||
|
|
153
|
-
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
154
|
-
esac
|
|
155
|
-
fi
|
|
156
|
-
|
|
157
|
-
# Collect all arguments for the java command, stacking in reverse order:
|
|
158
|
-
# * args from the command line
|
|
159
|
-
# * the main class name
|
|
160
|
-
# * -classpath
|
|
161
|
-
# * -D...appname settings
|
|
162
|
-
# * --module-path (only if needed)
|
|
163
|
-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
|
164
|
-
|
|
165
|
-
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
166
|
-
if "$cygwin" || "$msys" ; then
|
|
167
|
-
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
|
168
|
-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
169
|
-
|
|
170
|
-
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
|
171
|
-
|
|
172
|
-
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
173
|
-
for arg do
|
|
174
|
-
if
|
|
175
|
-
case $arg in #(
|
|
176
|
-
-*) false ;; # don't mess with options #(
|
|
177
|
-
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
|
178
|
-
[ -e "$t" ] ;; #(
|
|
179
|
-
*) false ;;
|
|
180
|
-
esac
|
|
181
|
-
then
|
|
182
|
-
arg=$( cygpath --path --ignore --mixed "$arg" )
|
|
183
|
-
fi
|
|
184
|
-
# Roll the args list around exactly as many times as the number of
|
|
185
|
-
# args, so each arg winds up back in the position where it started, but
|
|
186
|
-
# possibly modified.
|
|
187
|
-
#
|
|
188
|
-
# NB: a `for` loop captures its iteration list before it begins, so
|
|
189
|
-
# changing the positional parameters here affects neither the number of
|
|
190
|
-
# iterations, nor the values presented in `arg`.
|
|
191
|
-
shift # remove old arg
|
|
192
|
-
set -- "$@" "$arg" # push replacement arg
|
|
193
|
-
done
|
|
194
|
-
fi
|
|
195
|
-
|
|
196
|
-
# Collect all arguments for the java command;
|
|
197
|
-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
|
198
|
-
# shell script including quotes and variable substitutions, so put them in
|
|
199
|
-
# double quotes to make sure that they get re-expanded; and
|
|
200
|
-
# * put everything else in single quotes, so that it's not re-expanded.
|
|
201
|
-
|
|
202
|
-
set -- \
|
|
203
|
-
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
|
204
|
-
-classpath "$CLASSPATH" \
|
|
205
|
-
org.gradle.wrapper.GradleWrapperMain \
|
|
206
|
-
"$@"
|
|
207
|
-
|
|
208
|
-
# Use "xargs" to parse quoted args.
|
|
209
|
-
#
|
|
210
|
-
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
211
|
-
#
|
|
212
|
-
# In Bash we could simply go:
|
|
213
|
-
#
|
|
214
|
-
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
|
215
|
-
# set -- "${ARGS[@]}" "$@"
|
|
216
|
-
#
|
|
217
|
-
# but POSIX shell has neither arrays nor command substitution, so instead we
|
|
218
|
-
# post-process each arg (as a line of input to sed) to backslash-escape any
|
|
219
|
-
# character that might be a shell metacharacter, then use eval to reverse
|
|
220
|
-
# that process (while maintaining the separation between arguments), and wrap
|
|
221
|
-
# the whole thing up as a single "set" statement.
|
|
222
|
-
#
|
|
223
|
-
# This will of course break if any of these variables contains a newline or
|
|
224
|
-
# an unmatched quote.
|
|
225
|
-
#
|
|
226
|
-
|
|
227
|
-
eval "set -- $(
|
|
228
|
-
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
|
229
|
-
xargs -n1 |
|
|
230
|
-
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
|
231
|
-
tr '\n' ' '
|
|
232
|
-
)" '"$@"'
|
|
233
|
-
|
|
234
|
-
exec "$JAVACMD" "$@"
|
|
1
|
+
@rem
|
|
2
|
+
@rem Copyright 2015 the original author or authors.
|
|
3
|
+
@rem
|
|
4
|
+
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
@rem you may not use this file except in compliance with the License.
|
|
6
|
+
@rem You may obtain a copy of the License at
|
|
7
|
+
@rem
|
|
8
|
+
@rem https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
@rem
|
|
10
|
+
@rem Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
@rem See the License for the specific language governing permissions and
|
|
14
|
+
@rem limitations under the License.
|
|
15
|
+
@rem
|
|
16
|
+
|
|
17
|
+
@if "%DEBUG%" == "" @echo off
|
|
18
|
+
@rem ##########################################################################
|
|
19
|
+
@rem
|
|
20
|
+
@rem Gradle startup script for Windows
|
|
21
|
+
@rem
|
|
22
|
+
@rem ##########################################################################
|
|
23
|
+
|
|
24
|
+
@rem Set local scope for the variables with windows NT shell
|
|
25
|
+
if "%OS%"=="Windows_NT" setlocal
|
|
26
|
+
|
|
27
|
+
set DIRNAME=%~dp0
|
|
28
|
+
if "%DIRNAME%" == "" set DIRNAME=.
|
|
29
|
+
set APP_BASE_NAME=%~n0
|
|
30
|
+
set APP_HOME=%DIRNAME%
|
|
31
|
+
|
|
32
|
+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
|
33
|
+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
|
34
|
+
|
|
35
|
+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
36
|
+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
|
37
|
+
|
|
38
|
+
@rem Find java.exe
|
|
39
|
+
if defined JAVA_HOME goto findJavaFromJavaHome
|
|
40
|
+
|
|
41
|
+
set JAVA_EXE=java.exe
|
|
42
|
+
%JAVA_EXE% -version >NUL 2>&1
|
|
43
|
+
if "%ERRORLEVEL%" == "0" goto execute
|
|
44
|
+
|
|
45
|
+
echo.
|
|
46
|
+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
47
|
+
echo.
|
|
48
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
|
49
|
+
echo location of your Java installation.
|
|
50
|
+
|
|
51
|
+
goto fail
|
|
52
|
+
|
|
53
|
+
:findJavaFromJavaHome
|
|
54
|
+
set JAVA_HOME=%JAVA_HOME:"=%
|
|
55
|
+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
|
56
|
+
|
|
57
|
+
if exist "%JAVA_EXE%" goto execute
|
|
58
|
+
|
|
59
|
+
echo.
|
|
60
|
+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
|
61
|
+
echo.
|
|
62
|
+
echo Please set the JAVA_HOME variable in your environment to match the
|
|
63
|
+
echo location of your Java installation.
|
|
64
|
+
|
|
65
|
+
goto fail
|
|
66
|
+
|
|
67
|
+
:execute
|
|
68
|
+
@rem Setup the command line
|
|
69
|
+
|
|
70
|
+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@rem Execute Gradle
|
|
74
|
+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
|
75
|
+
|
|
76
|
+
:end
|
|
77
|
+
@rem End local scope for the variables with windows NT shell
|
|
78
|
+
if "%ERRORLEVEL%"=="0" goto mainEnd
|
|
79
|
+
|
|
80
|
+
:fail
|
|
81
|
+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
|
82
|
+
rem the _cmd.exe /c_ return code!
|
|
83
|
+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
|
84
|
+
exit /b 1
|
|
85
|
+
|
|
86
|
+
:mainEnd
|
|
87
|
+
if "%OS%"=="Windows_NT" endlocal
|
|
88
|
+
|
|
89
|
+
:omega
|
|
@@ -12,4 +12,4 @@ includeBuild('../node_modules/react-native-gradle-plugin')
|
|
|
12
12
|
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
|
|
13
13
|
include(":ReactAndroid")
|
|
14
14
|
project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid')
|
|
15
|
-
}
|
|
15
|
+
}
|
|
@@ -20,6 +20,11 @@ target '<%= className %>' do
|
|
|
20
20
|
:app_path => "#{Pod::Config.instance.installation_root}/.."
|
|
21
21
|
)
|
|
22
22
|
|
|
23
|
+
target '<%= className %>Tests' do
|
|
24
|
+
inherit! :complete
|
|
25
|
+
# Pods for testing
|
|
26
|
+
end
|
|
27
|
+
|
|
23
28
|
# Enables Flipper.
|
|
24
29
|
#
|
|
25
30
|
# Note that if you have use_frameworks! enabled, Flipper will not work and
|
package/src/generators/application/files/app/ios/__className__.xcodeproj/project.pbxproj.template
CHANGED
|
@@ -7,10 +7,12 @@
|
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
10
|
+
00E356F31AD99517003FC87E /* <%= className %>Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* <%= className %>Tests.m */; };
|
|
10
11
|
0C80B921A6F3F58F76C31292 /* libPods-<%= className %>.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-<%= className %>.a */; };
|
|
11
12
|
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
|
|
12
13
|
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
|
|
13
14
|
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
|
|
15
|
+
7699B88040F8A987B510C191 /* libPods-<%= className %>-<%= className %>Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 19F6CBCC0A4E27FBF8BF4A61 /* libPods-<%= className %>-<%= className %>Tests.a */; };
|
|
14
16
|
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
|
|
15
17
|
/* End PBXBuildFile section */
|
|
16
18
|
|
|
@@ -25,21 +27,34 @@
|
|
|
25
27
|
/* End PBXContainerItemProxy section */
|
|
26
28
|
|
|
27
29
|
/* Begin PBXFileReference section */
|
|
30
|
+
00E356EE1AD99517003FC87E /* <%= className %>Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = <%= className %>Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
28
31
|
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
32
|
+
00E356F21AD99517003FC87E /* <%= className %>Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = <%= className %>Tests.m; sourceTree = "<group>"; };
|
|
29
33
|
13B07F961A680F5B00A75B9A /* <%= className %>.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = <%= className %>.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
30
34
|
13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = <%= className %>/AppDelegate.h; sourceTree = "<group>"; };
|
|
31
35
|
13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = <%= className %>/AppDelegate.mm; sourceTree = "<group>"; };
|
|
32
36
|
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = <%= className %>/Images.xcassets; sourceTree = "<group>"; };
|
|
33
37
|
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = <%= className %>/Info.plist; sourceTree = "<group>"; };
|
|
34
38
|
13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = <%= className %>/main.m; sourceTree = "<group>"; };
|
|
39
|
+
19F6CBCC0A4E27FBF8BF4A61 /* libPods-<%= className %>-<%= className %>Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-<%= className %>-<%= className %>Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
35
40
|
3B4392A12AC88292D35C810B /* Pods-<%= className %>.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%= className %>.debug.xcconfig"; path = "Target Support Files/Pods-<%= className %>/Pods-<%= className %>.debug.xcconfig"; sourceTree = "<group>"; };
|
|
36
41
|
5709B34CF0A7D63546082F79 /* Pods-<%= className %>.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%= className %>.release.xcconfig"; path = "Target Support Files/Pods-<%= className %>/Pods-<%= className %>.release.xcconfig"; sourceTree = "<group>"; };
|
|
42
|
+
5B7EB9410499542E8C5724F5 /* Pods-<%= className %>-<%= className %>Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%= className %>-<%= className %>Tests.debug.xcconfig"; path = "Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests.debug.xcconfig"; sourceTree = "<group>"; };
|
|
37
43
|
5DCACB8F33CDC322A6C60F78 /* libPods-<%= className %>.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-<%= className %>.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
38
44
|
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = <%= className %>/LaunchScreen.storyboard; sourceTree = "<group>"; };
|
|
45
|
+
89C6BE57DB24E9ADA2F236DE /* Pods-<%= className %>-<%= className %>Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-<%= className %>-<%= className %>Tests.release.xcconfig"; path = "Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests.release.xcconfig"; sourceTree = "<group>"; };
|
|
39
46
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
|
|
40
47
|
/* End PBXFileReference section */
|
|
41
48
|
|
|
42
49
|
/* Begin PBXFrameworksBuildPhase section */
|
|
50
|
+
00E356EB1AD99517003FC87E /* Frameworks */ = {
|
|
51
|
+
isa = PBXFrameworksBuildPhase;
|
|
52
|
+
buildActionMask = 2147483647;
|
|
53
|
+
files = (
|
|
54
|
+
7699B88040F8A987B510C191 /* libPods-<%= className %>-<%= className %>Tests.a in Frameworks */,
|
|
55
|
+
);
|
|
56
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
57
|
+
};
|
|
43
58
|
13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
|
|
44
59
|
isa = PBXFrameworksBuildPhase;
|
|
45
60
|
buildActionMask = 2147483647;
|
|
@@ -51,6 +66,15 @@
|
|
|
51
66
|
/* End PBXFrameworksBuildPhase section */
|
|
52
67
|
|
|
53
68
|
/* Begin PBXGroup section */
|
|
69
|
+
00E356EF1AD99517003FC87E /* <%= className %>Tests */ = {
|
|
70
|
+
isa = PBXGroup;
|
|
71
|
+
children = (
|
|
72
|
+
00E356F21AD99517003FC87E /* <%= className %>Tests.m */,
|
|
73
|
+
00E356F01AD99517003FC87E /* Supporting Files */,
|
|
74
|
+
);
|
|
75
|
+
path = <%= className %>Tests;
|
|
76
|
+
sourceTree = "<group>";
|
|
77
|
+
};
|
|
54
78
|
00E356F01AD99517003FC87E /* Supporting Files */ = {
|
|
55
79
|
isa = PBXGroup;
|
|
56
80
|
children = (
|
|
@@ -77,6 +101,7 @@
|
|
|
77
101
|
children = (
|
|
78
102
|
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
|
|
79
103
|
5DCACB8F33CDC322A6C60F78 /* libPods-<%= className %>.a */,
|
|
104
|
+
19F6CBCC0A4E27FBF8BF4A61 /* libPods-<%= className %>-<%= className %>Tests.a */,
|
|
80
105
|
);
|
|
81
106
|
name = Frameworks;
|
|
82
107
|
sourceTree = "<group>";
|
|
@@ -93,6 +118,7 @@
|
|
|
93
118
|
children = (
|
|
94
119
|
13B07FAE1A68108700A75B9A /* <%= className %> */,
|
|
95
120
|
832341AE1AAA6A7D00B99B32 /* Libraries */,
|
|
121
|
+
00E356EF1AD99517003FC87E /* <%= className %>Tests */,
|
|
96
122
|
83CBBA001A601CBA00E9B192 /* Products */,
|
|
97
123
|
2D16E6871FA4F8E400B85C8A /* Frameworks */,
|
|
98
124
|
BBD78D7AC51CEA395F1C20DB /* Pods */,
|
|
@@ -106,6 +132,7 @@
|
|
|
106
132
|
isa = PBXGroup;
|
|
107
133
|
children = (
|
|
108
134
|
13B07F961A680F5B00A75B9A /* <%= className %>.app */,
|
|
135
|
+
00E356EE1AD99517003FC87E /* <%= className %>Tests.xctest */,
|
|
109
136
|
);
|
|
110
137
|
name = Products;
|
|
111
138
|
sourceTree = "<group>";
|
|
@@ -115,6 +142,8 @@
|
|
|
115
142
|
children = (
|
|
116
143
|
3B4392A12AC88292D35C810B /* Pods-<%= className %>.debug.xcconfig */,
|
|
117
144
|
5709B34CF0A7D63546082F79 /* Pods-<%= className %>.release.xcconfig */,
|
|
145
|
+
5B7EB9410499542E8C5724F5 /* Pods-<%= className %>-<%= className %>Tests.debug.xcconfig */,
|
|
146
|
+
89C6BE57DB24E9ADA2F236DE /* Pods-<%= className %>-<%= className %>Tests.release.xcconfig */,
|
|
118
147
|
);
|
|
119
148
|
path = Pods;
|
|
120
149
|
sourceTree = "<group>";
|
|
@@ -122,6 +151,27 @@
|
|
|
122
151
|
/* End PBXGroup section */
|
|
123
152
|
|
|
124
153
|
/* Begin PBXNativeTarget section */
|
|
154
|
+
00E356ED1AD99517003FC87E /* <%= className %>Tests */ = {
|
|
155
|
+
isa = PBXNativeTarget;
|
|
156
|
+
buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "<%= className %>Tests" */;
|
|
157
|
+
buildPhases = (
|
|
158
|
+
A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */,
|
|
159
|
+
00E356EA1AD99517003FC87E /* Sources */,
|
|
160
|
+
00E356EB1AD99517003FC87E /* Frameworks */,
|
|
161
|
+
00E356EC1AD99517003FC87E /* Resources */,
|
|
162
|
+
C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */,
|
|
163
|
+
F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */,
|
|
164
|
+
);
|
|
165
|
+
buildRules = (
|
|
166
|
+
);
|
|
167
|
+
dependencies = (
|
|
168
|
+
00E356F51AD99517003FC87E /* PBXTargetDependency */,
|
|
169
|
+
);
|
|
170
|
+
name = <%= className %>Tests;
|
|
171
|
+
productName = <%= className %>Tests;
|
|
172
|
+
productReference = 00E356EE1AD99517003FC87E /* <%= className %>Tests.xctest */;
|
|
173
|
+
productType = "com.apple.product-type.bundle.unit-test";
|
|
174
|
+
};
|
|
125
175
|
13B07F861A680F5B00A75B9A /* <%= className %> */ = {
|
|
126
176
|
isa = PBXNativeTarget;
|
|
127
177
|
buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "<%= className %>" */;
|
|
@@ -175,6 +225,7 @@
|
|
|
175
225
|
projectRoot = "";
|
|
176
226
|
targets = (
|
|
177
227
|
13B07F861A680F5B00A75B9A /* <%= className %> */,
|
|
228
|
+
00E356ED1AD99517003FC87E /* <%= className %>Tests */,
|
|
178
229
|
);
|
|
179
230
|
};
|
|
180
231
|
/* End PBXProject section */
|
|
@@ -230,6 +281,28 @@
|
|
|
230
281
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-<%= className %>/Pods-<%= className %>-frameworks.sh\"\n";
|
|
231
282
|
showEnvVarsInLog = 0;
|
|
232
283
|
};
|
|
284
|
+
A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = {
|
|
285
|
+
isa = PBXShellScriptBuildPhase;
|
|
286
|
+
buildActionMask = 2147483647;
|
|
287
|
+
files = (
|
|
288
|
+
);
|
|
289
|
+
inputFileListPaths = (
|
|
290
|
+
);
|
|
291
|
+
inputPaths = (
|
|
292
|
+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
|
293
|
+
"${PODS_ROOT}/Manifest.lock",
|
|
294
|
+
);
|
|
295
|
+
name = "[CP] Check Pods Manifest.lock";
|
|
296
|
+
outputFileListPaths = (
|
|
297
|
+
);
|
|
298
|
+
outputPaths = (
|
|
299
|
+
"$(DERIVED_FILE_DIR)/Pods-<%= className %>-<%= className %>Tests-checkManifestLockResult.txt",
|
|
300
|
+
);
|
|
301
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
302
|
+
shellPath = /bin/sh;
|
|
303
|
+
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";
|
|
304
|
+
showEnvVarsInLog = 0;
|
|
305
|
+
};
|
|
233
306
|
C38B50BA6285516D6DCD4F65 /* [CP] Check Pods Manifest.lock */ = {
|
|
234
307
|
isa = PBXShellScriptBuildPhase;
|
|
235
308
|
buildActionMask = 2147483647;
|
|
@@ -252,6 +325,23 @@
|
|
|
252
325
|
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";
|
|
253
326
|
showEnvVarsInLog = 0;
|
|
254
327
|
};
|
|
328
|
+
C59DA0FBD6956966B86A3779 /* [CP] Embed Pods Frameworks */ = {
|
|
329
|
+
isa = PBXShellScriptBuildPhase;
|
|
330
|
+
buildActionMask = 2147483647;
|
|
331
|
+
files = (
|
|
332
|
+
);
|
|
333
|
+
inputFileListPaths = (
|
|
334
|
+
"${PODS_ROOT}/Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
|
335
|
+
);
|
|
336
|
+
name = "[CP] Embed Pods Frameworks";
|
|
337
|
+
outputFileListPaths = (
|
|
338
|
+
"${PODS_ROOT}/Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
|
339
|
+
);
|
|
340
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
341
|
+
shellPath = /bin/sh;
|
|
342
|
+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests-frameworks.sh\"\n";
|
|
343
|
+
showEnvVarsInLog = 0;
|
|
344
|
+
};
|
|
255
345
|
E235C05ADACE081382539298 /* [CP] Copy Pods Resources */ = {
|
|
256
346
|
isa = PBXShellScriptBuildPhase;
|
|
257
347
|
buildActionMask = 2147483647;
|
|
@@ -269,6 +359,23 @@
|
|
|
269
359
|
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-<%= className %>/Pods-<%= className %>-resources.sh\"\n";
|
|
270
360
|
showEnvVarsInLog = 0;
|
|
271
361
|
};
|
|
362
|
+
F6A41C54EA430FDDC6A6ED99 /* [CP] Copy Pods Resources */ = {
|
|
363
|
+
isa = PBXShellScriptBuildPhase;
|
|
364
|
+
buildActionMask = 2147483647;
|
|
365
|
+
files = (
|
|
366
|
+
);
|
|
367
|
+
inputFileListPaths = (
|
|
368
|
+
"${PODS_ROOT}/Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests-resources-${CONFIGURATION}-input-files.xcfilelist",
|
|
369
|
+
);
|
|
370
|
+
name = "[CP] Copy Pods Resources";
|
|
371
|
+
outputFileListPaths = (
|
|
372
|
+
"${PODS_ROOT}/Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests-resources-${CONFIGURATION}-output-files.xcfilelist",
|
|
373
|
+
);
|
|
374
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
375
|
+
shellPath = /bin/sh;
|
|
376
|
+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-<%= className %>-<%= className %>Tests/Pods-<%= className %>-<%= className %>Tests-resources.sh\"\n";
|
|
377
|
+
showEnvVarsInLog = 0;
|
|
378
|
+
};
|
|
272
379
|
FD10A7F022414F080027D42C /* Start Packager */ = {
|
|
273
380
|
isa = PBXShellScriptBuildPhase;
|
|
274
381
|
buildActionMask = 2147483647;
|
|
@@ -291,6 +398,14 @@
|
|
|
291
398
|
/* End PBXShellScriptBuildPhase section */
|
|
292
399
|
|
|
293
400
|
/* Begin PBXSourcesBuildPhase section */
|
|
401
|
+
00E356EA1AD99517003FC87E /* Sources */ = {
|
|
402
|
+
isa = PBXSourcesBuildPhase;
|
|
403
|
+
buildActionMask = 2147483647;
|
|
404
|
+
files = (
|
|
405
|
+
00E356F31AD99517003FC87E /* <%= className %>Tests.m in Sources */,
|
|
406
|
+
);
|
|
407
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
408
|
+
};
|
|
294
409
|
13B07F871A680F5B00A75B9A /* Sources */ = {
|
|
295
410
|
isa = PBXSourcesBuildPhase;
|
|
296
411
|
buildActionMask = 2147483647;
|
|
@@ -311,6 +426,57 @@
|
|
|
311
426
|
/* End PBXTargetDependency section */
|
|
312
427
|
|
|
313
428
|
/* Begin XCBuildConfiguration section */
|
|
429
|
+
00E356F61AD99517003FC87E /* Debug */ = {
|
|
430
|
+
isa = XCBuildConfiguration;
|
|
431
|
+
baseConfigurationReference = 5B7EB9410499542E8C5724F5 /* Pods-<%= className %>-<%= className %>Tests.debug.xcconfig */;
|
|
432
|
+
buildSettings = {
|
|
433
|
+
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
434
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
435
|
+
"DEBUG=1",
|
|
436
|
+
"$(inherited)",
|
|
437
|
+
);
|
|
438
|
+
INFOPLIST_FILE = <%= className %>Tests/Info.plist;
|
|
439
|
+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
|
440
|
+
LD_RUNPATH_SEARCH_PATHS = (
|
|
441
|
+
"$(inherited)",
|
|
442
|
+
"@executable_path/Frameworks",
|
|
443
|
+
"@loader_path/Frameworks",
|
|
444
|
+
);
|
|
445
|
+
OTHER_LDFLAGS = (
|
|
446
|
+
"-ObjC",
|
|
447
|
+
"-lc++",
|
|
448
|
+
"$(inherited)",
|
|
449
|
+
);
|
|
450
|
+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
|
|
451
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
452
|
+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/<%= className %>.app/<%= className %>";
|
|
453
|
+
};
|
|
454
|
+
name = Debug;
|
|
455
|
+
};
|
|
456
|
+
00E356F71AD99517003FC87E /* Release */ = {
|
|
457
|
+
isa = XCBuildConfiguration;
|
|
458
|
+
baseConfigurationReference = 89C6BE57DB24E9ADA2F236DE /* Pods-<%= className %>-<%= className %>Tests.release.xcconfig */;
|
|
459
|
+
buildSettings = {
|
|
460
|
+
BUNDLE_LOADER = "$(TEST_HOST)";
|
|
461
|
+
COPY_PHASE_STRIP = NO;
|
|
462
|
+
INFOPLIST_FILE = <%= className %>Tests/Info.plist;
|
|
463
|
+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
|
464
|
+
LD_RUNPATH_SEARCH_PATHS = (
|
|
465
|
+
"$(inherited)",
|
|
466
|
+
"@executable_path/Frameworks",
|
|
467
|
+
"@loader_path/Frameworks",
|
|
468
|
+
);
|
|
469
|
+
OTHER_LDFLAGS = (
|
|
470
|
+
"-ObjC",
|
|
471
|
+
"-lc++",
|
|
472
|
+
"$(inherited)",
|
|
473
|
+
);
|
|
474
|
+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
|
|
475
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
476
|
+
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/<%= className %>.app/<%= className %>";
|
|
477
|
+
};
|
|
478
|
+
name = Release;
|
|
479
|
+
};
|
|
314
480
|
13B07F941A680F5B00A75B9A /* Debug */ = {
|
|
315
481
|
isa = XCBuildConfiguration;
|
|
316
482
|
baseConfigurationReference = 3B4392A12AC88292D35C810B /* Pods-<%= className %>.debug.xcconfig */;
|
|
@@ -499,6 +665,15 @@
|
|
|
499
665
|
/* End XCBuildConfiguration section */
|
|
500
666
|
|
|
501
667
|
/* Begin XCConfigurationList section */
|
|
668
|
+
00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "<%= className %>Tests" */ = {
|
|
669
|
+
isa = XCConfigurationList;
|
|
670
|
+
buildConfigurations = (
|
|
671
|
+
00E356F61AD99517003FC87E /* Debug */,
|
|
672
|
+
00E356F71AD99517003FC87E /* Release */,
|
|
673
|
+
);
|
|
674
|
+
defaultConfigurationIsVisible = 0;
|
|
675
|
+
defaultConfigurationName = Release;
|
|
676
|
+
};
|
|
502
677
|
13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "<%= className %>" */ = {
|
|
503
678
|
isa = XCConfigurationList;
|
|
504
679
|
buildConfigurations = (
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>en</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>BNDL</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleSignature</key>
|
|
20
|
+
<string>????</string>
|
|
21
|
+
<key>CFBundleVersion</key>
|
|
22
|
+
<string>1</string>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
#import <UIKit/UIKit.h>
|
|
2
|
+
#import <XCTest/XCTest.h>
|
|
3
|
+
|
|
4
|
+
#import <React/RCTLog.h>
|
|
5
|
+
#import <React/RCTRootView.h>
|
|
6
|
+
|
|
7
|
+
#define TIMEOUT_SECONDS 600
|
|
8
|
+
#define TEXT_TO_LOOK_FOR @"Welcome to React"
|
|
9
|
+
|
|
10
|
+
@interface <%= className %>Tests : XCTestCase
|
|
11
|
+
|
|
12
|
+
@end
|
|
13
|
+
|
|
14
|
+
@implementation <%= className %>Tests
|
|
15
|
+
|
|
16
|
+
- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
|
|
17
|
+
{
|
|
18
|
+
if (test(view)) {
|
|
19
|
+
return YES;
|
|
20
|
+
}
|
|
21
|
+
for (UIView *subview in [view subviews]) {
|
|
22
|
+
if ([self findSubviewInView:subview matching:test]) {
|
|
23
|
+
return YES;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return NO;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
- (void)testRendersWelcomeScreen
|
|
30
|
+
{
|
|
31
|
+
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
|
|
32
|
+
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
|
|
33
|
+
BOOL foundElement = NO;
|
|
34
|
+
|
|
35
|
+
__block NSString *redboxError = nil;
|
|
36
|
+
#ifdef DEBUG
|
|
37
|
+
RCTSetLogFunction(
|
|
38
|
+
^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
|
|
39
|
+
if (level >= RCTLogLevelError) {
|
|
40
|
+
redboxError = message;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
#endif
|
|
44
|
+
|
|
45
|
+
while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
|
|
46
|
+
[[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
|
|
47
|
+
[[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
|
|
48
|
+
|
|
49
|
+
foundElement = [self findSubviewInView:vc.view
|
|
50
|
+
matching:^BOOL(UIView *view) {
|
|
51
|
+
if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
|
|
52
|
+
return YES;
|
|
53
|
+
}
|
|
54
|
+
return NO;
|
|
55
|
+
}];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
#ifdef DEBUG
|
|
59
|
+
RCTSetLogFunction(RCTDefaultLogFunction);
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
|
|
63
|
+
XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@end
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const nxVersion = "*";
|
|
2
|
-
export declare const reactNativeVersion = "0.68.
|
|
3
|
-
export declare const typesReactNativeVersion = "0.67.
|
|
2
|
+
export declare const reactNativeVersion = "0.68.2";
|
|
3
|
+
export declare const typesReactNativeVersion = "0.67.7";
|
|
4
4
|
export declare const typesNodeVersion = "16.11.7";
|
|
5
|
-
export declare const metroVersion = "0.70.
|
|
5
|
+
export declare const metroVersion = "0.70.3";
|
|
6
6
|
export declare const reactNativeCommunityCli = "7.0.3";
|
|
7
7
|
export declare const reactNativeCommunityCliIos = "7.0.1";
|
|
8
8
|
export declare const reactNativeCommunityCliAndroid = "7.0.1";
|
|
@@ -11,7 +11,7 @@ export declare const reactNativeAsyncStorageAsyncStorageVersion = "1.16.3";
|
|
|
11
11
|
export declare const testingLibraryReactNativeVersion = "9.1.0";
|
|
12
12
|
export declare const testingLibraryJestNativeVersion = "4.0.4";
|
|
13
13
|
export declare const jestReactNativeVersion = "18.0.0";
|
|
14
|
-
export declare const reactTestRendererVersion = "18.
|
|
14
|
+
export declare const reactTestRendererVersion = "18.1.0";
|
|
15
15
|
export declare const reactNativeSvgTransformerVersion = "1.0.0";
|
|
16
16
|
export declare const reactNativeSvgVersion = "12.3.0";
|
|
17
17
|
export declare const babelRuntimeVersion = "7.17.9";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.babelRuntimeVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactTestRendererVersion = exports.jestReactNativeVersion = exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.reactNativeAsyncStorageAsyncStorageVersion = exports.reactNativeConfigVersion = exports.reactNativeCommunityCliAndroid = exports.reactNativeCommunityCliIos = exports.reactNativeCommunityCli = exports.metroVersion = exports.typesNodeVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '14.1.
|
|
5
|
-
exports.reactNativeVersion = '0.68.
|
|
6
|
-
exports.typesReactNativeVersion = '0.67.
|
|
4
|
+
exports.nxVersion = '14.1.8-beta.1';
|
|
5
|
+
exports.reactNativeVersion = '0.68.2';
|
|
6
|
+
exports.typesReactNativeVersion = '0.67.7';
|
|
7
7
|
exports.typesNodeVersion = '16.11.7';
|
|
8
|
-
exports.metroVersion = '0.70.
|
|
8
|
+
exports.metroVersion = '0.70.3';
|
|
9
9
|
exports.reactNativeCommunityCli = '7.0.3';
|
|
10
10
|
exports.reactNativeCommunityCliIos = '7.0.1';
|
|
11
11
|
exports.reactNativeCommunityCliAndroid = '7.0.1';
|
|
@@ -14,7 +14,7 @@ exports.reactNativeAsyncStorageAsyncStorageVersion = '1.16.3';
|
|
|
14
14
|
exports.testingLibraryReactNativeVersion = '9.1.0';
|
|
15
15
|
exports.testingLibraryJestNativeVersion = '4.0.4';
|
|
16
16
|
exports.jestReactNativeVersion = '18.0.0';
|
|
17
|
-
exports.reactTestRendererVersion = '18.
|
|
17
|
+
exports.reactTestRendererVersion = '18.1.0';
|
|
18
18
|
exports.reactNativeSvgTransformerVersion = '1.0.0';
|
|
19
19
|
exports.reactNativeSvgVersion = '12.3.0';
|
|
20
20
|
exports.babelRuntimeVersion = '7.17.9';
|
package/src/generators/application/files/app/android/app/src/main/res/drawable/splashscreen.xml
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!--
|
|
3
|
-
This file was created by '@expo/configure-splash-screen' and some of it's content shouldn't be modified by hand
|
|
4
|
-
-->
|
|
5
|
-
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
6
|
-
<item android:drawable="@color/splashscreen_background"/>
|
|
7
|
-
</layer-list>
|
|
Binary file
|
package/src/generators/application/files/app/ios/__className__/Base.lproj/LaunchScreen.xib.template
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
|
|
3
|
-
<dependencies>
|
|
4
|
-
<deployment identifier="iOS"/>
|
|
5
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
|
|
6
|
-
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
|
|
7
|
-
</dependencies>
|
|
8
|
-
<objects>
|
|
9
|
-
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
|
|
10
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
|
11
|
-
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
|
12
|
-
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
|
|
13
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
|
14
|
-
<subviews>
|
|
15
|
-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
|
|
16
|
-
<rect key="frame" x="20" y="439" width="441" height="21"/>
|
|
17
|
-
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
|
18
|
-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
|
19
|
-
<nil key="highlightedColor"/>
|
|
20
|
-
</label>
|
|
21
|
-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="<%= className %>" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
|
|
22
|
-
<rect key="frame" x="20" y="140" width="441" height="43"/>
|
|
23
|
-
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
|
|
24
|
-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
|
25
|
-
<nil key="highlightedColor"/>
|
|
26
|
-
</label>
|
|
27
|
-
</subviews>
|
|
28
|
-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
|
29
|
-
<constraints>
|
|
30
|
-
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
|
|
31
|
-
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
|
|
32
|
-
<constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
|
|
33
|
-
<constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
|
|
34
|
-
<constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
|
|
35
|
-
<constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
|
|
36
|
-
</constraints>
|
|
37
|
-
<nil key="simulatedStatusBarMetrics"/>
|
|
38
|
-
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
|
39
|
-
<point key="canvasLocation" x="548" y="455"/>
|
|
40
|
-
</view>
|
|
41
|
-
</objects>
|
|
42
|
-
</document>
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>EXUpdatesSDKVersion</key>
|
|
6
|
-
<string>YOUR-APP-SDK-VERSION-HERE</string>
|
|
7
|
-
<key>EXUpdatesURL</key>
|
|
8
|
-
<string>YOUR-APP-URL-HERE</string>
|
|
9
|
-
</dict>
|
|
10
|
-
</plist>
|