react-obsidian 1.0.0 → 1.2.0

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 (157) hide show
  1. package/dist/src/Obsidian.d.ts +2 -2
  2. package/dist/src/Obsidian.d.ts.map +1 -1
  3. package/dist/src/Obsidian.js.map +1 -1
  4. package/dist/src/graph/registry/GraphRegistry.d.ts +1 -0
  5. package/dist/src/graph/registry/GraphRegistry.d.ts.map +1 -1
  6. package/dist/src/graph/registry/GraphRegistry.js +8 -1
  7. package/dist/src/graph/registry/GraphRegistry.js.map +1 -1
  8. package/dist/src/graph/registry/NullProps.d.ts +4 -0
  9. package/dist/src/graph/registry/NullProps.d.ts.map +1 -0
  10. package/dist/src/graph/registry/NullProps.js +25 -0
  11. package/dist/src/graph/registry/NullProps.js.map +1 -0
  12. package/dist/src/index.d.ts +1 -0
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/index.js +4 -1
  15. package/dist/src/index.js.map +1 -1
  16. package/dist/src/utils/isDev.d.ts +2 -0
  17. package/dist/src/utils/isDev.d.ts.map +1 -0
  18. package/dist/src/utils/isDev.js +17 -0
  19. package/dist/src/utils/isDev.js.map +1 -0
  20. package/dist/test/fixtures/LifecycleBoundGraph.d.ts +3 -2
  21. package/dist/test/fixtures/LifecycleBoundGraph.d.ts.map +1 -1
  22. package/dist/test/fixtures/LifecycleBoundGraph.js +9 -0
  23. package/dist/test/fixtures/LifecycleBoundGraph.js.map +1 -1
  24. package/dist/testkit/index.d.ts +6 -1
  25. package/dist/testkit/index.d.ts.map +1 -1
  26. package/dist/testkit/index.js +11 -17
  27. package/dist/testkit/index.js.map +1 -1
  28. package/dist/testkit/mockGraphs.d.ts +4 -0
  29. package/dist/testkit/mockGraphs.d.ts.map +1 -0
  30. package/dist/testkit/mockGraphs.js +23 -0
  31. package/dist/testkit/mockGraphs.js.map +1 -0
  32. package/dist/testkit/mockModel.d.ts +3 -0
  33. package/dist/testkit/mockModel.d.ts.map +1 -0
  34. package/dist/testkit/mockModel.js +14 -0
  35. package/dist/testkit/mockModel.js.map +1 -0
  36. package/package.json +1 -1
  37. package/src/Obsidian.ts +3 -3
  38. package/src/graph/registry/GraphRegistry.ts +9 -1
  39. package/src/graph/registry/NullProps.ts +23 -0
  40. package/src/index.ts +1 -0
  41. package/src/utils/isDev.ts +12 -0
  42. package/testkit/index.ts +11 -14
  43. package/testkit/mockGraphs.ts +20 -0
  44. package/testkit/mockModel.ts +10 -0
  45. package/.buildkite/pipeline.yml +0 -10
  46. package/.eslintignore +0 -1
  47. package/.eslintrc.json +0 -104
  48. package/.vscode/settings.json +0 -5
  49. package/babel.config.js +0 -13
  50. package/documentation/README.md +0 -41
  51. package/documentation/babel.config.js +0 -3
  52. package/documentation/blog/2019-05-28-first-blog-post.md +0 -12
  53. package/documentation/blog/2019-05-29-long-blog-post.md +0 -44
  54. package/documentation/blog/2021-08-01-mdx-blog-post.mdx +0 -20
  55. package/documentation/blog/2021-08-26-welcome/docusaurus-plushie-banner.jpeg +0 -0
  56. package/documentation/blog/2021-08-26-welcome/index.md +0 -25
  57. package/documentation/blog/authors.yml +0 -17
  58. package/documentation/docs/documentation/documentation.mdx +0 -190
  59. package/documentation/docs/documentation/installation.mdx +0 -56
  60. package/documentation/docs/documentation/meta/clearingGraphs.mdx +0 -13
  61. package/documentation/docs/documentation/meta/middlewares.mdx +0 -27
  62. package/documentation/docs/documentation/usage/ClassComponents.mdx +0 -18
  63. package/documentation/docs/documentation/usage/Classes.mdx +0 -41
  64. package/documentation/docs/documentation/usage/FunctionalComponents.mdx +0 -57
  65. package/documentation/docs/documentation/usage/Graphs.mdx +0 -154
  66. package/documentation/docs/documentation/usage/Hooks.mdx +0 -85
  67. package/documentation/docs/documentation/usage/Reactivity.mdx +0 -116
  68. package/documentation/docs/documentation/usage/ServiceLocator.mdx +0 -38
  69. package/documentation/docs/documentation/usage/_category_.json +0 -9
  70. package/documentation/docs/guides/configurableApplications.mdx +0 -205
  71. package/documentation/docs/guides/mockDependencies.mdx +0 -141
  72. package/documentation/docusaurus.config.js +0 -151
  73. package/documentation/package-lock.json +0 -22975
  74. package/documentation/package.json +0 -47
  75. package/documentation/sidebars.js +0 -34
  76. package/documentation/src/components/HomepageFeatures/index.tsx +0 -71
  77. package/documentation/src/components/HomepageFeatures/styles.module.css +0 -11
  78. package/documentation/src/css/custom.css +0 -30
  79. package/documentation/src/pages/index.module.css +0 -23
  80. package/documentation/src/pages/index.tsx +0 -41
  81. package/documentation/src/pages/playground/index.mdx +0 -21
  82. package/documentation/src/theme/SearchBar.js +0 -19
  83. package/documentation/static/.nojekyll +0 -0
  84. package/documentation/static/img/api.svg +0 -101
  85. package/documentation/static/img/favicon.ico +0 -0
  86. package/documentation/static/img/logo.svg +0 -265
  87. package/documentation/static/img/obsidian.png +0 -0
  88. package/documentation/static/img/prototype.svg +0 -1
  89. package/documentation/static/img/stethoscope.svg +0 -37
  90. package/documentation/tsconfig.json +0 -7
  91. package/documentation/yarn.lock +0 -8167
  92. package/example/.buckconfig +0 -6
  93. package/example/.editorconfig +0 -3
  94. package/example/.eslintrc.js +0 -4
  95. package/example/.flowconfig +0 -65
  96. package/example/.gitattributes +0 -3
  97. package/example/.prettierrc.js +0 -7
  98. package/example/.watchmanconfig +0 -1
  99. package/example/App.tsx +0 -31
  100. package/example/MyInjectedComponent.tsx +0 -37
  101. package/example/__tests__/App-test.js +0 -14
  102. package/example/android/app/BUCK +0 -55
  103. package/example/android/app/build.gradle +0 -227
  104. package/example/android/app/build_defs.bzl +0 -19
  105. package/example/android/app/debug.keystore +0 -0
  106. package/example/android/app/proguard-rules.pro +0 -10
  107. package/example/android/app/src/debug/AndroidManifest.xml +0 -13
  108. package/example/android/app/src/debug/java/com/example/ReactNativeFlipper.java +0 -72
  109. package/example/android/app/src/main/AndroidManifest.xml +0 -25
  110. package/example/android/app/src/main/java/com/example/MainActivity.java +0 -15
  111. package/example/android/app/src/main/java/com/example/MainApplication.java +0 -80
  112. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  113. package/example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  114. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  115. package/example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  116. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  117. package/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  118. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  119. package/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  120. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  121. package/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  122. package/example/android/app/src/main/res/values/strings.xml +0 -3
  123. package/example/android/app/src/main/res/values/styles.xml +0 -8
  124. package/example/android/build.gradle +0 -38
  125. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  126. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  127. package/example/android/gradle.properties +0 -28
  128. package/example/android/gradlew +0 -185
  129. package/example/android/gradlew.bat +0 -89
  130. package/example/android/settings.gradle +0 -3
  131. package/example/app.json +0 -4
  132. package/example/babel.config.js +0 -8
  133. package/example/index.js +0 -9
  134. package/example/ios/Podfile +0 -30
  135. package/example/ios/Podfile.lock +0 -526
  136. package/example/ios/example/AppDelegate.h +0 -8
  137. package/example/ios/example/AppDelegate.m +0 -62
  138. package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  139. package/example/ios/example/Images.xcassets/Contents.json +0 -6
  140. package/example/ios/example/Info.plist +0 -55
  141. package/example/ios/example/LaunchScreen.storyboard +0 -47
  142. package/example/ios/example/main.m +0 -9
  143. package/example/ios/example.xcodeproj/project.pbxproj +0 -689
  144. package/example/ios/example.xcodeproj/xcshareddata/xcschemes/example.xcscheme +0 -88
  145. package/example/ios/example.xcworkspace/contents.xcworkspacedata +0 -10
  146. package/example/ios/example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  147. package/example/ios/exampleTests/Info.plist +0 -24
  148. package/example/ios/exampleTests/exampleTests.m +0 -65
  149. package/example/metro.config.js +0 -44
  150. package/example/package.json +0 -35
  151. package/example/tsconfig.json +0 -42
  152. package/global.d.ts +0 -1
  153. package/jest.config.js +0 -17
  154. package/jest.setup-after-env.js +0 -4
  155. package/tsconfig.base.json +0 -42
  156. package/tsconfig.json +0 -3
  157. package/tsconfig.prod.json +0 -7
