nx-react-native-cli 2.6.12 → 2.7.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.
Files changed (99) hide show
  1. package/lib/index.cjs +43 -43
  2. package/package.json +1 -1
  3. package/templates/19.7.0/apps/mobile/.ignorefile +1 -0
  4. package/templates/19.7.0/apps/mobile/android/app/src/main/java/com/appsmobile/MainActivity.kt +5 -1
  5. package/templates/19.7.0/apps/mobile/ios/AppsMobile/AppDelegate.mm +6 -0
  6. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png +0 -0
  7. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png +0 -0
  8. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png +0 -0
  9. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png +0 -0
  10. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29.png +0 -0
  11. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png +0 -0
  12. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png +0 -0
  13. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png +0 -0
  14. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png +0 -0
  15. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png +0 -0
  16. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png +0 -0
  17. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png +0 -0
  18. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png +0 -0
  19. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png +0 -0
  20. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png +0 -0
  21. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png +0 -0
  22. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x.png +0 -0
  23. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png +0 -0
  24. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon@3x.png +0 -0
  25. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png +0 -0
  26. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png +0 -0
  27. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/AppIcon.appiconset/Contents.json +134 -0
  28. package/templates/19.7.0/apps/mobile/ios/AppsMobile/Images.xcassets/Contents.json +6 -0
  29. package/templates/19.7.0/apps/mobile/project.json +17 -19
  30. package/templates/21.2.2/apps/mobile/.ignorefile +1 -0
  31. package/templates/21.2.2/apps/mobile/android/app/src/main/java/com/mobile/MainActivity.kt +5 -1
  32. package/templates/21.2.2/apps/mobile/ios/Mobile/AppDelegate.mm +6 -0
  33. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png +0 -0
  34. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x~ipad.png +0 -0
  35. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png +0 -0
  36. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-20~ipad.png +0 -0
  37. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29.png +0 -0
  38. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png +0 -0
  39. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x~ipad.png +0 -0
  40. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png +0 -0
  41. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-29~ipad.png +0 -0
  42. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png +0 -0
  43. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x~ipad.png +0 -0
  44. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png +0 -0
  45. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-40~ipad.png +0 -0
  46. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png +0 -0
  47. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png +0 -0
  48. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png +0 -0
  49. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x.png +0 -0
  50. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png +0 -0
  51. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon@3x.png +0 -0
  52. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png +0 -0
  53. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png +0 -0
  54. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/AppIcon.appiconset/Contents.json +134 -0
  55. package/templates/21.2.2/apps/mobile/ios/Mobile/Images.xcassets/Contents.json +6 -0
  56. package/templates/21.2.2/apps/mobile/project.json +17 -19
  57. package/templates/shared/.ignorefile +1 -0
  58. package/templates/shared/apps/mobile/android/app/src/main/AndroidManifest.xml +28 -0
  59. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +6 -0
  60. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  61. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png +0 -0
  62. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
  63. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png +0 -0
  64. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  65. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png +0 -0
  66. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
  67. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png +0 -0
  68. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  69. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png +0 -0
  70. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
  71. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png +0 -0
  72. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  73. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png +0 -0
  74. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
  75. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png +0 -0
  76. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  77. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png +0 -0
  78. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
  79. package/templates/shared/apps/mobile/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png +0 -0
  80. package/templates/shared/apps/mobile/android/app/src/main/res/styles.xml +14 -0
  81. package/templates/shared/apps/mobile/deploy.sh +107 -0
  82. package/templates/shared/apps/mobile/package.json +1 -78
  83. package/templates/shared/apps/mobile/picker.sh +151 -0
  84. package/templates/shared/apps/mobile/pod-install.sh +40 -0
  85. package/templates/shared/apps/mobile/react-native.config.js +15 -0
  86. package/templates/shared/apps/mobile/run-android.sh +131 -0
  87. package/templates/shared/apps/mobile/run-ios.sh +89 -0
  88. package/templates/shared/apps/mobile/scripts/setup-ios-dev-scheme.rb +101 -1
  89. package/templates/shared/apps/mobile/src/app/index.tsx +3 -39
  90. package/templates/shared/apps/mobile/src/app/query-client.ts +40 -0
  91. package/templates/shared/apps/mobile/src/assets/images/logo.png +0 -0
  92. package/templates/shared/apps/mobile/src/components/atoms/KeyboardAwareScrollView/keyboard-aware-scroll-view.component.tsx +1 -0
  93. package/templates/shared/apps/mobile/src/components/atoms/Modal/modal.component.tsx +19 -6
  94. package/templates/shared/apps/mobile/src/components/atoms/Typography/typography.component.tsx +1 -1
  95. package/templates/shared/apps/mobile/src/components/molecules/ScreenContainer/screen-container.component.tsx +2 -2
  96. package/templates/shared/apps/mobile/src/components/molecules/ScreenHeader/screen-header.component.tsx +1 -1
  97. package/templates/shared/apps/mobile/src/routes/index.tsx +7 -1
  98. package/templates/shared/clean-generated-outputs.sh +4 -0
  99. package/templates/shared/apps/mobile/src/assets/images/.gitkeep +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nx-react-native-cli",
