@flun/node-mobile-app 4.0.7 → 4.0.9
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/Android /346/236/204/345/273/272/346/214/207/345/215/227.md" +354 -354
- package/CHANGELOG.md +20 -13
- package/LICENSE +33 -33
- package/README.md +661 -652
- package/bin/cli.js +20 -15
- package/mobileAppConfig.js +165 -165
- package/package.json +8 -8
- package/src/commands/build.js +119 -119
- package/src/commands/test.js +169 -169
- package/src/config.js +112 -112
- package/src/copy.js +320 -320
- package/src/fingerprint.js +129 -129
- package/src/generate.js +103 -103
- package/src/install.js +327 -327
- package/src/optimize-node-modules.js +711 -711
- package/src/patcher.js +393 -393
- package/src/platform-ios.js +140 -140
- package/src/utils.js +280 -280
- package/template/android/gradle.properties +48 -48
- package/template/eslint.config.js +5 -5
- package/template/ios/MyApp/Info.plist +73 -73
- package//350/207/252/345/256/232/344/271/211libnode/346/214/207/345/215/227.md +477 -477
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
# Project-wide Gradle settings.
|
|
2
|
-
|
|
3
|
-
# IDE (e.g. Android Studio) users:
|
|
4
|
-
# Gradle settings configured through the IDE *will override*
|
|
5
|
-
# any settings specified in this file.
|
|
6
|
-
|
|
7
|
-
# For more details on how to configure your build environment visit
|
|
8
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
-
|
|
10
|
-
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
-
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
-
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
-
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
|
-
|
|
15
|
-
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
-
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
-
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
-
# org.gradle.parallel=true
|
|
19
|
-
|
|
20
|
-
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
21
|
-
# Android operating system, and which are packaged with your app's APK
|
|
22
|
-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
23
|
-
android.useAndroidX=true
|
|
24
|
-
|
|
25
|
-
# Use this property to specify which architecture you want to build.
|
|
26
|
-
# You can also override it from the CLI using
|
|
27
|
-
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
28
|
-
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
29
|
-
|
|
30
|
-
# Use this property to enable support to the new architecture.
|
|
31
|
-
# This will allow you to use TurboModules and the Fabric render in
|
|
32
|
-
# your application. You should enable this flag either if you want
|
|
33
|
-
# to write custom TurboModules/Fabric components OR use libraries that
|
|
34
|
-
# are providing them.
|
|
35
|
-
newArchEnabled=true
|
|
36
|
-
|
|
37
|
-
# Use this property to enable or disable the Hermes JS engine.
|
|
38
|
-
# If set to false, you will be using JSC instead.
|
|
39
|
-
hermesEnabled=true
|
|
40
|
-
|
|
41
|
-
# Use this property to enable edge-to-edge display support.
|
|
42
|
-
# This allows your app to draw behind system bars for an immersive UI.
|
|
43
|
-
# Note: Only works with ReactActivity and should not be used with custom Activity.
|
|
44
|
-
edgeToEdgeEnabled=true
|
|
45
|
-
|
|
46
|
-
# Opt out of built-in kotlin and new DSL behavior that ships with AGP 9.
|
|
47
|
-
# Starting from AGP 10.x these opt outs will be removed.
|
|
48
|
-
android.builtInKotlin=false
|
|
1
|
+
# Project-wide Gradle settings.
|
|
2
|
+
|
|
3
|
+
# IDE (e.g. Android Studio) users:
|
|
4
|
+
# Gradle settings configured through the IDE *will override*
|
|
5
|
+
# any settings specified in this file.
|
|
6
|
+
|
|
7
|
+
# For more details on how to configure your build environment visit
|
|
8
|
+
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
9
|
+
|
|
10
|
+
# Specifies the JVM arguments used for the daemon process.
|
|
11
|
+
# The setting is particularly useful for tweaking memory settings.
|
|
12
|
+
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
|
|
13
|
+
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
|
|
14
|
+
|
|
15
|
+
# When configured, Gradle will run in incubating parallel mode.
|
|
16
|
+
# This option should only be used with decoupled projects. More details, visit
|
|
17
|
+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
|
18
|
+
# org.gradle.parallel=true
|
|
19
|
+
|
|
20
|
+
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
21
|
+
# Android operating system, and which are packaged with your app's APK
|
|
22
|
+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
23
|
+
android.useAndroidX=true
|
|
24
|
+
|
|
25
|
+
# Use this property to specify which architecture you want to build.
|
|
26
|
+
# You can also override it from the CLI using
|
|
27
|
+
# ./gradlew <task> -PreactNativeArchitectures=x86_64
|
|
28
|
+
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
|
|
29
|
+
|
|
30
|
+
# Use this property to enable support to the new architecture.
|
|
31
|
+
# This will allow you to use TurboModules and the Fabric render in
|
|
32
|
+
# your application. You should enable this flag either if you want
|
|
33
|
+
# to write custom TurboModules/Fabric components OR use libraries that
|
|
34
|
+
# are providing them.
|
|
35
|
+
newArchEnabled=true
|
|
36
|
+
|
|
37
|
+
# Use this property to enable or disable the Hermes JS engine.
|
|
38
|
+
# If set to false, you will be using JSC instead.
|
|
39
|
+
hermesEnabled=true
|
|
40
|
+
|
|
41
|
+
# Use this property to enable edge-to-edge display support.
|
|
42
|
+
# This allows your app to draw behind system bars for an immersive UI.
|
|
43
|
+
# Note: Only works with ReactActivity and should not be used with custom Activity.
|
|
44
|
+
edgeToEdgeEnabled=true
|
|
45
|
+
|
|
46
|
+
# Opt out of built-in kotlin and new DSL behavior that ships with AGP 9.
|
|
47
|
+
# Starting from AGP 10.x these opt outs will be removed.
|
|
48
|
+
android.builtInKotlin=false
|
|
49
49
|
android.newDsl=false
|
|
50
50
|
# 允许非 ASCII 路径(如中文路径)构建;AGP 默认拒绝
|
|
51
51
|
android.overridePathCheck=true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import reactNativeConfig from '@react-native/eslint-config/flat';
|
|
2
|
-
|
|
3
|
-
export default [
|
|
4
|
-
...reactNativeConfig,
|
|
5
|
-
// 你的自定义配置写在这里
|
|
1
|
+
import reactNativeConfig from '@react-native/eslint-config/flat';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
...reactNativeConfig,
|
|
5
|
+
// 你的自定义配置写在这里
|
|
6
6
|
];
|
|
@@ -1,74 +1,74 @@
|
|
|
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>CADisableMinimumFrameDurationOnPhone</key>
|
|
6
|
-
<true/>
|
|
7
|
-
<key>CFBundleDevelopmentRegion</key>
|
|
8
|
-
<string>en</string>
|
|
9
|
-
<key>CFBundleDisplayName</key>
|
|
10
|
-
<string>MyApp</string>
|
|
11
|
-
<key>CFBundleExecutable</key>
|
|
12
|
-
<string>$(EXECUTABLE_NAME)</string>
|
|
13
|
-
<key>CFBundleIdentifier</key>
|
|
14
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
15
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
16
|
-
<string>6.0</string>
|
|
17
|
-
<key>CFBundleName</key>
|
|
18
|
-
<string>$(PRODUCT_NAME)</string>
|
|
19
|
-
<key>CFBundlePackageType</key>
|
|
20
|
-
<string>APPL</string>
|
|
21
|
-
<key>CFBundleShortVersionString</key>
|
|
22
|
-
<string>$(MARKETING_VERSION)</string>
|
|
23
|
-
<key>CFBundleSignature</key>
|
|
24
|
-
<string>????</string>
|
|
25
|
-
<key>CFBundleVersion</key>
|
|
26
|
-
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
27
|
-
<key>LSRequiresIPhoneOS</key>
|
|
28
|
-
<true/>
|
|
29
|
-
<key>NSAppTransportSecurity</key>
|
|
30
|
-
<dict>
|
|
31
|
-
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
|
|
32
|
-
<key>NSAllowsArbitraryLoads</key>
|
|
33
|
-
<false/>
|
|
34
|
-
<key>NSAllowsLocalNetworking</key>
|
|
35
|
-
<true/>
|
|
36
|
-
<key>NSExceptionDomains</key>
|
|
37
|
-
<dict>
|
|
38
|
-
<key>localhost</key>
|
|
39
|
-
<dict>
|
|
40
|
-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
41
|
-
<true/>
|
|
42
|
-
<key>NSIncludesSubdomains</key>
|
|
43
|
-
<true/>
|
|
44
|
-
</dict>
|
|
45
|
-
<key>127.0.0.1</key>
|
|
46
|
-
<dict>
|
|
47
|
-
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
48
|
-
<true/>
|
|
49
|
-
</dict>
|
|
50
|
-
</dict>
|
|
51
|
-
</dict>
|
|
52
|
-
<key>NSLocationWhenInUseUsageDescription</key>
|
|
53
|
-
<string></string>
|
|
54
|
-
<key>UILaunchStoryboardName</key>
|
|
55
|
-
<string>LaunchScreen</string>
|
|
56
|
-
<key>UIRequiredDeviceCapabilities</key>
|
|
57
|
-
<array>
|
|
58
|
-
<string>arm64</string>
|
|
59
|
-
</array>
|
|
60
|
-
<key>UISupportedInterfaceOrientations</key>
|
|
61
|
-
<array>
|
|
62
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
63
|
-
</array>
|
|
64
|
-
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
65
|
-
<array>
|
|
66
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
67
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
68
|
-
<string>UIInterfaceOrientationPortrait</string>
|
|
69
|
-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
70
|
-
</array>
|
|
71
|
-
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
72
|
-
<false/>
|
|
73
|
-
</dict>
|
|
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>CADisableMinimumFrameDurationOnPhone</key>
|
|
6
|
+
<true/>
|
|
7
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
8
|
+
<string>en</string>
|
|
9
|
+
<key>CFBundleDisplayName</key>
|
|
10
|
+
<string>MyApp</string>
|
|
11
|
+
<key>CFBundleExecutable</key>
|
|
12
|
+
<string>$(EXECUTABLE_NAME)</string>
|
|
13
|
+
<key>CFBundleIdentifier</key>
|
|
14
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
15
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
16
|
+
<string>6.0</string>
|
|
17
|
+
<key>CFBundleName</key>
|
|
18
|
+
<string>$(PRODUCT_NAME)</string>
|
|
19
|
+
<key>CFBundlePackageType</key>
|
|
20
|
+
<string>APPL</string>
|
|
21
|
+
<key>CFBundleShortVersionString</key>
|
|
22
|
+
<string>$(MARKETING_VERSION)</string>
|
|
23
|
+
<key>CFBundleSignature</key>
|
|
24
|
+
<string>????</string>
|
|
25
|
+
<key>CFBundleVersion</key>
|
|
26
|
+
<string>$(CURRENT_PROJECT_VERSION)</string>
|
|
27
|
+
<key>LSRequiresIPhoneOS</key>
|
|
28
|
+
<true/>
|
|
29
|
+
<key>NSAppTransportSecurity</key>
|
|
30
|
+
<dict>
|
|
31
|
+
<!-- Do not change NSAllowsArbitraryLoads to true, or you will risk app rejection! -->
|
|
32
|
+
<key>NSAllowsArbitraryLoads</key>
|
|
33
|
+
<false/>
|
|
34
|
+
<key>NSAllowsLocalNetworking</key>
|
|
35
|
+
<true/>
|
|
36
|
+
<key>NSExceptionDomains</key>
|
|
37
|
+
<dict>
|
|
38
|
+
<key>localhost</key>
|
|
39
|
+
<dict>
|
|
40
|
+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
41
|
+
<true/>
|
|
42
|
+
<key>NSIncludesSubdomains</key>
|
|
43
|
+
<true/>
|
|
44
|
+
</dict>
|
|
45
|
+
<key>127.0.0.1</key>
|
|
46
|
+
<dict>
|
|
47
|
+
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
|
48
|
+
<true/>
|
|
49
|
+
</dict>
|
|
50
|
+
</dict>
|
|
51
|
+
</dict>
|
|
52
|
+
<key>NSLocationWhenInUseUsageDescription</key>
|
|
53
|
+
<string></string>
|
|
54
|
+
<key>UILaunchStoryboardName</key>
|
|
55
|
+
<string>LaunchScreen</string>
|
|
56
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
57
|
+
<array>
|
|
58
|
+
<string>arm64</string>
|
|
59
|
+
</array>
|
|
60
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
61
|
+
<array>
|
|
62
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
63
|
+
</array>
|
|
64
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
65
|
+
<array>
|
|
66
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
67
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
68
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
69
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
70
|
+
</array>
|
|
71
|
+
<key>UIViewControllerBasedStatusBarAppearance</key>
|
|
72
|
+
<false/>
|
|
73
|
+
</dict>
|
|
74
74
|
</plist>
|