mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-27 12:41:49 +00:00
Android get rid of ART dependency
This commit is contained in:
@@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user