fdroiddata/metadata/de.ub0r.android.websms/playads.patch

133 lines
4.4 KiB
Diff
Raw Normal View History

2016-12-27 13:35:17 +00:00
diff --git a/WebSMS/build.gradle b/WebSMS/build.gradle
index edc90d2..6fe4ff1 100644
--- a/WebSMS/build.gradle
+++ b/WebSMS/build.gradle
@@ -59,7 +59,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.websms.connector.common:WebSMSAPI:1.1'
diff --git a/WebSMS/src/main/AndroidManifest.xml b/WebSMS/src/main/AndroidManifest.xml
index 7eb64fb..26e3afe 100644
--- a/WebSMS/src/main/AndroidManifest.xml
+++ b/WebSMS/src/main/AndroidManifest.xml
@@ -157,12 +157,6 @@
</intent-filter>
</receiver>
- <activity
- android:name="com.google.android.gms.ads.AdActivity"
- android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
-
- <meta-data android:name="com.google.android.gms.version"
- android:value="@integer/google_play_services_version" />
</application>
</manifest>
diff --git a/WebSMS/src/main/java/com.android.gms.ads.AdRequest b/WebSMS/src/main/java/com.android.gms.ads.AdRequest
new file mode 100644
index 0000000..e69de29
diff --git a/WebSMS/src/main/java/com/google/android/gms/ads/AdListener.java b/WebSMS/src/main/java/com/google/android/gms/ads/AdListener.java
new file mode 100644
index 0000000..0d1d2b7
--- /dev/null
+++ b/WebSMS/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/WebSMS/src/main/java/com/google/android/gms/ads/AdRequest.java b/WebSMS/src/main/java/com/google/android/gms/ads/AdRequest.java
new file mode 100644
index 0000000..675a169
--- /dev/null
+++ b/WebSMS/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/WebSMS/src/main/java/com/google/android/gms/ads/AdView.java b/WebSMS/src/main/java/com/google/android/gms/ads/AdView.java
new file mode 100644
index 0000000..ba8a1e6
--- /dev/null
+++ b/WebSMS/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/WebSMS/src/main/java/com/google/android/gms/ads/InterstitialAd.java b/WebSMS/src/main/java/com/google/android/gms/ads/InterstitialAd.java
new file mode 100644
index 0000000..24f9efe
--- /dev/null
+++ b/WebSMS/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/WebSMS/src/main/res/values/attrs_play_ads_shim.xml b/WebSMS/src/main/res/values/attrs_play_ads_shim.xml
new file mode 100644
index 0000000..8dc7db7
--- /dev/null
+++ b/WebSMS/src/main/res/values/attrs_play_ads_shim.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <declare-styleable name="playAdsShim">
+ <attr name="adUnitId" format="string" />
+ <attr name="adSize" format="string" />
+ </declare-styleable>
+
+</resources>