@@ -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,3 +0,0 @@
1
- <resources>
2
- <string name="app_name">example</string>
3
- </resources>
@@ -1,8 +0,0 @@
1
- <resources>
2
-
3
- <!-- Base application theme. -->
4
- <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
5
- <!-- Customize your theme here. -->
6
- </style>
7
-
8
- </resources>
@@ -1,38 +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
- mavenCentral()
25
- mavenLocal()
26
- maven {
27
- // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
28
- url("$rootDir/../node_modules/react-native/android")
29
- }
30
- maven {
31
- // Android JSC is installed from npm
32
- url("$rootDir/../node_modules/jsc-android/dist")
33
- }
34
-
35
- google()
36
- maven { url 'https://www.jitpack.io' }
37
- }
38
- }
@@ -1,5 +0,0 @@
1
- distributionBase=GRADLE_USER_HOME
2
- distributionPath=wrapper/dists
3
- distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
4
- zipStoreBase=GRADLE_USER_HOME
5
- zipStorePath=wrapper/dists
@@ -1,28 +0,0 @@
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: -Xmx10248m -XX:MaxPermSize=256m
13
- # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
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
- # Automatically convert third-party libraries to use AndroidX
25
- android.enableJetifier=true
26
-
27
- # Version of flipper SDK to use with React Native
28
- FLIPPER_VERSION=0.99.0
@@ -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,8 +0,0 @@
1
- module.exports = {
2
- presets: ['module:metro-react-native-babel-preset'],
3
- plugins: [
4
- ['@babel/plugin-proposal-decorators', {legacy: true}],
5
- ['@babel/plugin-proposal-class-properties', {loose: true}],
6
- [`${__dirname}/../dist/transformers/babel-plugin-obsidian`],
7
- ],
8
- };
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