From 80a2081e160330d6ad6751a70d5a4b0c4bdc7df8 Mon Sep 17 00:00:00 2001 From: keeba Date: Thu, 21 Jan 2016 01:34:25 +0100 Subject: [PATCH] ownCloud News Reader: Replace untrusted repos with srclibs and reactivate --- metadata/de.luhmer.owncloudnewsreader.txt | 15 ++++++++++++++- srclibs/JavaOptionClass.txt | 2 ++ srclibs/MaterialFilePicker.txt | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srclibs/JavaOptionClass.txt create mode 100644 srclibs/MaterialFilePicker.txt diff --git a/metadata/de.luhmer.owncloudnewsreader.txt b/metadata/de.luhmer.owncloudnewsreader.txt index 5e8df2e26a..6bf08e37cd 100644 --- a/metadata/de.luhmer.owncloudnewsreader.txt +++ b/metadata/de.luhmer.owncloudnewsreader.txt @@ -325,11 +325,24 @@ Build:0.9.7.5,102 gradle=yes Build:0.9.7.6,103 - disable=untrusted maven repos! commit=v.0.9.7.6 subdir=News-Android-App submodules=yes + init=sed -i -e '/com.nbsp:library/d' build.gradle && \ + sed -i -e '/com.gu:option/d' build.gradle && \ + sed -i -e '/maven { url/d' build.gradle && \ + sed -i "/repositories {/a flatDir { dirs 'libs' }" build.gradle && \ + sed -i "/dependencies {/a compile project(':MaterialFilePicker:library')" build.gradle && \ + sed -i "$ ainclude ':MaterialFilePicker:library'" ../settings.gradle gradle=yes + srclibs=MaterialFilePicker@6817d91,JavaOptionClass@e933c3a + prebuild=rm -rf $$MaterialFilePicker$$/app && \ + cp -r $$MaterialFilePicker$$ ../ && \ + pushd $$JavaOptionClass$$ && \ + $$MVN3$$ package -Dmaven.compiler.source=1.6 -Dmaven.compiler.target=1.6 && \ + popd && \ + mkdir libs && \ + mv $$JavaOptionClass$$/target/option-1.3-SNAPSHOT.jar libs/option-1.3.jar Maintainer Notes: # Auto Update Mode:Version v.%v diff --git a/srclibs/JavaOptionClass.txt b/srclibs/JavaOptionClass.txt new file mode 100644 index 0000000000..79b9d7ab1d --- /dev/null +++ b/srclibs/JavaOptionClass.txt @@ -0,0 +1,2 @@ +Repo Type:git +Repo:https://github.com/guardian/Option diff --git a/srclibs/MaterialFilePicker.txt b/srclibs/MaterialFilePicker.txt new file mode 100644 index 0000000000..85a824ff61 --- /dev/null +++ b/srclibs/MaterialFilePicker.txt @@ -0,0 +1,2 @@ +Repo Type:git +Repo:https://github.com/nbsp-team/MaterialFilePicker