@flun/node-mobile-app 4.0.6 → 4.0.7

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.
Files changed (49) hide show
  1. package/Android /346/236/204/345/273/272/346/214/207/345/215/227.md" +84 -76
  2. package/CHANGELOG.md +6 -5
  3. package/LICENSE +9 -4
  4. package/README.md +170 -77
  5. package/bin/cli.js +9 -9
  6. package/cli-assets/server.js +7 -4
  7. package/mobileAppConfig.js +32 -32
  8. package/package.json +5 -5
  9. package/scripts/copy-files.js +1 -1
  10. package/src/commands/build.js +9 -4
  11. package/src/commands/clean.js +3 -2
  12. package/src/commands/test.js +13 -9
  13. package/src/config.js +3 -3
  14. package/src/copy.js +41 -36
  15. package/src/fingerprint.js +4 -3
  16. package/src/generate.js +5 -3
  17. package/src/install.js +38 -27
  18. package/src/optimize-node-modules.js +10 -5
  19. package/src/patcher.js +37 -32
  20. package/src/platform-ios.js +6 -6
  21. package/src/utils.js +26 -22
  22. package/template/App.tsx +4 -4
  23. package/template/Gemfile +1 -1
  24. package/template/android/app/build.gradle +1 -1
  25. package/template/android/app/proguard-rules.pro +1 -1
  26. package/template/android/app/src/main/java/com/myapp/MainActivity.kt +1 -1
  27. package/template/android/app/src/main/java/com/myapp/MainApplication.kt +1 -1
  28. package/template/android/app/src/main/res/drawable/rn_edit_text_material.xml +6 -3
  29. package/template/android/app/src/main/res/raw/keep.xml +1 -1
  30. package/template/android/app/src/main/res/values/strings.xml +1 -1
  31. package/template/android/app/src/main/res/values/styles.xml +1 -1
  32. package/template/android/build.gradle +1 -1
  33. package/template/android/gradle.properties +1 -1
  34. package/template/android/gradlew +3 -2
  35. package/template/android/gradlew.bat +3 -2
  36. package/template/android/settings.gradle +1 -1
  37. package/template/app.json +1 -1
  38. package/template/index.js +2 -2
  39. package/template/ios/.xcode.env +1 -1
  40. package/template/ios/MyApp/Images.xcassets/AppIcon.appiconset/Contents.json +1 -1
  41. package/template/ios/MyApp/Images.xcassets/Contents.json +1 -1
  42. package/template/ios/MyApp/Info.plist +1 -1
  43. package/template/ios/MyApp/LaunchScreen.storyboard +30 -12
  44. package/template/ios/MyApp/PrivacyInfo.xcprivacy +1 -1
  45. package/template/ios/MyApp.xcodeproj/project.pbxproj +34 -15
  46. package/template/ios/MyApp.xcodeproj/xcshareddata/xcschemes/MyApp.xcscheme +1 -1
  47. package/template/ios/Podfile +1 -1
  48. package/template/package.json +1 -1
  49. package//350/207/252/345/256/232/344/271/211libnode/346/214/207/345/215/227.md +131 -98
@@ -71,4 +71,4 @@
71
71
  <key>UIViewControllerBasedStatusBarAppearance</key>
72
72
  <false/>
73
73
  </dict>
74
- </plist>
74
+ </plist>
@@ -1,5 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702"
3
+ targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES"
4
+ useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
5
  <device id="retina4_7" orientation="portrait" appearance="light"/>
4
6
  <dependencies>
5
7
  <deployment identifier="iOS"/>
@@ -16,32 +18,48 @@
16
18
  <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
19
  <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
20
  <subviews>
19
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MyApp" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
21
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left"
22
+ horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MyApp"
23
+ textAlignment="center" lineBreakMode="middleTruncation"
24
+ baselineAdjustment="alignBaselines" minimumFontSize="18"
25
+ translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
26
  <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
27
  <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
28
  <nil key="highlightedColor"/>
23
29
  </label>
24
- <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="MN2-I3-ftu">
30
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left"
31
+ horizontalHuggingPriority="251" verticalHuggingPriority="251"
32
+ text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation"
33
+ baselineAdjustment="alignBaselines" minimumFontSize="9"
34
+ translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
35
  <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
36
  <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
37
  <nil key="highlightedColor"/>
28
38
  </label>
29
39
  </subviews>
30
- <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
40
+ <color key="backgroundColor" systemColor="systemBackgroundColor"
41
+ cocoaTouchSystemColor="whiteColor"/>
31
42
  <constraints>
32
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
- <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
- <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
43
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu"
44
+ secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
45
+ <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb"
46
+ secondAttribute="centerX" id="Q3B-4B-g5h"/>
47
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS"
48
+ secondAttribute="centerX" id="akx-eg-2ui"/>
49
+ <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS"
50
+ secondAttribute="leading" id="i1E-0Y-4RG"/>
51
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3"
52
+ secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
53
+ <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS"
54
+ secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
55
  </constraints>
39
56
  <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
57
  </view>
41
58
  </viewController>
42
- <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
59
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder"
60
+ sceneMemberID="firstResponder"/>
43
61
  </objects>
