From 3c725775774fbe00215fba4d995b72d121cde242 Mon Sep 17 00:00:00 2001 From: TuxPaper <725353+TuxPaper@users.noreply.github.com> Date: Thu, 5 Oct 2017 10:36:44 -0700 Subject: [PATCH] Metadata for new app, BiglyBT, com.biglybt.android.client --- metadata/com.biglybt.android.client.txt | 30 ++++++++++++++ .../noDexClassLoader.patch | 41 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 metadata/com.biglybt.android.client.txt create mode 100644 metadata/com.biglybt.android.client/noDexClassLoader.patch diff --git a/metadata/com.biglybt.android.client.txt b/metadata/com.biglybt.android.client.txt new file mode 100644 index 0000000000..4c19b490e4 --- /dev/null +++ b/metadata/com.biglybt.android.client.txt @@ -0,0 +1,30 @@ +Categories:Internet +License:GPL-2.0+ +Web Site:https://www.biglybt.com +Source Code:https://github.com/BiglySoftware/BiglyBT-Android +Issue Tracker:https://github.com/BiglySoftware/BiglyBT-Android/issues +Donate:https://www.biglybt.com/donation/donate.php +Bitcoin:1BiGLYBT38ttJhvZkjGc5mCw5uKoRHcUmr + +Name: BiglyBT, Torrent Downloader +Auto Name:BiglyBT + +Repo Type:git +Repo:https://github.com/BiglySoftware/BiglyBT-Android.git + +Build:1.1.0,9 + commit=v1.1.0 + subdir=BiglyBT + patch=noDexClassLoader.patch + gradle=CoreFlavorNogaFlavor + prebuild=sed -i -e '/gaFlavorCompile/d; /dexcount/d; /google-services/d' build.gradle && \ + sed -i -e '/google-services/d' ../build.gradle + +Maintainer Notes: +Repo has metadata structure for description, title, images, etc +. + +Auto Update Mode:Version +-fdroid v%v +Update Check Mode:Tags ^v[0-9.]*$ +Current Version:1.1.0 +Current Version Code:9 diff --git a/metadata/com.biglybt.android.client/noDexClassLoader.patch b/metadata/com.biglybt.android.client/noDexClassLoader.patch new file mode 100644 index 0000000000..5deb0ec75a --- /dev/null +++ b/metadata/com.biglybt.android.client/noDexClassLoader.patch @@ -0,0 +1,41 @@ +--- a/BiglyBT/src/coreFlavor/java/com/biglybt/android/core/az/PlatformManagerImpl.java ++++ b/BiglyBT/src/coreFlavor/java/com/biglybt/android/core/az/PlatformManagerImpl.java +@@ -37,8 +37,6 @@ + import android.os.Environment; + import android.util.Log; + +-import dalvik.system.DexClassLoader; +- + public class PlatformManagerImpl + implements PlatformManager + { +@@ -315,29 +313,6 @@ + Log.i("Core", class_name + "] dex_path=" + dex_path); + } + +- String tmp = AETemporaryFileHandler.getTempDirectory().getAbsolutePath(); +- +- DexClassLoader dex_Loader = new DexClassLoader(dex_path, tmp, null, +- VuzeFile.class.getClassLoader()); +- +- return (dex_Loader.loadClass(class_name)); +- +- /* +- try{ +- Class cla = Class.forName( "dalvik.system.DexClassLoader" ); +- +- Object dcl = cla.getConstructor( +- new Class[]{ String.class, String.class, String.class, ClassLoader.class }).newInstance( +- new Object[]{ dex_path, tmp, null, VuzeFile.class.getClassLoader() }); +- +- Method method = cla.getMethod( "loadClass", new Class[]{ String.class } ); +- +- return((Class)method.invoke( dcl,new Object[]{ class_name })); +- +- }catch( Throwable e ){ +- e.printStackTrace(); +- } +- */ + } + + return (loader.loadClass(class_name));