Skip to content

Commit fb3fd58

Browse files
committed
added compat update script
1 parent 7bac0a2 commit fb3fd58

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

mode/appcompat.zip

0 Bytes
Binary file not shown.

scripts/compat-update.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
# I have being unable to find Google's repository from where Android Studio gets the wear
4+
# aar files. People have been trying to solve this in relation to using Eclipse to build
5+
# wear apps, for example:
6+
# http://stackoverflow.com/questions/27913902/dependencies-from-android-gradle-build-or-how-to-build-an-android-wear-app-wit
7+
# However, both JCenter and Maven Central don't seem to hold any wearable pacakges:
8+
# https://jcenter.bintray.com/com/google/android/
9+
# https://search.maven.org/#search%7Cga%7C1%7Cwearable
10+
# So far, only found two odd repostories with up-to-date versions of the aar packages:
11+
# http://uiq3.sourceforge.net/Repository/com/google/android/support/wearable/
12+
# http://mvn.sibext.com/com/google/android/support/wearable/
13+
# (one is maintained by a company in Siberia)
14+
15+
# Usage:
16+
# call with location of the Android SDk, e.g.:
17+
# ./compat-update.sh ~/code/android/sdk
18+
19+
sdk=$1
20+
21+
pushd $sdk/extras/android/support/v7
22+
23+
# Exclude the project.properties files because Processing will regenerate it when
24+
# building the project
25+
zip -r appcompat.zip appcompat --exclude *project.properties*
26+
27+
popd
28+
29+
mv $sdk/extras/android/support/v7/appcompat.zip ../mode
30+
31+
# Done
32+
echo ""
33+
echo "Done!"

scripts/info.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Collection of utility scripts that I put here for the lack of a better place.
22

3+
compat-update.sh: generates the appcompat zip file containing the appcompat v7 package
4+
found in the Android SDK's extras folder
5+
36
perm-parse.py: generates the array of permissions for a given SDK level, to be pasted in
47
Permissions.java
58

0 commit comments

Comments
 (0)