Tom Underhill пре 4 година
родитељ
комит
b4b9509f49

+ 0
- 55
example/android/app/BUCK Прегледај датотеку

@@ -1,55 +0,0 @@
1
-# To learn about Buck see [Docs](https://buckbuild.com/).
2
-# To run your application with Buck:
3
-# - install Buck
4
-# - `npm start` - to start the packager
5
-# - `cd android`
6
-# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7
-# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8
-# - `buck install -r android/app` - compile, install and run application
9
-#
10
-
11
-load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12
-
13
-lib_deps = []
14
-
15
-create_aar_targets(glob(["libs/*.aar"]))
16
-
17
-create_jar_targets(glob(["libs/*.jar"]))
18
-
19
-android_library(
20
-    name = "all-libs",
21
-    exported_deps = lib_deps,
22
-)
23
-
24
-android_library(
25
-    name = "app-code",
26
-    srcs = glob([
27
-        "src/main/java/**/*.java",
28
-    ]),
29
-    deps = [
30
-        ":all-libs",
31
-        ":build_config",
32
-        ":res",
33
-    ],
34
-)
35
-
36
-android_build_config(
37
-    name = "build_config",
38
-    package = "com.webviewexample",
39
-)
40
-
41
-android_resource(
42
-    name = "res",
43
-    package = "com.webviewexample",
44
-    res = "src/main/res",
45
-)
46
-
47
-android_binary(
48
-    name = "app",
49
-    keystore = "//android/keystores:debug",
50
-    manifest = "src/main/AndroidManifest.xml",
51
-    package_type = "debug",
52
-    deps = [
53
-        ":app-code",
54
-    ],
55
-)

BIN
example/android/app/exampleAsyncStorage.keystore Прегледај датотеку


+ 0
- 25
example/android/app/scripts/CI.gradle Прегледај датотеку

@@ -1,25 +0,0 @@
1
-// Fetch all dependencies upfront
2
-task fetchDependencies() {
3
-    description 'Download all dependencies to the Gradle cache'
4
-    group 'android'
5
-    doLast {
6
-        project.rootProject.allprojects.each { subProject ->
7
-            subProject.buildscript.configurations.each {config ->
8
-                if(config.canBeResolved) {
9
-                    config.files
10
-                }
11
-            }
12
-            subProject.configurations.each {config ->
13
-                if(config.canBeResolved) {
14
-                    // DefaultLenientConfiguration$ArtifactResolveException
15
-                    try {
16
-                        config.files
17
-                    } catch(e) {
18
-                        println e
19
-                    }
20
-
21
-                }
22
-            }
23
-        }
24
-    }
25
-}

+ 0
- 24
example/android/app/src/androidTest/java/com/webviewexample/DetoxTest.java Прегледај датотеку

@@ -1,24 +0,0 @@
1
-package com.webviewexample;
2
-
3
-import androidx.test.filters.LargeTest;
4
-import androidx.test.rule.ActivityTestRule;
5
-import androidx.test.runner.AndroidJUnit4;
6
-
7
-import com.wix.detox.Detox;
8
-
9
-import org.junit.Rule;
10
-import org.junit.Test;
11
-import org.junit.runner.RunWith;
12
-
13
-@RunWith(AndroidJUnit4.class)
14
-@LargeTest
15
-public class DetoxTest {
16
-
17
-    @Rule
18
-    public ActivityTestRule<MainActivity> mActivityRule = new ActivityTestRule<>(MainActivity.class, false, false);
19
-
20
-    @Test
21
-    public void runDetoxTests() throws InterruptedException {
22
-        Detox.runTests(mActivityRule);
23
-    }
24
-}

+ 0
- 15
example/android/app/src/main/java/com/webviewexample/MainActivity.java Прегледај датотеку

@@ -1,15 +0,0 @@
1
-package com.webviewexample;
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.
9
-     * This is used to schedule rendering of the component.
10
-     */
11
-    @Override
12
-    protected String getMainComponentName() {
13
-        return "RNCWebViewExample";
14
-    }
15
-}

+ 0
- 47
example/android/app/src/main/java/com/webviewexample/MainApplication.java Прегледај датотеку

@@ -1,47 +0,0 @@
1
-package com.webviewexample;
2
-
3
-import android.app.Application;
4
-
5
-import com.facebook.react.ReactApplication;
6
-import com.facebook.react.ReactNativeHost;
7
-import com.facebook.react.ReactPackage;
8
-import com.facebook.react.shell.MainReactPackage;
9
-import com.facebook.soloader.SoLoader;
10
-import com.reactnativecommunity.webview.RNCWebViewPackage;
11
-
12
-import java.util.Arrays;
13
-import java.util.List;
14
-
15
-public class MainApplication extends Application implements ReactApplication {
16
-
17
-    private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
18
-        @Override
19
-        public boolean getUseDeveloperSupport() {
20
-            return BuildConfig.DEBUG;
21
-        }
22
-
23
-        @Override
24
-        protected List<ReactPackage> getPackages() {
25
-            return Arrays.<ReactPackage>asList(
26
-                    new MainReactPackage(),
27
-                    new RNCWebViewPackage()
28
-            );
29
-        }
30
-
31
-        @Override
32
-        protected String getJSMainModuleName() {
33
-            return "example/index";
34
-        }
35
-    };
36
-
37
-    @Override
38
-    public ReactNativeHost getReactNativeHost() {
39
-        return mReactNativeHost;
40
-    }
41
-
42
-    @Override
43
-    public void onCreate() {
44
-        super.onCreate();
45
-        SoLoader.init(this, /* native exopackage */ false);
46
-    }
47
-}

BIN
example/android/gradle/wrapper/gradle-wrapper.jar Прегледај датотеку


+ 0
- 8
example/android/keystores/BUCK Прегледај датотеку

@@ -1,8 +0,0 @@
1
-keystore(
2
-    name = "debug",
3
-    properties = "debug.keystore.properties",
4
-    store = "debug.keystore",
5
-    visibility = [
6
-        "PUBLIC",
7
-    ],
8
-)

+ 0
- 4
example/android/keystores/debug.keystore.properties Прегледај датотеку

@@ -1,4 +0,0 @@
1
-key.store=debug.keystore
2
-key.alias=androiddebugkey
3
-key.store.password=android
4
-key.alias.password=android