3
- "version": "2.6.12",
3
+ "version": "2.7.1",
4
4
  "description": "A react native starter (with NX) cli script",
5
5
  "type": "module",
6
6
  "files": [
@@ -116,6 +116,7 @@ buck-out/
116
116
 
117
117
  # Ruby / CocoaPods
118
118
  **/ios/Pods/
119
+ **/ios/.pods-checksum
119
120
  **/vendor/bundle/
120
121
 
121
122
  # iOS build logs
@@ -5,6 +5,8 @@ import com.facebook.react.ReactActivityDelegate
5
5
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6
6
  import com.facebook.react.defaults.DefaultReactActivityDelegate
7
7
  import android.os.Bundle
8
+ import com.swmansion.rnscreens.fragment.restoration.RNScreensFragmentFactory
9
+ import com.zoontek.rnbootsplash.RNBootSplash
8
10
  import android.graphics.Color
9
11
  import androidx.core.view.WindowCompat
10
12
  import androidx.core.view.WindowInsetsControllerCompat
@@ -19,7 +21,9 @@ class MainActivity : ReactActivity() {
19
21
 
20
22
  //react-native-screens override
21
23
  override fun onCreate(savedInstanceState: Bundle?) {
22
- super.onCreate(null);
24
+ supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
25
+ RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
26
+ super.onCreate(savedInstanceState)
23
27
 
24
28
  // 1) Let your content draw behind system bars (status + nav)
25
29
  WindowCompat.setDecorFitsSystemWindows(window, false)
@@ -1,4 +1,5 @@
1
1
  #import "AppDelegate.h"
2
+ #import "RNBootSplash.h"
2
3
 
3
4
  #import <React/RCTBundleURLProvider.h>
4
5
  #import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
@@ -50,4 +51,9 @@
50
51
  return YES;
51
52
  }
52
53
 
54
+ - (void)customizeRootView:(RCTRootView *)rootView {
55
+ [super customizeRootView:rootView];
56
+ [RNBootSplash initWithStoryboard:@"BootSplash" rootView:rootView]; // ⬅️ initialize the splash screen
57
+ }
58
+
53
59
  @end
@@ -0,0 +1,134 @@
1
+ {
2
+ "images": [
3
+ {
4
+ "filename": "AppIcon@2x.png",
5
+ "idiom": "iphone",
6
+ "scale": "2x",
7
+ "size": "60x60"
8
+ },
9
+ {
10
+ "filename": "AppIcon@3x.png",
11
+ "idiom": "iphone",
12
+ "scale": "3x",
13
+ "size": "60x60"
14
+ },
15
+ {
16
+ "filename": "AppIcon~ipad.png",
17
+ "idiom": "ipad",
18
+ "scale": "1x",
19
+ "size": "76x76"
20
+ },
21
+ {
22
+ "filename": "AppIcon@2x~ipad.png",
23
+ "idiom": "ipad",
24
+ "scale": "2x",
25
+ "size": "76x76"
26
+ },
27
+ {
28
+ "filename": "AppIcon-83.5@2x~ipad.png",
29
+ "idiom": "ipad",
30
+ "scale": "2x",
31
+ "size": "83.5x83.5"
32
+ },
33
+ {
34
+ "filename": "AppIcon-40@2x.png",
35
+ "idiom": "iphone",
36
+ "scale": "2x",
37
+ "size": "40x40"
38
+ },
39
+ {
40
+ "filename": "AppIcon-40@3x.png",
41
+ "idiom": "iphone",
42
+ "scale": "3x",
43
+ "size": "40x40"
44
+ },
45
+ {
46
+ "filename": "AppIcon-40~ipad.png",
47
+ "idiom": "ipad",
48
+ "scale": "1x",
49
+ "size": "40x40"
50
+ },
51
+ {
52
+ "filename": "AppIcon-40@2x~ipad.png",
53
+ "idiom": "ipad",
54
+ "scale": "2x",
55
+ "size": "40x40"
56
+ },
57
+ {
58
+ "filename": "AppIcon-20@2x.png",
59
+ "idiom": "iphone",
60
+ "scale": "2x",
61
+ "size": "20x20"
62
+ },
63
+ {
64
+ "filename": "AppIcon-20@3x.png",
65
+ "idiom": "iphone",
66
+ "scale": "3x",
67
+ "size": "20x20"
68
+ },
69
+ {
70
+ "filename": "AppIcon-20~ipad.png",
71
+ "idiom": "ipad",
72
+ "scale": "1x",
73
+ "size": "20x20"
74
+ },
75
+ {
76
+ "filename": "AppIcon-20@2x~ipad.png",
77
+ "idiom": "ipad",
78
+ "scale": "2x",
79
+ "size": "20x20"
80
+ },
81
+ {
82
+ "filename": "AppIcon-29.png",
83
+ "idiom": "iphone",
84
+ "scale": "1x",
85
+ "size": "29x29"
86
+ },
87
+ {
88
+ "filename": "AppIcon-29@2x.png",
89
+ "idiom": "iphone",
90
+ "scale": "2x",
91
+ "size": "29x29"
92
+ },
93
+ {
94
+ "filename": "AppIcon-29@3x.png",
95
+ "idiom": "iphone",
96
+ "scale": "3x",
97
+ "size": "29x29"
98
+ },
99
+ {
100
+ "filename": "AppIcon-29~ipad.png",
101
+ "idiom": "ipad",
102
+ "scale": "1x",
103
+ "size": "29x29"
104
+ },
105
+ {
106
+ "filename": "AppIcon-29@2x~ipad.png",
107
+ "idiom": "ipad",
108
+ "scale": "2x",
109
+ "size": "29x29"
110
+ },
111
+ {
112
+ "filename": "AppIcon-60@2x~car.png",
113
+ "idiom": "car",
114
+ "scale": "2x",
115
+ "size": "60x60"
116
+ },
117
+ {
118
+ "filename": "AppIcon-60@3x~car.png",
119
+ "idiom": "car",
120
+ "scale": "3x",
121
+ "size": "60x60"
122
+ },
123
+ {
124
+ "filename": "AppIcon~ios-marketing.png",
125
+ "idiom": "ios-marketing",
126
+ "scale": "1x",
127
+ "size": "1024x1024"
128
+ }
129
+ ],
130
+ "info": {
131
+ "author": "iconkitchen",
132
+ "version": 1
133
+ }
134
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info": {
3
+ "version": 1,
4
+ "author": "xcode"
5
+ }
6
+ }
@@ -7,14 +7,14 @@
7
7
  "// targets": "to see all targets run: nx show project mobile --web",
8
8
  "targets": {
9
9
  "check-env": {
10
- "executor": "nx:run-script",
10
+ "executor": "nx:run-commands",
11
11
  "options": {
12
- "script": "check-env:mobile"
12
+ "command": "./check-env.sh apps/mobile/.env apps/mobile/.env.template"
13
13
  }
14
14
  },
15
15
  "start": {
16
16
  "executor": "@nx/react-native:start",
17
- "dependsOn": ["check-env", "sync-deps", "pod-install"],
17
+ "dependsOn": ["check-env", "pod-install"],
18
18
  "options": {
19
19
  "port": 8081,
20
20
  "resetCache": true,
@@ -28,9 +28,11 @@
28
28
  }
29
29
  },
30
30
  "run-ios": {
31
- "executor": "@nx/react-native:run-ios",
31
+ "executor": "nx:run-commands",
32
32
  "dependsOn": ["pod-install"],
33
- "options": {}
33
+ "options": {
34
+ "command": "cd apps/mobile && ./run-ios.sh"
35
+ }
34
36
  },
35
37
  "bundle-ios": {
36
38
  "executor": "@nx/react-native:bundle",
@@ -43,12 +45,10 @@
43
45
  }
44
46
  },
45
47
  "run-android": {
46
- "executor": "@nx/react-native:run-android",
48
+ "executor": "nx:run-commands",
47
49
  "dependsOn": [],
48
50
  "options": {
49
- "appIdSuffix": "dev",
50
- "mode": "debug",
51
- "tasks": "installDevDebug"
51
+ "command": "cd apps/mobile && ./run-android.sh"
52
52
  }
53
53
  },
54
54
  "build-android": {
@@ -67,9 +67,15 @@
67
67
  "options": {}
68
68
  },
69
69
  "pod-install": {
70
- "executor": "nx:run-script",
70
+ "executor": "nx:run-commands",
71
71
  "options": {
72
- "script": "bundle:pod-install"
72
+ "command": "cd apps/mobile && ./pod-install.sh"
73
+ }
74
+ },
75
+ "pod-install:force": {
76
+ "executor": "nx:run-commands",
77
+ "options": {
78
+ "command": "cd apps/mobile && ./ios-only.sh 'cd ios && bundle install && bundle exec pod install --repo-update && cd .. && ./export-node-binary.sh'"
73
79
  }
74
80
  },
75
81
  "bundle-android": {
@@ -82,14 +88,6 @@
82
88
  "bundleOutput": "dist/apps/mobile/android/main.jsbundle"
83
89
  }
84
90
  },
