remade project with react-native init

This commit is contained in:
Sam Bates
2018-08-14 12:21:16 +12:00
parent c161015d43
commit fc66cbc648
29 changed files with 314 additions and 170 deletions
+2 -2
View File
@@ -45,12 +45,12 @@ android_library(
android_build_config(
name = "build_config",
package = "com.applo",
package = "com.myapp",
)
android_resource(
name = "res",
package = "com.applo",
package = "com.myapp",
res = "src/main/res",
)
+3 -2
View File
@@ -98,7 +98,7 @@ android {
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.applo"
applicationId "com.myapp"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
@@ -137,8 +137,9 @@ android {
}
dependencies {
compile project(':react-native-maps')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.android.support:appcompat-v7:24.0.0"
compile "com.facebook.react:react-native:+" // From node_modules
}
+5 -1
View File
@@ -1,8 +1,9 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.applo">
package="com.myapp">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<application
android:name=".MainApplication"
@@ -20,6 +21,9 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyDjHD4_SdNejsYNRzKeROZDSnEvQYRir88"/>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
@@ -1,4 +1,4 @@
package com.applo;
package com.myapp;
import com.facebook.react.ReactActivity;
@@ -10,6 +10,6 @@ public class MainActivity extends ReactActivity {
*/
@Override
protected String getMainComponentName() {
return "applo";
return "myApp";
}
}
@@ -1,8 +1,9 @@
package com.applo;
package com.myapp;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.airbnb.android.react.maps.MapsPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
@@ -22,7 +23,8 @@ public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
new MainReactPackage(),
new MapsPackage()
);
}
+1 -1
View File
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">applo</string>
<string name="app_name">myApp</string>
</resources>
+3 -2
View File
@@ -3,9 +3,10 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.android.tools.build:gradle:3.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
@@ -21,4 +22,4 @@ allprojects {
url "$rootDir/../node_modules/react-native/android"
}
}
}
}
+1 -1
View File
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
+3 -1
View File
@@ -1,3 +1,5 @@
rootProject.name = 'applo'
rootProject.name = 'myApp'
include ':react-native-maps'
project(':react-native-maps').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-maps/lib/android')
include ':app'