jcore-react-native 2.0.2 → 2.0.3

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 (82) hide show
  1. package/android/libs/arm64-v8a/{libjcore322.so → libjcore330.so} +0 -0
  2. package/android/libs/armeabi/{libjcore322.so → libjcore330.so} +0 -0
  3. package/android/libs/armeabi-v7a/{libjcore322.so → libjcore330.so} +0 -0
  4. package/android/libs/{jcore-android-3.2.2.jar → jcore-android-3.3.0.jar} +0 -0
  5. package/android/libs/mips/{libjcore322.so → libjcore330.so} +0 -0
  6. package/android/libs/mips64/{libjcore322.so → libjcore330.so} +0 -0
  7. package/android/libs/x86/{libjcore322.so → libjcore330.so} +0 -0
  8. package/android/libs/x86_64/libjcore330.so +0 -0
  9. package/package.json +1 -1
  10. package/.vscode/settings.json +0 -3
  11. package/android/.gradle/7.1.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  12. package/android/.gradle/7.1.1/dependencies-accessors/gc.properties +0 -0
  13. package/android/.gradle/7.1.1/fileChanges/last-build.bin +0 -0
  14. package/android/.gradle/7.1.1/fileHashes/fileHashes.lock +0 -0
  15. package/android/.gradle/7.1.1/gc.properties +0 -0
  16. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  17. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  18. package/android/.gradle/checksums/checksums.lock +0 -0
  19. package/android/.gradle/vcs-1/gc.properties +0 -0
  20. package/example/.buckconfig +0 -6
  21. package/example/.bundle/config +0 -2
  22. package/example/.eslintrc.js +0 -4
  23. package/example/.flowconfig +0 -65
  24. package/example/.prettierrc.js +0 -7
  25. package/example/.ruby-version +0 -1
  26. package/example/.watchmanconfig +0 -1
  27. package/example/App.js +0 -112
  28. package/example/Gemfile +0 -6
  29. package/example/__tests__/App-test.js +0 -14
  30. package/example/android/app/BUCK +0 -55
  31. package/example/android/app/build.gradle +0 -227
  32. package/example/android/app/build_defs.bzl +0 -19
  33. package/example/android/app/debug.keystore +0 -0
  34. package/example/android/app/proguard-rules.pro +0 -10
  35. package/example/android/app/src/debug/AndroidManifest.xml +0 -13
  36. package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +0 -72
  37. package/example/android/app/src/main/AndroidManifest.xml +0 -25
  38. package/example/android/app/src/main/java/com/example/MainActivity.java +0 -15
  39. package/example/android/app/src/main/java/com/example/MainApplication.java +0 -80
  40. package/example/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  41. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  42. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  43. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  44. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  45. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  46. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  47. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  48. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  49. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  50. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  51. package/example/android/app/src/main/res/values/strings.xml +0 -3
  52. package/example/android/app/src/main/res/values/styles.xml +0 -9
  53. package/example/android/build.gradle +0 -42
  54. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  55. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  56. package/example/android/gradlew +0 -185
  57. package/example/android/gradlew.bat +0 -89
  58. package/example/android/settings.gradle +0 -3
  59. package/example/app.json +0 -4
  60. package/example/babel.config.js +0 -3
  61. package/example/index.js +0 -9
  62. package/example/ios/Podfile +0 -30
  63. package/example/ios/Podfile.lock +0 -533
  64. package/example/ios/example/AppDelegate.h +0 -8
  65. package/example/ios/example/AppDelegate.m +0 -62
  66. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  67. package/example/ios/example/Images.xcassets/Contents.json +0 -6
  68. package/example/ios/example/Info.plist +0 -55
  69. package/example/ios/example/LaunchScreen.storyboard +0 -47
  70. package/example/ios/example/main.m +0 -9
  71. package/example/ios/example.xcodeproj/project.pbxproj +0 -689
  72. package/example/ios/example.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  73. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +0 -88
  74. package/example/ios/example.xcworkspace/contents.xcworkspacedata +0 -10
  75. package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  76. package/example/ios/exampleTests/Info.plist +0 -24
  77. package/example/ios/exampleTests/exampleTests.m +0 -65
  78. package/example/metro.config.js +0 -17
  79. package/example/package-lock.json +0 -21830
  80. package/example/package.json +0 -30
  81. package/ios/RCTJCoreModule.xcodeproj/project.xcworkspace/xcuserdata/douban.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  82. package/ios/RCTJCoreModule.xcodeproj/xcuserdata/douban.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
