UberSync for Facebook: Replace sed script with patch files
This commit is contained in:
parent
3b9103461f
commit
2ebd93ab94
|
@ -46,19 +46,14 @@ Build:1.2.2,42
|
|||
sed -i 's/Class\[\]/Class\<?\>\[\]/g' $$FacebookSDK$$/src/com/facebook/model/GraphObject.java
|
||||
|
||||
Build:2.1.1,48
|
||||
disable=add removal needs testing
|
||||
commit=2.1.1
|
||||
rm=libs/applovin*,libs/mobileCore*
|
||||
extlibs=android/android-support-v4.jar
|
||||
srclibs=FacebookSDK@sdk-version-3.0.2
|
||||
patch=manifest-ads.patch,mobilecore.patch
|
||||
prebuild=cp libs/android-support-v4.jar $$FacebookSDK$$/libs/ && \
|
||||
sed -i 's@\(reference.1=\).*@\1$$FacebookSDK$$@' project.properties && \
|
||||
sed -i 's/Class\[\]/Class\<?\>\[\]/g' $$FacebookSDK$$/src/com/facebook/model/GraphObject.java && \
|
||||
sed -i 100,114d AndroidManifest.xml && \
|
||||
sed -i -e '/import com.ironsource.mobilcore./d' \
|
||||
-e '/MobileCore.init/d' \
|
||||
-e 237,242d \
|
||||
src/ro/weednet/contactssync/activities/Preferences.java
|
||||
sed -i 's/Class\[\]/Class\<?\>\[\]/g' $$FacebookSDK$$/src/com/facebook/model/GraphObject.java
|
||||
|
||||
Build:2.1.2,49
|
||||
disable=Labelled as pre-release, so skipped
|
||||
|
|
25
metadata/ro.weednet.contactssync/manifest-ads.patch
Normal file
25
metadata/ro.weednet.contactssync/manifest-ads.patch
Normal file
|
@ -0,0 +1,25 @@
|
|||
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
||||
index 92505c1..d683c4e 100644
|
||||
--- a/AndroidManifest.xml
|
||||
+++ b/AndroidManifest.xml
|
||||
@@ -97,20 +97,5 @@
|
||||
android:value="@string/facebook_app_id" />
|
||||
<activity android:name="com.facebook.LoginActivity"></activity>
|
||||
|
||||
- <!-- AppLovin -->
|
||||
- <meta-data
|
||||
- android:name="applovin.sdk.key"
|
||||
- android:value="u8D2q5yisTf-a6WW7-61Nb_kb0IaC_p4706y53eyXIx6PRdXQkTpJTWwZqVmqIryIyuO_WKXqGeEhGm7_JwJsR" />
|
||||
-
|
||||
- <!-- MobileCore -->
|
||||
- <service
|
||||
- android:name="com.ironsource.mobilcore.MobileCoreReport"
|
||||
- android:enabled="true"
|
||||
- android:exported="false"
|
||||
- android:process=":mcServiceProcess" />
|
||||
- <receiver
|
||||
- android:name="com.ironsource.mobilcore.InstallationTracker"
|
||||
- android:enabled="true"
|
||||
- android:process=":installationTracker" />
|
||||
</application>
|
||||
</manifest>
|
34
metadata/ro.weednet.contactssync/mobilecore.patch
Normal file
34
metadata/ro.weednet.contactssync/mobilecore.patch
Normal file
|
@ -0,0 +1,34 @@
|
|||
diff --git a/src/ro/weednet/contactssync/activities/Preferences.java b/src/ro/weednet/contactssync/activities/Preferences.java
|
||||
index 08e9a4a..df2fe79 100644
|
||||
--- a/src/ro/weednet/contactssync/activities/Preferences.java
|
||||
+++ b/src/ro/weednet/contactssync/activities/Preferences.java
|
||||
@@ -26,8 +26,6 @@ import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.sql.Date;
|
||||
|
||||
-import com.ironsource.mobilcore.CallbackResponse;
|
||||
-import com.ironsource.mobilcore.MobileCore;
|
||||
|
||||
import ro.weednet.ContactsSync;
|
||||
import ro.weednet.ContactsSync.SyncType;
|
||||
@@ -104,7 +102,6 @@ public class Preferences extends Activity {
|
||||
ft.replace(R.id.settings, mFragment);
|
||||
ft.commit();
|
||||
|
||||
- MobileCore.init(this, "3QBXU338FKE1M2ZSZEH3WRKIXJ0C5", MobileCore.LOG_TYPE.PRODUCTION, MobileCore.AD_UNITS.OFFERWALL);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -234,12 +231,6 @@ public class Preferences extends Activity {
|
||||
if (app.getDisableAds()) {
|
||||
super.onBackPressed();
|
||||
} else {
|
||||
- MobileCore.showOfferWall(this, new CallbackResponse() {
|
||||
- @Override
|
||||
- public void onConfirmation(TYPE arg0) {
|
||||
- finish();
|
||||
- }
|
||||
- });
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue