diff --git a/metadata/de.ub0r.android.smsdroid.txt b/metadata/de.ub0r.android.smsdroid.txt index 31b091c426..be5bf2acad 100644 --- a/metadata/de.ub0r.android.smsdroid.txt +++ b/metadata/de.ub0r.android.smsdroid.txt @@ -64,12 +64,23 @@ Build:1.6.4,7161004 srclibs=ub0rlib@299744672d0e4805db40b189e51c98c5c59e9561 prebuild=sed -i -e '/com.google.android.gms:play-services/d' -e '/repositories/a/*' -e '/mavenCentral/i*/' -e '/mavenCentralamavenLocal()/' build.gradle -Maintainer Notes: -TODO: -* Re-add admob? -* Install ub0rlib to mavenLocal() -. +Build:1.7.0,91700000 + commit=SMSdroid-1.7.0 + subdir=SMSdroid + patch=playads-1.7.0.patch + gradle=yes + srclibs=ub0rlib@48856aeb2d9352a2fc88298ce3ed41bd5ec1740b,ub0rlog@2287a29ac834e225d1c1ae5d5ab69dc265f8a3d3,ub0rcookie@v0.2.0 + prebuild=sed -i -e '/maven {/,+2d' -e '/mavenCentral/amavenLocal()\njcenter()' build.gradle && \ + cp -fR $$ub0rlib$$/lib ../ub0rlib && \ + cp -fR $$ub0rlog$$/logg0r ../ub0rlog && \ + cp -fR $$ub0rcookie$$/library ../ub0rcookie && \ + echo 'include ":ub0rlib"' >> ../settings.gradle && \ + echo 'include ":ub0rlog"' >> ../settings.gradle && \ + echo 'include ":ub0rcookie"' >> ../settings.gradle && \ + sed -i -e '/de.ub0r/d' -e '/support-v4/acompile project(":ub0rlib")' -e '/support-v4/acompile project(":ub0rlog")' -e '/support-v4/acompile project(":ub0rcookie")' build.gradle && \ + echo -e "buildscript {\n\nrepositories {\n\nmavenCentral()\n\nmavenLocal()\n\njcenter()\n\\n}\n\ndependencies {\n\nclasspath 'com.android.tools.build:gradle:1.5.0'\n\n}\n\n}\n\n" > ../build.gradle +Archive Policy:0 versions Auto Update Mode:None Update Check Mode:Tags Current Version:1.7.0 diff --git a/metadata/de.ub0r.android.smsdroid/playads-1.7.0.patch b/metadata/de.ub0r.android.smsdroid/playads-1.7.0.patch new file mode 100644 index 0000000000..0340020f83 --- /dev/null +++ b/metadata/de.ub0r.android.smsdroid/playads-1.7.0.patch @@ -0,0 +1,133 @@ +diff --git a/SMSdroid/build.gradle b/SMSdroid/build.gradle +index 42c6688..22ffdea 100644 +--- a/SMSdroid/build.gradle ++++ b/SMSdroid/build.gradle +@@ -65,7 +65,7 @@ android { + dependencies { + compile 'com.android.support:support-v4:23.1.1' + compile 'com.android.support:appcompat-v7:23.1.1' +- compile 'com.google.android.gms:play-services-ads:8.4.0' ++// compile 'com.google.android.gms:play-services-ads:8.4.0' + compile 'de.ub0r.android.lib:lib:1.1.1' + compile 'de.ub0r.android.logg0r:logg0r:2.0.0' + compile 'de.ub0r.android.eucookieconsent:library:0.2.0@aar' +diff --git a/SMSdroid/src/main/AndroidManifest.xml b/SMSdroid/src/main/AndroidManifest.xml +index b29dfac..51f42be 100644 +--- a/SMSdroid/src/main/AndroidManifest.xml ++++ b/SMSdroid/src/main/AndroidManifest.xml +@@ -204,13 +204,6 @@ + android:authorities="de.ub0r.android.smsdroid.SearchProvider" + android:syncable="false"/> + +- +- +- +- + +diff --git a/SMSdroid/src/main/java/com.android.gms.ads.AdRequest b/SMSdroid/src/main/java/com.android.gms.ads.AdRequest +new file mode 100644 +index 0000000..e69de29 +diff --git a/SMSdroid/src/main/java/com/google/android/gms/ads/AdListener.java b/SMSdroid/src/main/java/com/google/android/gms/ads/AdListener.java +new file mode 100644 +index 0000000..0d1d2b7 +--- /dev/null ++++ b/SMSdroid/src/main/java/com/google/android/gms/ads/AdListener.java +@@ -0,0 +1,6 @@ ++package com.google.android.gms.ads; ++ ++public class AdListener { ++ public void onAdLoaded() {}; ++ public void onAdClosed() {}; ++} +diff --git a/SMSdroid/src/main/java/com/google/android/gms/ads/AdRequest.java b/SMSdroid/src/main/java/com/google/android/gms/ads/AdRequest.java +new file mode 100644 +index 0000000..675a169 +--- /dev/null ++++ b/SMSdroid/src/main/java/com/google/android/gms/ads/AdRequest.java +@@ -0,0 +1,7 @@ ++package com.google.android.gms.ads; ++ ++public class AdRequest { ++ static public class Builder { ++ public AdRequest build() { return null; } ++ } ++} +diff --git a/SMSdroid/src/main/java/com/google/android/gms/ads/AdView.java b/SMSdroid/src/main/java/com/google/android/gms/ads/AdView.java +new file mode 100644 +index 0000000..ba8a1e6 +--- /dev/null ++++ b/SMSdroid/src/main/java/com/google/android/gms/ads/AdView.java +@@ -0,0 +1,30 @@ ++package com.google.android.gms.ads; ++ ++import android.view.View; ++import android.content.Context; ++import android.util.AttributeSet; ++ ++public class AdView extends View { ++ public AdView(Context c) { super(c); } ++ public AdView(Context c,AttributeSet a) { super(c,a); } ++ public AdView(Context c,AttributeSet a,int i1) { super(c,a,i1); } ++ public AdView(Context c,AttributeSet a,int i1, int i2) { super(c,a,i1,i2); } ++ ++ ++ ++ private String _adSize = ""; ++ private String _adUnitId = ""; ++ ++ public String getAdSize() { return _adSize; } ++ public void setAdSize(String v) { _adSize=v; } ++ public String getAdUnitId() { return _adUnitId;} ++ public void getAdUnitId(String v) { _adUnitId = v;} ++ ++ public void loadAd(Object o) {} ++ public void setAdListener(Object o) { } ++ public void destroy() { } ++ public void pause() {} ++ public void resume() {} ++ ++ ++} +diff --git a/SMSdroid/src/main/java/com/google/android/gms/ads/InterstitialAd.java b/SMSdroid/src/main/java/com/google/android/gms/ads/InterstitialAd.java +new file mode 100644 +index 0000000..24f9efe +--- /dev/null ++++ b/SMSdroid/src/main/java/com/google/android/gms/ads/InterstitialAd.java +@@ -0,0 +1,18 @@ ++package com.google.android.gms.ads; ++ ++public class InterstitialAd { ++ ++ public InterstitialAd() {} ++ public InterstitialAd(Object o) {} ++ ++ public void loadAd(Object o) {} ++ public void setAdListener(Object o) { } ++ public void show() {} ++ ++ public void setAdUnitId(Object o) {} ++ public boolean isLoaded() { return false; } ++ ++ ++ ++} ++ +diff --git a/SMSdroid/src/main/res/values/attrs_play_ads_shim.xml b/SMSdroid/src/main/res/values/attrs_play_ads_shim.xml +new file mode 100644 +index 0000000..8dc7db7 +--- /dev/null ++++ b/SMSdroid/src/main/res/values/attrs_play_ads_shim.xml +@@ -0,0 +1,8 @@ ++ ++ ++ ++ ++ ++ ++ ++ diff --git a/srclibs/ub0rcookie.txt b/srclibs/ub0rcookie.txt new file mode 100644 index 0000000000..c4fe339eba --- /dev/null +++ b/srclibs/ub0rcookie.txt @@ -0,0 +1,4 @@ +Repo Type:git +Repo:https://github.com/felixb/eucookieconsent + +Prepare:sed -i -e '/afterEvaluate/,$d' -e '/apply/aandroid {\n\ncompileSdkVersion 22\n\nbuildToolsVersion "22.0.1"\n\n\n\ndefaultConfig {\n\nminSdkVersion 3\n\ntargetSdkVersion 22\n\n} \n\n\n\nbuildTypes {\n\nrelease {\n\nminifyEnabled false\n\n} } }' library/build.gradle diff --git a/srclibs/ub0rlib.txt b/srclibs/ub0rlib.txt index f859d85ebb..3850e1da6b 100644 --- a/srclibs/ub0rlib.txt +++ b/srclibs/ub0rlib.txt @@ -1,4 +1,5 @@ Repo Type:git Repo:https://github.com/felixb/ub0rlib.git +Prepare:sed -i -e '/afterEvaluate/,$d' lib/build.gradle diff --git a/srclibs/ub0rlog.txt b/srclibs/ub0rlog.txt new file mode 100644 index 0000000000..1f468a539e --- /dev/null +++ b/srclibs/ub0rlog.txt @@ -0,0 +1,4 @@ +Repo Type:git +Repo:https://github.com/felixb/ub0rlogg0r + +Prepare:sed -i -e '/afterEvaluate/,$d' logg0r/build.gradle