You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by so...@apache.org on 2017/04/26 09:26:44 UTC

[05/14] incubator-weex git commit: * [android] use same main.js file with ios

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/31d323dc/android/sdk/build.gradle
----------------------------------------------------------------------
diff --git a/android/sdk/build.gradle b/android/sdk/build.gradle
index 9e76745..dd1c11c 100755
--- a/android/sdk/build.gradle
+++ b/android/sdk/build.gradle
@@ -54,6 +54,12 @@ android {
     resourcePrefix "weex"
 
     useLibrary 'org.apache.http.legacy'
+    copy {
+        from '../../dist'
+        into new File(projectDir,"assets")
+        include 'native-bundle-main.js'
+        rename('native-bundle-main.js','main.js')
+    }
     def line
     new File(projectDir,"assets/main.js").withReader { line = it.readLine() }
     def m = line =~ /[A-Z\s]+\s+([0-9\.]+),\s+Build\s+[0-9]+/;