Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
* [Android] Fix build problem of apache release. (#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen authored Aug 31, 2018
1 parent ab1a91d commit 15a8de3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ android {
if(project.hasProperty('asfRelease')){
//download so file if not exist, when compile in source release
download{
src 'https://git-wip-us.apache.org/repos/asf?p=incubator-weex.git;a=blob_plain;f=android/sdk/libs/armeabi/libweexcore.so;hb=refs/heads/master'
src 'https://gitbox.apache.org/repos/asf?p=incubator-weex.git;a=blob_plain;f=android/sdk/libs/armeabi/libweexcore.so;hb=refs/heads/master'
dest "${projectDir}/libs/armeabi/libweexcore.so"
overwrite false
}
download{
src 'https://git-wip-us.apache.org/repos/asf?p=incubator-weex.git;a=blob_plain;f=android/sdk/libs/x86/libweexcore.so;hb=refs/heads/master'
src 'https://gitbox.apache.org/repos/asf?p=incubator-weex.git;a=blob_plain;f=android/sdk/libs/x86/libweexcore.so;hb=refs/heads/master'
dest "${projectDir}/libs/x86/libweexcore.so"
overwrite false
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_from_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ cp dist/weex-polyfill.min.js pre-build/weex-polyfill.js
cp dist/weex-rax.min.js pre-build/weex-rax-api.js
cp dist/weex-rax.min.js android_sdk/assets/weex-rax-api.js

gradle wrapper --gradle-version 3.3
gradle wrapper --gradle-version 4.4
echo 'include ":android_sdk"'>settings.gradle
./gradlew :android_sdk:assemble -PasfRelease

Expand Down
1 change: 1 addition & 0 deletions scripts/generate_apache_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ $SED_CMD -i '' 's/\.\.\/\.\.\/pre-build/\.\.\/pre-build/g' $dest/android_sdk/bui
mv $dest/android/build.gradle $dest/build.gradle
rm -rf $dest/android $dest/ios

rm -rf $dest/android_sdk/gradle

0 comments on commit 15a8de3

Please sign in to comment.