85
- "sync-deps": {
86
- "executor": "@nx/react-native:sync-deps",
87
- "options": {}
88
- },
89
- "ensure-symlink": {
90
- "executor": "@nx/react-native:ensure-symlink",
91
- "options": {}
92
- },
93
91
  "lint": {
94
92
  "executor": "@nx/eslint:lint",
95
93
  "outputs": ["{options.outputFile}"],
@@ -116,6 +116,7 @@ buck-out/
116
116
 
117
117
  # Ruby / CocoaPods
118
118
  **/ios/Pods/
119
+ **/ios/.pods-checksum
119
120
  **/vendor/bundle/
120
121
 
121
122
  # iOS build logs
@@ -5,6 +5,8 @@ import com.facebook.react.ReactActivityDelegate
5
5
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
6
6
  import com.facebook.react.defaults.DefaultReactActivityDelegate
7
7
  import android.os.Bundle
8
+ import com.swmansion.rnscreens.fragment.restoration.RNScreensFragmentFactory
9
+ import com.zoontek.rnbootsplash.RNBootSplash
8
10
  import android.graphics.Color
9
11
  import androidx.core.view.WindowCompat
10
12
  import androidx.core.view.WindowInsetsControllerCompat
@@ -19,7 +21,9 @@ class MainActivity : ReactActivity() {
19
21
 
20
22
  //react-native-screens override
21
23
  override fun onCreate(savedInstanceState: Bundle?) {
22
- super.onCreate(null);
24
+ supportFragmentManager.fragmentFactory = RNScreensFragmentFactory()
25
+ RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen
26
+ super.onCreate(savedInstanceState)
23
27
 
24
28
  // 1) Let your content draw behind system bars (status + nav)
25
29
  WindowCompat.setDecorFitsSystemWindows(window, false)
@@ -1,4 +1,5 @@
1
1
  #import "AppDelegate.h"
2
+ #import "RNBootSplash.h"
2
3
 
3
4
  #import <React/RCTBundleURLProvider.h>
4
5
  #import <ReactAppDependencyProvider/RCTAppDependencyProvider.h>
@@ -50,4 +51,9 @@
50
51
  return YES;
51
52
  }
52
53
 
54
+ - (void)customizeRootView:(RCTRootView *)rootView {
55
+ [super customizeRootView:rootView];
56
+ [RNBootSplash initWithStoryboard:@"BootSplash" rootView:rootView]; // ⬅️ initialize the splash screen
57
+ }
58
+
53
59
  @end
@@ -0,0 +1,134 @@
1
+ {
2
+ "images": [
3
+ {
4
+ "filename": "AppIcon@2x.png",
5
+ "idiom": "iphone",
6
+ "scale": "2x",
7
+ "size": "60x60"
8
+ },
9
+ {
10
+ "filename": "AppIcon@3x.png",
11
+ "idiom": "iphone",
12
+ "scale": "3x",
13
+ "size": "60x60"
14
+ },
15
+ {
16
+ "filename": "AppIcon~ipad.png",
17
+ "idiom": "ipad",
18
+ "scale": "1x",
19
+ "size": "76x76"
20
+ },
21
+ {
22
+ "filename": "AppIcon@2x~ipad.png",
23
+ "idiom": "ipad",
24
+ "scale": "2x",
25
+ "size": "76x76"
26
+ },
27
+ {
28
+ "filename": "AppIcon-83.5@2x~ipad.png",
29
+ "idiom": "ipad",
30
+ "scale": "2x",
31
+ "size": "83.5x83.5"
32
+ },
33
+ {
34
+ "filename": "AppIcon-40@2x.png",
35
+ "idiom": "iphone",
36
+ "scale": "2x",
37
+ "size": "40x40"
38
+ },
39
+ {
40
+ "filename": "AppIcon-40@3x.png",
41
+ "idiom": "iphone",
42
+ "scale": "3x",
43
+ "size": "40x40"
44
+ },
45
+ {
46
+ "filename": "AppIcon-40~ipad.png",
47
+ "idiom": "ipad",
48
+ "scale": "1x",
49
+ "size": "40x40"
50
+ },
51
+ {
52
+ "filename": "AppIcon-40@2x~ipad.png",
53
+ "idiom": "ipad",
54
+ "scale": "2x",
55
+ "size": "40x40"
56
+ },
57
+ {
58
+ "filename": "AppIcon-20@2x.png",
59
+ "idiom": "iphone",
60
+ "scale": "2x",
61
+ "size": "20x20"
62
+ },
63
+ {
64
+ "filename": "AppIcon-20@3x.png",
65
+ "idiom": "iphone",
66
+ "scale": "3x",
67
+ "size": "20x20"
68
+ },
69
+ {
70
+ "filename": "AppIcon-20~ipad.png",
71
+ "idiom": "ipad",
72
+ "scale": "1x",
73
+ "size": "20x20"
74
+ },
75
+ {
76
+ "filename": "AppIcon-20@2x~ipad.png",
77
+ "idiom": "ipad",
78
+ "scale": "2x",
79
+ "size": "20x20"
80
+ },
81
+ {
82
+ "filename": "AppIcon-29.png",
83
+ "idiom": "iphone",
84
+ "scale": "1x",
85
+ "size": "29x29"
86
+ },
87
+ {
88
+ "filename": "AppIcon-29@2x.png",
89
+ "idiom": "iphone",
90
+ "scale": "2x",
91
+ "size": "29x29"
92
+ },
93
+ {
94
+ "filename": "AppIcon-29@3x.png",
95
+ "idiom": "iphone",
96
+ "scale": "3x",
97
+ "size": "29x29"
98
+ },
99
+ {
100
+ "filename": "AppIcon-29~ipad.png",
101
+ "idiom": "ipad",
102
+ "scale": "1x",
103
+ "size": "29x29"
104
+ },
105
+ {
106
+ "filename": "AppIcon-29@2x~ipad.png",
107
+ "idiom": "ipad",
108
+ "scale": "2x",
109
+ "size": "29x29"
110
+ },
111
+ {
112
+ "filename": "AppIcon-60@2x~car.png",
113
+ "idiom": "car",
114
+ "scale": "2x",
115
+ "size": "60x60"
116
+ },
117
+ {
118
+ "filename": "AppIcon-60@3x~car.png",
119
+ "idiom": "car",
120
+ "scale": "3x",
121
+ "size": "60x60"
122
+ },
123
+ {
124
+ "filename": "AppIcon~ios-marketing.png",
125
+ "idiom": "ios-marketing",
126
+ "scale": "1x",
127
+ "size": "1024x1024"
128
+ }
129
+ ],
130
+ "info": {
131
+ "author": "iconkitchen",
132
+ "version": 1
133
+ }
134
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "info": {
3
+ "version": 1,
4
+ "author": "xcode"
5
+ }
6
+ }
@@ -7,14 +7,14 @@
7
7
  "// targets": "to see all targets run: nx show project mobile --web",
8
8
  "targets": {
9
9
  "check-env": {
10
- "executor": "nx:run-script",
10
+ "executor": "nx:run-commands",
11
11
  "options": {
12
- "script": "check-env:mobile"
12
+ "command": "./check-env.sh apps/mobile/.env apps/mobile/.env.template"
13
13
  }
14
14
  },
15
15
  "start": {
16
16
  "executor": "@nx/react-native:start",
17
- "dependsOn": ["check-env", "sync-deps", "pod-install"],
17
+ "dependsOn": ["check-env", "pod-install"],
18
18
  "options": {
19
19
  "port": 8081,
20
20
  "resetCache": true,
@@ -28,9 +28,11 @@
28
28
  }
29
29
  },
30
30
  "run-ios": {
31
- "executor": "@nx/react-native:run-ios",
31
+ "executor": "nx:run-commands",
32
32
  "dependsOn": ["pod-install"],
33
- "options": {}
33
+ "options": {
34
+ "command": "cd apps/mobile && ./run-ios.sh"
35
+ }
34
36
  },
35
37
  "bundle-ios": {
36
38
  "executor": "@nx/react-native:bundle",
@@ -43,12 +45,10 @@
43
45
  }
44
46
  },
45
47
  "run-android": {
46
- "executor": "@nx/react-native:run-android",
48
+ "executor": "nx:run-commands",
47
49
  "dependsOn": [],
48
50
  "options": {
49
- "appIdSuffix": "dev",
50
- "mode": "debug",
51
- "tasks": "installDevDebug"
51
+ "command": "cd apps/mobile && ./run-android.sh"
52
52
  }
53
53
  },
54
54
  "build-android": {
@@ -67,9 +67,15 @@
67
67
  "options": {}
68
68
  },
69
69
  "pod-install": {
70
- "executor": "nx:run-script",
70
+ "executor": "nx:run-commands",
71
71
  "options": {
72
- "script": "bundle:pod-install"
72
+ "command": "cd apps/mobile && ./pod-install.sh"
73
+ }
74
+ },
75
+ "pod-install:force": {
76
+ "executor": "nx:run-commands",
77
+ "options": {
78
+ "command": "cd apps/mobile && ./ios-only.sh 'cd ios && bundle install && bundle exec pod install --repo-update && cd .. && ./export-node-binary.sh'"
73
79
  }
74
80
  },
75
81
  "bundle-android": {
@@ -82,14 +88,6 @@
82
88
  "bundleOutput": "dist/apps/mobile/android/main.jsbundle"
83
89
  }
84
90
  },
85
- "sync-deps": {
86
- "executor": "@nx/react-native:sync-deps",
87
- "options": {}
88
- },
89
- "ensure-symlink": {
90
- "executor": "@nx/react-native:ensure-symlink",
91
- "options": {}
92
- },
93
91
  "lint": {
94
92
  "executor": "@nx/eslint:lint",
95
93
  "outputs": ["{options.outputFile}"],
@@ -74,6 +74,7 @@ DerivedData
74
74
  # Android/IntelliJ
75
75
  #
76
76
  build/
77
+ .kotlin
77
78
  .idea
78
79
  .gradle
79
80
  local.properties