@@ -1,72 +0,0 @@
1
- /**
2
- * Copyright (c) Facebook, Inc. and its 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.example;
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.react.ReactFlipperPlugin;
21
- import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
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
- public class ReactNativeFlipper {
28
- public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29
- if (FlipperUtils.shouldEnableFlipper(context)) {
30
- final FlipperClient client = AndroidFlipperClient.getInstance(context);
31
-
32
- client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
33
- client.addPlugin(new ReactFlipperPlugin());
34
- client.addPlugin(new DatabasesFlipperPlugin(context));
35
- client.addPlugin(new SharedPreferencesFlipperPlugin(context));
36
- client.addPlugin(CrashReporterPlugin.getInstance());
37
-
38
- NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
39
- NetworkingModule.setCustomClientBuilder(
40
- new NetworkingModule.CustomClientBuilder() {
41
- @Override
42
- public void apply(OkHttpClient.Builder builder) {
43
- builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
44
- }
45
- });
46
- client.addPlugin(networkFlipperPlugin);
47
- client.start();
48
-
49
- // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
50
- // Hence we run if after all native modules have been initialized
51
- ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
52
- if (reactContext == null) {
53
- reactInstanceManager.addReactInstanceEventListener(
54
- new ReactInstanceManager.ReactInstanceEventListener() {
55
- @Override
56
- public void onReactContextInitialized(ReactContext reactContext) {
57
- reactInstanceManager.removeReactInstanceEventListener(this);
58
- reactContext.runOnNativeModulesQueueThread(
59
- new Runnable() {
60
- @Override
61
- public void run() {
62
- client.addPlugin(new FrescoFlipperPlugin());
63
- }
64
- });
65
- }
66
- });
67
- } else {
68
- client.addPlugin(new FrescoFlipperPlugin());
69
- }
70
- }
71
- }
72
- }
@@ -1,25 +0,0 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.example">
3
-
4
- <uses-permission android:name="android.permission.INTERNET" />
5
-
6
- <application
7
- android:name=".MainApplication"
8
- android:label="@string/app_name"
9
- android:icon="@mipmap/ic_launcher"
10
- android:roundIcon="@mipmap/ic_launcher_round"
11
- android:allowBackup="false"
12
- android:theme="@style/AppTheme">
13
- <activity
14
- android:name=".MainActivity"
15
- android:label="@string/app_name"
16
- android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
17
- android:launchMode="singleTask"
18
- android:windowSoftInputMode="adjustResize">
19
- <intent-filter>
20
- <action android:name="android.intent.action.MAIN" />
21
- <category android:name="android.intent.category.LAUNCHER" />
22
- </intent-filter>
23
- </activity>
24
- </application>
25
- </manifest>
@@ -1,15 +0,0 @@
1
- package com.example;
2
-
3
- import com.facebook.react.ReactActivity;
4
-
5
- public class MainActivity extends ReactActivity {
6
-
7
- /**
8
- * Returns the name of the main component registered from JavaScript. This is used to schedule
9
- * rendering of the component.
10
- */
11
- @Override
12
- protected String getMainComponentName() {
13
- return "example";
14
- }
15
- }
@@ -1,80 +0,0 @@
1
- package com.example;
2
-
3
- import android.app.Application;
4
- import android.content.Context;
5
- import com.facebook.react.PackageList;
6
- import com.facebook.react.ReactApplication;
7
- import com.facebook.react.ReactInstanceManager;
8
- import com.facebook.react.ReactNativeHost;
9
- import com.facebook.react.ReactPackage;
10
- import com.facebook.soloader.SoLoader;
11
- import java.lang.reflect.InvocationTargetException;
12
- import java.util.List;
13
-
14
- public class MainApplication extends Application implements ReactApplication {
15
-
16
- private final ReactNativeHost mReactNativeHost =
17
- new ReactNativeHost(this) {
18
- @Override
19
- public boolean getUseDeveloperSupport() {
20
- return BuildConfig.DEBUG;
21
- }
22
-
23
- @Override
24
- protected List<ReactPackage> getPackages() {
25
- @SuppressWarnings("UnnecessaryLocalVariable")
26
- List<ReactPackage> packages = new PackageList(this).getPackages();
27
- // Packages that cannot be autolinked yet can be added manually here, for example:
28
- // packages.add(new MyReactNativePackage());
29
- return packages;
30
- }
31
-
32
- @Override
33
- protected String getJSMainModuleName() {
34
- return "index";
35
- }
36
- };
37
-
38
- @Override
39
- public ReactNativeHost getReactNativeHost() {
40
- return mReactNativeHost;
41
- }
42
-
43
- @Override
44
- public void onCreate() {
45
- super.onCreate();
46
- SoLoader.init(this, /* native exopackage */ false);
47
- initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
48
- }
49
-
50
- /**
51
- * Loads Flipper in React Native templates. Call this in the onCreate method with something like
52
- * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
53
- *
54
- * @param context
55
- * @param reactInstanceManager
56
- */
57
- private static void initializeFlipper(
58
- Context context, ReactInstanceManager reactInstanceManager) {
59
- if (BuildConfig.DEBUG) {
60
- try {
61
- /*
62
- We use reflection here to pick up the class that initializes Flipper,
63
- since Flipper library is not available in release mode
64
- */
65
- Class<?> aClass = Class.forName("com.example.ReactNativeFlipper");
66
- aClass
67
- .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
68
- .invoke(null, context, reactInstanceManager);
69
- } catch (ClassNotFoundException e) {
70
- e.printStackTrace();
71
- } catch (NoSuchMethodException e) {
72
- e.printStackTrace();
73
- } catch (IllegalAccessException e) {
74
- e.printStackTrace();
75
- } catch (InvocationTargetException e) {
76
- e.printStackTrace();
77
- }
78
- }
79
- }
80
- }
@@ -1,36 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Copyright (C) 2014 The Android Open Source Project
3
-
4
- Licensed under the Apache License, Version 2.0 (the "License");
5
- you may not use this file except in compliance with the License.
6
- You may obtain a copy of the License at
7
-
8
- http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- Unless required by applicable law or agreed to in writing, software
11
- distributed under the License is distributed on an "AS IS" BASIS,
12
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- See the License for the specific language governing permissions and
14
- limitations under the License.
15
- -->
16
- <inset xmlns:android="http://schemas.android.com/apk/res/android"
17
- android:insetLeft="@dimen/abc_edit_text_inset_horizontal_material"
18
- android:insetRight="@dimen/abc_edit_text_inset_horizontal_material"
19
- android:insetTop="@dimen/abc_edit_text_inset_top_material"
20
- android:insetBottom="@dimen/abc_edit_text_inset_bottom_material">
21
-
22
- <selector>
23
- <!--
24
- This file is a copy of abc_edit_text_material (https://bit.ly/3k8fX7I).
25
- The item below with state_pressed="false" and state_focused="false" causes a NullPointerException.
26
- NullPointerException:tempt to invoke virtual method 'android.graphics.drawable.Drawable android.graphics.drawable.Drawable$ConstantState.newDrawable(android.content.res.Resources)'
27
-
28
- <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
29
-
30
- For more info, see https://bit.ly/3CdLStv (react-native/pull/29452) and https://bit.ly/3nxOMoR.
31
- -->
32
- <item android:state_enabled="false" android:drawable="@drawable/abc_textfield_default_mtrl_alpha"/>
33
- <item android:drawable="@drawable/abc_textfield_activated_mtrl_alpha"/>
34
- </selector>
35
-
36
- </inset>
@@ -1,3 +0,0 @@
1
- <resources>
2
- <string name="app_name">example</string>
3
- </resources>
@@ -1,9 +0,0 @@
1
- <resources>
2
-
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>
@@ -1,42 +0,0 @@
1
- // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
- buildscript {
4
- ext {
5
- buildToolsVersion = "30.0.2"
6
- minSdkVersion = 21
7
- compileSdkVersion = 30
8
- targetSdkVersion = 30
9
- ndkVersion = "21.4.7075529"
10
- }
11
- repositories {
12
- google()
13
- mavenCentral()
14
- }
15
- dependencies {
16
- classpath("com.android.tools.build:gradle:4.2.2")
17
- // NOTE: Do not place your application dependencies here; they belong
18
- // in the individual module build.gradle files
19
- }
20
- }
21
-
22
- allprojects {
23
- repositories {
24
- maven {
25
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
26
- url("$rootDir/../node_modules/react-native/android")
27
- }
28
- maven {
29
- // Android JSC is installed from npm
30
- url("$rootDir/../node_modules/jsc-android/dist")
31
- }
32
- mavenCentral {
33
- // We don't want to fetch react-native from Maven Central as there are
34
- // older versions over there.
35
- content {
36
- excludeGroup "com.facebook.react"
37
- }
38
- }
39
- google()
40
- maven { url 'https://www.jitpack.io' }
41
- }
42
- }
@@ -1,5 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
@@ -1,185 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- #
4
- # Copyright 2015 the original author or authors.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # https://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
-
19
- ##############################################################################
20
- ##
21
- ## Gradle start up script for UN*X
22
- ##
23
- ##############################################################################
24
-
25
- # Attempt to set APP_HOME
26
- # Resolve links: $0 may be a link
27
- PRG="$0"
28
- # Need this for relative symlinks.
29
- while [ -h "$PRG" ] ; do
30
- ls=`ls -ld "$PRG"`
31
- link=`expr "$ls" : '.*-> \(.*\)$'`
32
- if expr "$link" : '/.*' > /dev/null; then
33
- PRG="$link"
34
- else
35
- PRG=`dirname "$PRG"`"/$link"
36
- fi
37
- done
38
- SAVED="`pwd`"
39
- cd "`dirname \"$PRG\"`/" >/dev/null
40
- APP_HOME="`pwd -P`"
41
- cd "$SAVED" >/dev/null
42
-
43
- APP_NAME="Gradle"
44
- APP_BASE_NAME=`basename "$0"`
45
-
46
- # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47
- DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48
-
49
- # Use the maximum available, or set MAX_FD != -1 to use that value.
50
- MAX_FD="maximum"
51
-
52
- warn () {
53
- echo "$*"
54
- }
55
-
56
- die () {
57
- echo
58
- echo "$*"
59
- echo
60
- exit 1
61
- }
62
-
63
- # OS specific support (must be 'true' or 'false').
64
- cygwin=false
65
- msys=false
66
- darwin=false
67
- nonstop=false
68
- case "`uname`" in
69
- CYGWIN* )
70
- cygwin=true
71
- ;;
72
- Darwin* )
73
- darwin=true
74
- ;;
75
- MINGW* )
76
- msys=true
77
- ;;
78
- NONSTOP* )
79
- nonstop=true
80
- ;;
81
- esac
82
-
83
- CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84
-
85
-
86
- # Determine the Java command to use to start the JVM.
87
- if [ -n "$JAVA_HOME" ] ; then
88
- if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
89
- # IBM's JDK on AIX uses strange locations for the executables
90
- JAVACMD="$JAVA_HOME/jre/sh/java"
91
- else
92
- JAVACMD="$JAVA_HOME/bin/java"
93
- fi
94
- if [ ! -x "$JAVACMD" ] ; then
95
- die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
96
-
97
- Please set the JAVA_HOME variable in your environment to match the
98
- location of your Java installation."
99
- fi
100
- else
101
- JAVACMD="java"
102
- which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
103
-
104
- Please set the JAVA_HOME variable in your environment to match the
105
- location of your Java installation."
106
- fi
107
-
108
- # Increase the maximum file descriptors if we can.
109
- if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
110
- MAX_FD_LIMIT=`ulimit -H -n`
111
- if [ $? -eq 0 ] ; then
112
- if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
113
- MAX_FD="$MAX_FD_LIMIT"
114
- fi
115
- ulimit -n $MAX_FD
116
- if [ $? -ne 0 ] ; then
117
- warn "Could not set maximum file descriptor limit: $MAX_FD"
118
- fi
119
- else
120
- warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
121
- fi
122
- fi
123
-
124
- # For Darwin, add options to specify how the application appears in the dock
125
- if $darwin; then
126
- GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
127
- fi
128
-
129
- # For Cygwin or MSYS, switch paths to Windows format before running java
130
- if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131
- APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132
- CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133
-
134
- JAVACMD=`cygpath --unix "$JAVACMD"`
135
-
136
- # We build the pattern for arguments to be converted via cygpath
137
- ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
138
- SEP=""
139
- for dir in $ROOTDIRSRAW ; do
140
- ROOTDIRS="$ROOTDIRS$SEP$dir"
141
- SEP="|"
142
- done
143
- OURCYGPATTERN="(^($ROOTDIRS))"
144
- # Add a user-defined pattern to the cygpath arguments
145
- if [ "$GRADLE_CYGPATTERN" != "" ] ; then
146
- OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
147
- fi
148
- # Now convert the arguments - kludge to limit ourselves to /bin/sh
149
- i=0
150
- for arg in "$@" ; do
151
- CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
152
- CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
153
-
154
- if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
155
- eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
156
- else
157
- eval `echo args$i`="\"$arg\""
158
- fi
159
- i=`expr $i + 1`
160
- done
161
- case $i in
162
- 0) set -- ;;
163
- 1) set -- "$args0" ;;
164
- 2) set -- "$args0" "$args1" ;;
165
- 3) set -- "$args0" "$args1" "$args2" ;;
166
- 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
167
- 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
168
- 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
169
- 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
170
- 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
171
- 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
172
- esac
173
- fi
174
-
175
- # Escape application args
176
- save () {
177
- for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
178
- echo " "
179
- }
180
- APP_ARGS=`save "$@"`
181
-
182
- # Collect all arguments for the java command, following the shell quoting and substitution rules
183
- eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
184
-
185
- exec "$JAVACMD" "$@"
@@ -1,89 +0,0 @@
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
@@ -1,3 +0,0 @@
1
- rootProject.name = 'example'
2
- apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3
- include ':app'
package/example/app.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "name": "example",
3
- "displayName": "example"
4
- }
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- presets: ['module:metro-react-native-babel-preset'],
3
- };
package/example/index.js DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * @format
3
- */
4
-
5
- import {AppRegistry} from 'react-native';
6
- import App from './App';
7
- import {name as appName} from './app.json';
8
-
9
- AppRegistry.registerComponent(appName, () => App);
@@ -1,30 +0,0 @@
1
- require_relative '../node_modules/react-native/scripts/react_native_pods'
2
- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
-
4
- platform :ios, '11.0'
5
-
6
- target 'example' do
7
- config = use_native_modules!
8
-
9
- use_react_native!(
10
- :path => config[:reactNativePath],
11
- # to enable hermes on iOS, change `false` to `true` and then install pods
12
- :hermes_enabled => false
13
- )
14
-
15
- target 'exampleTests' do
16
- inherit! :complete
17
- # Pods for testing
18
- end
19
-
20
- # Enables Flipper.
21
- #
22
- # Note that if you have use_frameworks! enabled, Flipper will not work and
23
- # you should disable the next line.
24
- use_flipper!()
25
-
26
- post_install do |installer|
27
- react_native_post_install(installer)
28
- __apply_Xcode_12_5_M1_post_install_workaround(installer)
29
- end
30
- end