@computools/react-native-template-controller 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +11 -5
  2. package/package.json +1 -1
  3. package/template/android/app/build.gradle +3 -7
  4. package/template/android/app/src/debug/AndroidManifest.xml +1 -5
  5. package/template/android/app/src/main/java/com/reactnativetemplate/MainActivity.kt +32 -0
  6. package/template/android/app/src/main/java/com/reactnativetemplate/MainApplication.kt +45 -0
  7. package/template/android/build.gradle +8 -8
  8. package/template/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  9. package/template/android/gradle/wrapper/gradle-wrapper.properties +2 -1
  10. package/template/android/gradle.properties +0 -3
  11. package/template/android/gradlew +11 -6
  12. package/template/babel.config.js +1 -1
  13. package/template/ios/Podfile +0 -7
  14. package/template/ios/ReactNativeTemplate/AppDelegate.mm +5 -0
  15. package/template/ios/ReactNativeTemplate/Info.plist +4 -8
  16. package/template/ios/ReactNativeTemplate.xcodeproj/project.pbxproj +28 -78
  17. package/template/ios/ReactNativeTemplate.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  18. package/template/ios/{ReactNativeTemplate dev-Info.plist → ReactNativeTemplate_dev-Info.plist} +4 -8
  19. package/template/ios/{ReactNativeTemplate stg-Info.plist → ReactNativeTemplate_stg-Info.plist} +4 -8
  20. package/template/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec-generated.mm +0 -16
  21. package/template/ios/build/generated/ios/FBReactNativeSpec/FBReactNativeSpec.h +8 -25
  22. package/template/ios/build/generated/ios/FBReactNativeSpecJSI-generated.cpp +1223 -276
  23. package/template/ios/build/generated/ios/FBReactNativeSpecJSI.h +1427 -424
  24. package/template/ios/build/generated/ios/React-Codegen.podspec.json +1 -1
  25. package/template/package.json +14 -14
  26. package/template/tsconfig.json +1 -1
  27. package/template/android/app/src/debug/java/com/reactnativetemplate/ReactNativeFlipper.java +0 -75
  28. package/template/android/app/src/main/java/com/reactnativetemplate/MainActivity.java +0 -40
  29. package/template/android/app/src/main/java/com/reactnativetemplate/MainApplication.java +0 -62
  30. package/template/android/app/src/release/java/com/reactnativetemplate/ReactNativeFlipper.java +0 -20
@@ -1 +1 @@
1
- {"name":"React-Codegen","version":"0.72.6","summary":"Temp pod for generated files for React Native","homepage":"https://facebook.com/","license":"Unlicense","authors":"Facebook","compiler_flags":"-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation -Wno-nullability-completeness -std=c++17","source":{"git":""},"header_mappings_dir":"./","platforms":{"ios":"12.4"},"source_files":"**/*.{h,mm,cpp}","pod_target_xcconfig":{"HEADER_SEARCH_PATHS":"\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"$(PODS_ROOT)/Headers/Private/React-Fabric\" \"$(PODS_ROOT)/Headers/Private/React-RCTFabric\"","FRAMEWORK_SEARCH_PATHS":[]},"dependencies":{"React-jsiexecutor":[],"RCT-Folly":[],"RCTRequired":[],"RCTTypeSafety":[],"React-Core":[],"React-jsi":[],"ReactCommon/turbomodule/bridging":[],"ReactCommon/turbomodule/core":[],"React-NativeModulesApple":[],"glog":[],"DoubleConversion":[],"hermes-engine":[],"React-rncore":[],"FBReactNativeSpec":[]}}
1
+ {"name":"React-Codegen","version":"0.73.0","summary":"Temp pod for generated files for React Native","homepage":"https://facebook.com/","license":"Unlicense","authors":"Facebook","compiler_flags":"-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation -Wno-nullability-completeness -std=c++20","source":{"git":""},"header_mappings_dir":"./","platforms":{"ios":"13.4"},"source_files":"**/*.{h,mm,cpp}","pod_target_xcconfig":{"HEADER_SEARCH_PATHS":"\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/RCT-Folly\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"${PODS_ROOT}/Headers/Public/React-Codegen/react/renderer/components\" \"$(PODS_ROOT)/Headers/Private/React-Fabric\" \"$(PODS_ROOT)/Headers/Private/React-RCTFabric\" \"$(PODS_ROOT)/Headers/Private/Yoga\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\" \"$(PODS_TARGET_SRCROOT)\"","FRAMEWORK_SEARCH_PATHS":[]},"dependencies":{"React-jsiexecutor":[],"RCT-Folly":[],"RCTRequired":[],"RCTTypeSafety":[],"React-Core":[],"React-jsi":[],"ReactCommon/turbomodule/bridging":[],"ReactCommon/turbomodule/core":[],"React-NativeModulesApple":[],"glog":[],"DoubleConversion":[],"hermes-engine":[],"React-rncore":[],"FBReactNativeSpec":[]}}
@@ -36,12 +36,12 @@
36
36
  "react": "18.2.0",
