Skip to content

Commit b9077c5

Browse files
committed
Update jar update process to support aar. still need to verify this works
1 parent 35d57cf commit b9077c5

File tree

4 files changed

+6
-18
lines changed

4 files changed

+6
-18
lines changed

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ SOFTWARE.
6363
</config-file>
6464

6565
<source-file src="src/android/io/branch/BranchSDK.java" target-dir="src/io/branch" />
66-
<lib-file src="src/android/dependencies/Branch.jar" />
66+
<lib-file src="src/android/dependencies/Branch.aar" />
6767
</platform>
6868

6969
<!-- iOS -->

src/android/dependencies/Branch.aar

285 KB
Binary file not shown.

src/android/dependencies/Branch.jar

-304 KB
Binary file not shown.

src/scripts/npm/updateNativeSdk.sh

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -62,23 +62,11 @@ update_ios() {
6262
}
6363

6464
update_and() {
65-
# properties
66-
path="../../android/dependencies"
67-
tag_url="https://github.com/BranchMetrics/android-branch-deep-linking/archive/$and_tag.zip"
68-
zip_tmp=android-branch-deep-linking-$and_tag
69-
70-
# validate and download
71-
check_tag "$tag_url"
72-
download_sdk "$path" "$tag_url" "$zip_tmp"
73-
74-
# copy in new dependencies
75-
mv "$zip_tmp/Branch-$and_tag.jar" "$path"
76-
77-
# rename
78-
mv "$path/Branch-$and_tag.jar" "$path/Branch.jar"
79-
80-
# clean up
81-
remove_tmp "$zip_tmp"
65+
# download aar file from bintray
66+
url="https://bintray.com/bintray/jcenter/download_file?file_path=io%2Fbranch%2Fsdk%2Fandroid%2Flibrary%2F$and_tag%2Flibrary-$and_tag.aar"
67+
68+
echo "downloading $url"
69+
curl -L -o "../../android/dependencies/Branch.aar" "$url"
8270
}
8371

8472
check_tag() {

0 commit comments

Comments
 (0)