Add the piratebay
This commit is contained in:
parent
317d03ae88
commit
0b6a2b1388
34
metadata/com.piratebayfree.txt
Normal file
34
metadata/com.piratebayfree.txt
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
AntiFeatures:UpstreamNonFree
|
||||||
|
Categories:Internet
|
||||||
|
License:GPL
|
||||||
|
Web Site:http://tpbapp.com
|
||||||
|
Source Code:https://github.com/tpbapp/Pirate-Proxy
|
||||||
|
Issue Tracker:https://github.com/tpbapp/Pirate-Proxy/issues
|
||||||
|
Bitcoin:1KeBs4HBQzkdHC2ou3gpyGHqcL7aKzwTve
|
||||||
|
Litecoin:LiYp3Dg11N5BgV8qKW42ubSZXFmjDByjoV
|
||||||
|
|
||||||
|
Auto Name:TPB Proxy
|
||||||
|
Summary:Access for Pirate Bay website
|
||||||
|
Description:
|
||||||
|
Proxy(s) for the ever-moving Pirate Bay torrent indexing website,
|
||||||
|
allowing you to open the website in a browser.
|
||||||
|
This is the 'free' (as in gratis) version.
|
||||||
|
|
||||||
|
Several proprietary libraries were removed.
|
||||||
|
.
|
||||||
|
|
||||||
|
Repo Type:git
|
||||||
|
Repo:https://github.com/tpbapp/Pirate-Proxy.git
|
||||||
|
|
||||||
|
Build:1.06,8
|
||||||
|
commit=v1.06
|
||||||
|
init=sed -i '/preference/d' project.properties
|
||||||
|
rm=libs/libGoogleAnalyticsServices.jar;libs/newrelic.android.jar
|
||||||
|
srclibs=1:NoAnalytics@d38ae535b543
|
||||||
|
patch=proprietary_8.patch
|
||||||
|
|
||||||
|
Auto Update Mode:None
|
||||||
|
Update Check Mode:Tags
|
||||||
|
Current Version:1.06
|
||||||
|
Current Version Code:8
|
||||||
|
|
||||||
90
metadata/com.piratebayfree/proprietary_8.patch
Normal file
90
metadata/com.piratebayfree/proprietary_8.patch
Normal file
|
|
@ -0,0 +1,90 @@
|
||||||
|
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
|
||||||
|
index 1b4af04..b01f6a2 100644
|
||||||
|
--- a/AndroidManifest.xml
|
||||||
|
+++ b/AndroidManifest.xml
|
||||||
|
@@ -68,14 +68,6 @@
|
||||||
|
android:value="com.piratebay.activities.AboutActivity" />
|
||||||
|
</activity>
|
||||||
|
|
||||||
|
- <!-- Google Play -->
|
||||||
|
- <meta-data android:name="com.google.android.gms.version"
|
||||||
|
- android:value="@integer/google_play_services_version" />
|
||||||
|
-
|
||||||
|
- <activity android:name="com.google.android.gms.ads.AdActivity"
|
||||||
|
- android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
|
||||||
|
-
|
||||||
|
-
|
||||||
|
|
||||||
|
</application>
|
||||||
|
|
||||||
|
diff --git a/src/com/piratebayfree/activities/MainActivity.java b/src/com/piratebayfree/activities/MainActivity.java
|
||||||
|
index eccd3a1..41a2256 100644
|
||||||
|
--- a/src/com/piratebayfree/activities/MainActivity.java
|
||||||
|
+++ b/src/com/piratebayfree/activities/MainActivity.java
|
||||||
|
@@ -1,10 +1,7 @@
|
||||||
|
package com.piratebayfree.activities;
|
||||||
|
|
||||||
|
-import com.newrelic.agent.android.NewRelic;
|
||||||
|
-
|
||||||
|
import com.google.analytics.tracking.android.EasyTracker;
|
||||||
|
|
||||||
|
-import com.google.android.gms.ads.*;
|
||||||
|
import com.piratebayfree.Category;
|
||||||
|
import com.piratebayfree.Database;
|
||||||
|
import com.piratebayfree.Proxy;
|
||||||
|
@@ -72,7 +69,6 @@ public class MainActivity extends Activity implements TextWatcher, OnKeyListener
|
||||||
|
private ImageView statusicon;
|
||||||
|
private TextView statustext;
|
||||||
|
private ImageView advert;
|
||||||
|
- private AdView admob;
|
||||||
|
private ProgressBar loading;
|
||||||
|
private DrawerLayout drawer;
|
||||||
|
private ListView categorylist;
|
||||||
|
@@ -166,10 +162,6 @@ public class MainActivity extends Activity implements TextWatcher, OnKeyListener
|
||||||
|
|
||||||
|
db.deleteLogs();
|
||||||
|
|
||||||
|
- loadAds();
|
||||||
|
-
|
||||||
|
- loadTracking();
|
||||||
|
-
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@@ -194,36 +186,6 @@ public class MainActivity extends Activity implements TextWatcher, OnKeyListener
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ads
|
||||||
|
- private void loadAds() {
|
||||||
|
-
|
||||||
|
- admob = new AdView(this);
|
||||||
|
-
|
||||||
|
- admob.setAdUnitId(ADMOB);
|
||||||
|
- admob.setAdSize(AdSize.BANNER);
|
||||||
|
-
|
||||||
|
- RelativeLayout layout = (RelativeLayout) findViewById(R.id.main_activity);
|
||||||
|
-
|
||||||
|
- RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(
|
||||||
|
- RelativeLayout.LayoutParams.WRAP_CONTENT,
|
||||||
|
- RelativeLayout.LayoutParams.WRAP_CONTENT);
|
||||||
|
-
|
||||||
|
- params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);
|
||||||
|
-
|
||||||
|
- layout.addView(admob, params);
|
||||||
|
-
|
||||||
|
- AdRequest request = new AdRequest.Builder().build();
|
||||||
|
-
|
||||||
|
- admob.loadAd(request);
|
||||||
|
-
|
||||||
|
-
|
||||||
|
- }
|
||||||
|
-
|
||||||
|
- // Tracking
|
||||||
|
- private void loadTracking() {
|
||||||
|
-
|
||||||
|
- NewRelic.withApplicationToken(NEWRELIC).start(this.getApplication());
|
||||||
|
-
|
||||||
|
- }
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
Loading…
Reference in a new issue