chiark / gitweb /
buildserver: support new ConstraintLayout license bullshit
authorHans-Christoph Steiner <hans@eds.org>
Mon, 13 Mar 2017 15:31:27 +0000 (16:31 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 13 Mar 2017 15:31:27 +0000 (16:31 +0100)
The new ConstraintLayout library in Android Support has some new custom way
of handling the license.  I suspect that they are going to use this new way
with all of the bits that gradle downloads.  We also have to support it for
apps that use it, including soon fdroidclient.

fdroiddata!2094
ci-images!1

buildserver/provision-android-sdk

index 7c9b32860088e2c674dd1face6cf1cb140043da3..00456fbec9c72fea7ab35043639d8124832b8684 100644 (file)
@@ -71,6 +71,13 @@ y
 
 EOH
 
+mkdir -p $ANDROID_HOME/licenses/
+echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
+echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_HOME/licenses/android-sdk-preview-license
+echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.1"
+echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.1"
+echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
+echo y | $ANDROID_HOME/tools/bin/sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
 
 chmod -R a+rX $ANDROID_HOME/
 find $ANDROID_HOME/ -type f -executable -print0 | xargs -0 chmod a+x