Skip to content

Commit

Permalink
Merge pull request #63 from nextcloud/android-29
Browse files Browse the repository at this point in the history
Automatically add all android-library dependencies
  • Loading branch information
tobiasKaminsky authored Nov 14, 2017
2 parents 2e7031f + d39b44c commit 1eeabc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ ADD gradle /gradle
RUN yes | /opt/tools/bin/sdkmanager --sdk_root=/opt/android-sdk-linux/ --licenses

RUN cd /gradle && \
wget https://raw.githubusercontent.com/nextcloud/android/master/build.gradle && \
wget https://raw.githubusercontent.com/nextcloud/android/master/build.gradle -O android.gradle && \
wget https://raw.githubusercontent.com/nextcloud/android-library/master/build.gradle -O android-library.gradle && \
sed '/^dependencies/Q' android.gradle >> build.gradle && \
echo "dependencies {" >> build.gradle && \
sed -n '/dependencies/,/\}/p' android-library.gradle | grep -v dep | grep -v "}" >> build.gradle && \
grep -A 999 "^dependencies" android.gradle | grep -v "dependencies" >> build.gradle && \
sed -i '/.*com.google.*/s/^.*\/\///g' build.gradle && \
sed -i '/.*touch-image-view.*/s/^/\/\//g' build.gradle

Expand Down

0 comments on commit 1eeabc9

Please # to comment.