Android get rid of ART dependency

This commit is contained in:
Horcrux
2016-04-20 12:52:35 +08:00
parent b1d8e6a29a
commit 7c288b0005
16 changed files with 914 additions and 371 deletions
+2
View File
@@ -122,4 +122,6 @@ dependencies {
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:0.20.+"
compile project(':react-native-svg')
}
@@ -6,6 +6,7 @@ import com.facebook.react.shell.MainReactPackage;
import java.util.Arrays;
import java.util.List;
import com.horcrux.svg.RNSvgPackage;
public class MainActivity extends ReactActivity {
@@ -34,6 +35,7 @@ public class MainActivity extends ReactActivity {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new RNSvgPackage(),
new MainReactPackage()
);
}
+3
View File
@@ -1,3 +1,6 @@
rootProject.name = 'ArtSvgExample'
include ':app'
include ':react-native-svg'
project(':react-native-svg').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-art-svg/android')