forked from processing/processing-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwear-update.sh
More file actions
executable file
·39 lines (30 loc) · 1.28 KB
/
wear-update.sh
File metadata and controls
executable file
·39 lines (30 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# The addon repository description file:
#
# https://dl.google.com/android/repository/addon.xml
#
# contains the entry Google Repository (Local Maven repository for Support Libraries)
# which holds the latest file with the wearable pacakges
#
# On an already installed SDK, they should be available in:
#
# $ANDROID_SDK/extras/google/m2repository/com/google/android/support/wearable/$version/
# Usage:
# call with the version number of the wearable package to copy from local SDK and extract, i.e.:
# ./wear-update.sh 2.0.0:
version=$1
cp $ANDROID_SDK/extras/google/m2repository/com/google/android/support/wearable/$version/wearable-$version.aar .
# Now unzip, and extract the classes jar. For more information on the aar format and how
# to use it in Eclipse, see this blogposts:
# https://commonsware.com/blog/2014/07/03/consuming-aars-eclipse.html
# and Google's documentation on Android Libraries:
# https://developer.android.com/studio/projects/android-library.html
unzip wearable-$version.aar -d wearable
cp wearable/classes.jar ../core/library/wearable-$version.jar
# Remove left over files
rm -Rf wearable
rm wearable-$version.aar
# Done, print out reminder...
echo ""
echo "Done!"
echo "Remember to update the version number of the wearable jar in processing-core's source code"