37
37
  "react-hook-form": "7.43.5",
38
38
  "react-i18next": "13.0.1",
39
- "react-native": "0.72.7",
39
+ "react-native": "0.73.1",
40
40
  "react-native-bootsplash": "4.5.3",
41
41
  "react-native-config": "1.5.1",
42
- "react-native-mmkv": "2.6.3",
42
+ "react-native-mmkv": "2.11.0",
43
43
  "react-native-safe-area-context": "4.5.0",
44
- "react-native-screens": "3.20.0",
44
+ "react-native-screens": "3.29.0",
45
45
  "react-native-svg": "13.8.0",
46
46
  "yup": "1.0.2"
47
47
  },
@@ -50,25 +50,25 @@
50
50
  "@babel/preset-env": "^7.20.0",
51
51
  "@babel/runtime": "^7.20.0",
52
52
  "@computools/eslint-config-react-native": "1.1.1",
53
- "@react-native/eslint-config": "0.72.2",
54
- "@react-native/metro-config": "0.72.11",
55
- "@tsconfig/react-native": "^3.0.0",
53
+ "@react-native/babel-preset": "0.73.18",
54
+ "@react-native/eslint-config": "0.73.1",
55
+ "@react-native/metro-config": "0.73.2",
56
+ "@react-native/typescript-config": "0.73.1",
56
57
  "@types/jest": "^29.2.1",
57
58
  "@types/metro-config": "^0.76.3",
58
- "@types/react": "^18.0.24",
59
+ "@types/react": "18.2.6",
59
60
  "@types/react-test-renderer": "^18.0.0",
60
61
  "@typescript-eslint/parser": "5.53.0",
61
- "babel-jest": "^29.2.1",
62
+ "babel-jest": "29.6.3",
62
63
  "babel-plugin-module-resolver": "5.0.0",
63
64
  "eslint": "^8.19.0",
64
65
  "eslint-import-resolver-babel-module": "5.3.2",
65
- "jest": "^29.2.1",
66
- "metro-react-native-babel-preset": "0.76.8",
67
- "prettier": "^2.4.1",
66
+ "jest": "29.6.3",
67
+ "prettier": "2.8.8",
68
68
  "react-test-renderer": "18.2.0",
69
- "typescript": "4.8.4"
69
+ "typescript": "5.0.4"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16"
72
+ "node": ">=18"
73
73
  }
74
- }
74
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "@tsconfig/react-native/tsconfig.json",
2
+ "extends": "@react-native/typescript-config/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "useDefineForClassFields": true,
5
5
  "resolveJsonModule": true,
