Bring the basic example back to a runnable state

This commit is contained in:
Benoit Dion
2019-09-16 13:32:01 -04:00
committed by Benoit Dion
parent ed335f3b02
commit 81cfd4e629
10 changed files with 2976 additions and 2462 deletions

View File

@@ -65,6 +65,10 @@ import com.android.build.OutputFile
* ]
*/
project.ext.react = [
entryFile: "index.android.js",
enableHermes: false,
]
apply from: "../../node_modules/react-native/react.gradle"
/**
@@ -132,8 +136,8 @@ android {
dependencies {
implementation project(':react-native-video')
implementation "androidx.appcompat:appcompat:1.0.0"
implementation "com.facebook.react:react-native:+" // From node_modules
implementation 'org.webkit:android-jsc:+'
}
// Run this once to be able to run the application with BUCK

View File

@@ -6,11 +6,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-sdk
android:minSdkVersion="16"
android:targetSdkVersion="28" />
<application
<application
android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"

View File

@@ -33,5 +33,9 @@ allprojects {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
}
}

View File

@@ -17,6 +17,5 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
android.useDeprecatedNdk=true
android.useAndroidX=true
android.enableJetifier=true