WebSMS: Move to archive

This commit is contained in:
Boris Kraut 2016-12-27 14:35:17 +01:00
parent 6f45a88c93
commit 44e350d9b1
5 changed files with 151 additions and 5 deletions

View file

@ -82,6 +82,6 @@ Build:1.7.0,91700000
Archive Policy:0 versions
Auto Update Mode:None
Update Check Mode:Tags
Update Check Mode:None
Current Version:1.7.0
Current Version Code:91700000

View file

@ -18,7 +18,8 @@ Build:2.0,3200000
srclibs=WebSMSAPI@b7f44fd0
prebuild=sed -i 's@\(android.library.reference.1=\).*@\1$$WebSMSAPI$$@' project.properties
Archive Policy:0 versions
Auto Update Mode:None
Update Check Mode:Tags
Update Check Mode:None
Current Version:2.0
Current Version Code:3200000

View file

@ -19,7 +19,8 @@ Build:1.4,3140000
srclibs=WebSMSAPI@b7f44fd0
prebuild=sed -i 's@\(android.library.reference.1=\).*@\1$$WebSMSAPI$$@' project.properties
Archive Policy:0 versions
Auto Update Mode:None
Update Check Mode:Tags
Update Check Mode:None
Current Version:1.4
Current Version Code:3140000

View file

@ -2,7 +2,7 @@ AntiFeatures:UpstreamNonFree
Categories:Phone & SMS
License:GPL-3.0
Web Site:
Source Code:https://github.com/felixb/websms/source
Source Code:https://github.com/felixb/websms
Issue Tracker:
Changelog:https://github.com/felixb/websms/blob/HEAD/CHANGELOG.md
@ -79,7 +79,19 @@ Build:4.9.1,7471005
cp -fR $$ub0rlib$$/lib/src/main/java/de src/main/java/ && \
sed -i -e '/maven {/,+2d' -e '/de.ub0r.android/d' build.gradle
Build:4.9.5,9495000
disable=patch does not apply
commit=WebSMS-4.9.5
subdir=WebSMS
patch=playads.patch
gradle=yes
Maintainer Notes:
Patch does not apply, also needs same treatment as [[de.ub0r.android.smsdroid]].
.
Archive Policy:0 versions
Auto Update Mode:None
Update Check Mode:Tags
Update Check Mode:None
Current Version:4.9.5
Current Version Code:9495000

View file

@ -0,0 +1,132 @@
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>