@@ -1,75 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
- * directory of this source tree.
6
- */
7
- package com.reactnativetemplate;
8
-
9
- import android.content.Context;
10
- import com.facebook.flipper.android.AndroidFlipperClient;
11
- import com.facebook.flipper.android.utils.FlipperUtils;
12
- import com.facebook.flipper.core.FlipperClient;
13
- import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14
- import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15
- import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16
- import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17
- import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18
- import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19
- import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20
- import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
21
- import com.facebook.react.ReactInstanceEventListener;
22
- import com.facebook.react.ReactInstanceManager;
23
- import com.facebook.react.bridge.ReactContext;
24
- import com.facebook.react.modules.network.NetworkingModule;
25
- import okhttp3.OkHttpClient;
26
-
27
- /**
28
- * Class responsible of loading Flipper inside your React Native application. This is the debug
29
- * flavor of it. Here you can add your own plugins and customize the Flipper setup.
30
- */
31
- public class ReactNativeFlipper {
32
- public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
33
- if (FlipperUtils.shouldEnableFlipper(context)) {
34
- final FlipperClient client = AndroidFlipperClient.getInstance(context);
35
-
36
- client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
37
- client.addPlugin(new DatabasesFlipperPlugin(context));
38
- client.addPlugin(new SharedPreferencesFlipperPlugin(context));
39
- client.addPlugin(CrashReporterPlugin.getInstance());
40
-
41
- NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
42
- NetworkingModule.setCustomClientBuilder(
43
- new NetworkingModule.CustomClientBuilder() {
44
- @Override
45
- public void apply(OkHttpClient.Builder builder) {
46
- builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
47
- }
48
- });
49
- client.addPlugin(networkFlipperPlugin);
50
- client.start();
51
-
52
- // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
53
- // Hence we run if after all native modules have been initialized
54
- ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
55
- if (reactContext == null) {
56
- reactInstanceManager.addReactInstanceEventListener(
57
- new ReactInstanceEventListener() {
58
- @Override
59
- public void onReactContextInitialized(ReactContext reactContext) {
60
- reactInstanceManager.removeReactInstanceEventListener(this);
61
- reactContext.runOnNativeModulesQueueThread(
62
- new Runnable() {
63
- @Override
64
- public void run() {
65
- client.addPlugin(new FrescoFlipperPlugin());
66
- }
67
- });
68
- }
69
- });
70
- } else {
71
- client.addPlugin(new FrescoFlipperPlugin());
72
- }
73
- }
74
- }
75
- }
@@ -1,40 +0,0 @@
1
- package com.reactnativetemplate;
2
-
3
- import android.os.Bundle;
4
- import com.facebook.react.ReactActivity;
5
- import com.zoontek.rnbootsplash.RNBootSplash;
6
- import com.facebook.react.ReactActivityDelegate;
7
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
8
- import com.facebook.react.defaults.DefaultReactActivityDelegate;
9
-
10
- public class MainActivity extends ReactActivity {
11
-
12
- /**
13
- * Returns the name of the main component registered from JavaScript. This is used to schedule
14
- * rendering of the component.
15
- */
16
- @Override
17
- protected String getMainComponentName() {
18
- return "ReactNativeTemplate";
19
- }
20
-
21
- @Override
22
- protected void onCreate(Bundle savedInstanceState) {
23
- RNBootSplash.init(this);
24
- super.onCreate(savedInstanceState);
25
- }
26
-
27
- /**
28
- * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
29
- * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
30
- * (aka React 18) with two boolean flags.
31
- */
32
- @Override
33
- protected ReactActivityDelegate createReactActivityDelegate() {
34
- return new DefaultReactActivityDelegate(
35
- this,
36
- getMainComponentName(),
37
- // If you opted-in for the New Architecture, we enable the Fabric Renderer.
38
- DefaultNewArchitectureEntryPoint.getFabricEnabled());
39
- }
40
- }
@@ -1,62 +0,0 @@
1
- package com.reactnativetemplate;
2
-
3
- import android.app.Application;
4
- import com.facebook.react.PackageList;
5
- import com.facebook.react.ReactApplication;
6
- import com.facebook.react.ReactNativeHost;
7
- import com.facebook.react.ReactPackage;
8
- import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
9
- import com.facebook.react.defaults.DefaultReactNativeHost;
10
- import com.facebook.soloader.SoLoader;
11
- import java.util.List;
12
-
13
- public class MainApplication extends Application implements ReactApplication {
14
-
15
- private final ReactNativeHost mReactNativeHost =
16
- new DefaultReactNativeHost(this) {
17
- @Override
18
- public boolean getUseDeveloperSupport() {
19
- return BuildConfig.DEBUG;
20
- }
21
-
22
- @Override
23
- protected List<ReactPackage> getPackages() {
24
- @SuppressWarnings("UnnecessaryLocalVariable")
25
- List<ReactPackage> packages = new PackageList(this).getPackages();
26
- // Packages that cannot be autolinked yet can be added manually here, for example:
27
- // packages.add(new MyReactNativePackage());
28
- return packages;
29
- }
30
-
31
- @Override
32
- protected String getJSMainModuleName() {
33
- return "index";
34
- }
35
-
36
- @Override
37
- protected boolean isNewArchEnabled() {
38
- return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
39
- }
40
-
41
- @Override
42
- protected Boolean isHermesEnabled() {
43
- return BuildConfig.IS_HERMES_ENABLED;
44
- }
45
- };
46
-
47
- @Override
48
- public ReactNativeHost getReactNativeHost() {
49
- return mReactNativeHost;
50
- }
51
-
52
- @Override
53
- public void onCreate() {
54
- super.onCreate();
55
- SoLoader.init(this, /* native exopackage */ false);
56
- if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
57
- // If you opted-in for the New Architecture, we load the native entry point for this app.
58
- DefaultNewArchitectureEntryPoint.load();
59
- }
60
- ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
61
- }
62
- }
@@ -1,20 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * <p>This source code is licensed under the MIT license found in the LICENSE file in the root
5
- * directory of this source tree.
6
- */
7
- package com.reactnativetemplate;
8
-
9
- import android.content.Context;
10
- import com.facebook.react.ReactInstanceManager;
11
-
12
- /**
13
- * Class responsible of loading Flipper inside your React Native application. This is the release
14
- * flavor of it so it's empty as we don't want to load Flipper.
15
- */
16
- public class ReactNativeFlipper {
17
- public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
18
- // Do nothing as we don't want to initialize Flipper on Release.
19
- }
20
- }