44
62
  <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
63
  </scene>
46
64
  </scenes>
47
- </document>
65
+ </document>
@@ -34,4 +34,4 @@
34
34
  <key>NSPrivacyTracking</key>
35
35
  <false/>
36
36
  </dict>
37
- </plist>
37
+ </plist>
@@ -7,23 +7,42 @@
7
7
  objects = {
8
8
 
9
9
  /* Begin PBXBuildFile section */
10
- 0C80B921A6F3F58F76C31292 /* libPods-MyApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-MyApp.a */; };
11
- 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12
- 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
13
- 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
10
+ 0C80B921A6F3F58F76C31292 /* libPods-MyApp.a in Frameworks */ = {isa = PBXBuildFile;
11
+ fileRef = 5DCACB8F33CDC322A6C60F78 /* libPods-MyApp.a */; };
12
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile;
13
+ fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
14
+ 761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile;
15
+ fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
16
+ 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile;
17
+ fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
14
18
  /* End PBXBuildFile section */
15
19
 
16
20
  /* Begin PBXFileReference section */
17
- 13B07F961A680F5B00A75B9A /* MyApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MyApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
18
- 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = MyApp/Images.xcassets; sourceTree = "<group>"; };
19
- 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = MyApp/Info.plist; sourceTree = "<group>"; };
20
- 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = MyApp/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
21
- 3B4392A12AC88292D35C810B /* Pods-MyApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MyApp.debug.xcconfig"; path = "Target Support Files/Pods-MyApp/Pods-MyApp.debug.xcconfig"; sourceTree = "<group>"; };
22
- 5709B34CF0A7D63546082F79 /* Pods-MyApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MyApp.release.xcconfig"; path = "Target Support Files/Pods-MyApp/Pods-MyApp.release.xcconfig"; sourceTree = "<group>"; };
23
- 5DCACB8F33CDC322A6C60F78 /* libPods-MyApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-MyApp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
24
- 761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = MyApp/AppDelegate.swift; sourceTree = "<group>"; };
25
- 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = MyApp/LaunchScreen.storyboard; sourceTree = "<group>"; };
26
- ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
21
+ 13B07F961A680F5B00A75B9A /* MyApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application;
22
+ includeInIndex = 0; path = MyApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
23
+ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog;
24
+ name = Images.xcassets; path = MyApp/Images.xcassets; sourceTree = "<group>"; };
25
+ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4;
26
+ lastKnownFileType = text.plist.xml; name = Info.plist; path = MyApp/Info.plist; sourceTree = "<group>"; };
27
+ 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4;
28
+ lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = MyApp/PrivacyInfo.xcprivacy;
29
+ sourceTree = "<group>"; };
30
+ 3B4392A12AC88292D35C810B /* Pods-MyApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1;
31
+ lastKnownFileType = text.xcconfig; name = "Pods-MyApp.debug.xcconfig";
32
+ path = "Target Support Files/Pods-MyApp/Pods-MyApp.debug.xcconfig"; sourceTree = "<group>"; };
33
+ 5709B34CF0A7D63546082F79 /* Pods-MyApp.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1;
34
+ lastKnownFileType = text.xcconfig; name = "Pods-MyApp.release.xcconfig";
35
+ path = "Target Support Files/Pods-MyApp/Pods-MyApp.release.xcconfig"; sourceTree = "<group>"; };
36
+ 5DCACB8F33CDC322A6C60F78 /* libPods-MyApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar;
37
+ includeInIndex = 0; path = "libPods-MyApp.a"; sourceTree = BUILT_PRODUCTS_DIR; };
38
+ 761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift;
39
+ name = AppDelegate.swift; path = MyApp/AppDelegate.swift; sourceTree = "<group>"; };
40
+ 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4;
41
+ lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = MyApp/LaunchScreen.storyboard;
42
+ sourceTree = "<group>"; };
43
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference;
44
+ lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework;
45
+ path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
27
46
  /* End PBXFileReference section */
28
47
 
29
48
  /* Begin PBXFrameworksBuildPhase section */
@@ -472,4 +491,4 @@
472
491
  /* End XCConfigurationList section */
473
492
  };
474
493
  rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
475
- }
494
+ }
@@ -85,4 +85,4 @@
85
85
  buildConfiguration = "Release"
86
86
  revealArchiveInOrganizer = "YES">
87
87
  </ArchiveAction>
88
- </Scheme>
88
+ </Scheme>
@@ -31,4 +31,4 @@ target 'MyApp' do
31
31
  # :ccache_enabled => true
32
32
  )
33
33
  end
34
- end
34
+ end
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "type": "module",
6
- "_comment": "dependencies 的版本号由 @flun/node-mobile-app 在 copyTemplate 阶段从主包 package.json 同步;此处 \"*\" 仅为占位,请勿依赖此文件里的值。",
6
+ "_comment": "版本号由 @flun/node-mobile-app 在 copyTemplate 阶段从主包同步;此处 \"*\" 仅为占位;",
7
7
  "dependencies": {
8
8
  "react": "*",
9
9
  "react-native": "*",