Skip to content

Commit 2da1eaf

Browse files
Seperate F-Droid flavour + fastlane structure
Signed-off-by: sunilpaulmathew <sunil.kde@gmail.com>
1 parent 4f399c4 commit 2da1eaf

18 files changed

Lines changed: 102 additions & 20 deletions

File tree

Credits.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Credits
2+
BusyBox Installer is, and as always, an open-source project which is ready to accept contributions from others. The application gladly received contributions from a number of people from time to time, mostly with translations. This page provides an <i>incomplete</i> list of people who contributed to this project, directly or indirectly.
3+
4+
## Code
5+
* [Grarak](https://github.com/Grarak), Kernel Adiutor, from where I took [Utils](https://raw.githubusercontent.com/Grarak/KernelAdiutor/master/app/src/main/java/com/grarak/kerneladiutor/utils/Utils.java), [RootUtils](https://raw.githubusercontent.com/Grarak/KernelAdiutor/master/app/src/main/java/com/grarak/kerneladiutor/utils/root/RootUtils.java) & [RootFile](https://raw.githubusercontent.com/Grarak/KernelAdiutor/master/app/src/main/java/com/grarak/kerneladiutor/utils/root/RootFile.java)
6+
* [topjohnwu](https://github.com/topjohnwu/), libsu, the library in which BusyBox Installer depending to handle root related tasks
7+
* [Lennoard Silva](https://github.com/Lennoard): contributed code to this project, especially in its early stage of development
8+
9+
## Binaries
10+
* [https://busybox.net/](https://busybox.net/), BusyBox Binaries
11+
12+
## Icon
13+
* [sajid_islam](https://t.me/sajid_islam), App Icon
14+
15+
## Translations
16+
* [FiestaLake](https://github.com/FiestaLake), Korean Translations
17+
* [Mikesew1320](https://github.com/Mikesew1320), Amharic & Russian Translations
18+
* [tsiflimagas](https://github.com/tsiflimagas), Greek Translations
19+
* [Lennoard Silva](https://github.com/Lennoard), Portuguese (Brazilian) Translations
20+
* [Hafitz Setya](https://github.com/breakdowns), Indonesian Translations
21+
* Jonas. Ned, Czech Translations
22+
* Many other people contributed via [POEditor](https://poeditor.com/join/project?hash=JsnaHsMpUk)
23+
24+
_If you think I missed your name, please let me know._

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![](banner.png)
1+
![](fastlane/metadata/android/en-US/images/featureGraphic.png)
22

33
[![](https://img.shields.io/badge/BusyBox--Installer-v2.1-green)](https://play.google.com/store/apps/details?id=com.smartpack.busyboxinstaller)
44
![](https://img.shields.io/github/languages/top/SmartPack/BusyBox-Installer)
@@ -46,15 +46,7 @@ If you like to appreciate my work, please consider donating to me (either via [P
4646
height="80">](https://ko-fi.com/sunilpaulmathew/)
4747

4848
## Credits
49-
* [Grarak](https://github.com/Grarak), Kernel Adiutor, from where I took [Utils](https://raw.githubusercontent.com/Grarak/KernelAdiutor/master/app/src/main/java/com/grarak/kerneladiutor/utils/Utils.java), [RootUtils](https://raw.githubusercontent.com/Grarak/KernelAdiutor/master/app/src/main/java/com/grarak/kerneladiutor/utils/root/RootUtils.java) & [RootFile](https://raw.githubusercontent.com/Grarak/KernelAdiutor/master/app/src/main/java/com/grarak/kerneladiutor/utils/root/RootFile.java)
50-
* [topjohnwu](https://github.com/topjohnwu/), libsu
51-
* [https://busybox.net/](https://busybox.net/), BusyBox Binaries
52-
* [Lennoard Silva](https://github.com/Lennoard), Code contributions/Portuguese (Brazilian) Translations
53-
* [FiestaLake](https://github.com/FiestaLake), Korean Translations
54-
* [Mikesew1320](https://github.com/Mikesew1320), Amharic & Russian Translations
55-
* [tsiflimagas](https://github.com/tsiflimagas), Greek Translations
56-
* [Hafitz Setya](https://github.com/breakdowns), Indonesian Translations
57-
* [sajid_islam](https://t.me/sajid_islam), App Icon
49+
A list of people who contributed to this project is available [here](Credits.md).
5850

5951
## License
6052

app/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ android {
3232
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
3333
}
3434
}
35+
36+
flavorDimensions "release"
37+
productFlavors {
38+
play {
39+
dimension "release"
40+
}
41+
fdroid {
42+
dimension "release"
43+
}
44+
}
45+
3546
compileOptions {
3647
sourceCompatibility = 1.8
3748
targetCompatibility = 1.8
@@ -44,7 +55,7 @@ repositories {
4455

4556
dependencies {
4657
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
47-
implementation 'com.android.billingclient:billing:3.0.2'
58+
playImplementation 'com.android.billingclient:billing:3.0.3'
4859
implementation "com.github.topjohnwu.libsu:core:3.0.2"
4960
implementation 'com.google.android.material:material:1.3.0'
5061
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.smartpack.busyboxinstaller.utils;
2+
3+
import android.content.Context;
4+
5+
import androidx.annotation.NonNull;
6+
7+
/*
8+
* Created by sunilpaulmathew <sunil.kde@gmail.com> on March 29, 2021
9+
*/
10+
public class Billing {
11+
12+
public static void launchDonationMenu(Context context) {
13+
Utils.launchUrl("https://smartpack.github.io/donation/", context);
14+
}
15+
16+
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
xmlns:tools="http://schemas.android.com/tools"
4-
package="com.smartpack.busyboxinstaller">
3+
package="com.smartpack.busyboxinstaller" >
54

65
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
76

@@ -10,10 +9,8 @@
109
android:icon="@mipmap/ic_launcher"
1110
android:label="@string/app_name"
1211
android:roundIcon="@mipmap/ic_launcher_round"
13-
android:supportsRtl="true"
1412
android:theme="@style/AppTheme"
15-
android:requestLegacyExternalStorage="true"
16-
tools:targetApi="q">
13+
android:supportsRtl="true" >
1714

1815
<activity android:name="com.smartpack.busyboxinstaller.MainActivity">
1916
<intent-filter>
@@ -23,7 +20,6 @@
2320
</intent-filter>
2421
</activity>
2522
<activity android:name=".utils.AboutActivity" />
26-
<activity android:name=".utils.BillingActivity" />
2723
</application>
2824

2925
</manifest>

app/src/main/java/com/smartpack/busyboxinstaller/MainActivity.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
import com.google.android.material.dialog.MaterialAlertDialogBuilder;
2929
import com.google.android.material.textview.MaterialTextView;
3030
import com.smartpack.busyboxinstaller.utils.AboutActivity;
31-
import com.smartpack.busyboxinstaller.utils.BillingActivity;
31+
import com.smartpack.busyboxinstaller.utils.Billing;
3232
import com.smartpack.busyboxinstaller.utils.RootUtils;
3333
import com.smartpack.busyboxinstaller.utils.Utils;
3434

@@ -138,8 +138,7 @@ protected void onCreate(Bundle savedInstanceState) {
138138
Utils.launchUrl("https://t.me/smartpack_kmanager", this);
139139
break;
140140
case 7:
141-
Intent donations = new Intent(this, BillingActivity.class);
142-
startActivity(donations);
141+
Billing.launchDonationMenu(this);
143142
break;
144143
case 8:
145144
Intent aboutDialog = new Intent(this, AboutActivity.class);

app/src/play/AndroidManifest.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.smartpack.busyboxinstaller" >
4+
5+
<application >
6+
<activity android:name=".utils.BillingActivity" />
7+
</application>
8+
</manifest>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package com.smartpack.busyboxinstaller.utils;
2+
3+
import android.content.Context;
4+
import android.content.Intent;
5+
6+
import androidx.annotation.NonNull;
7+
8+
/*
9+
* Created by sunilpaulmathew <sunil.kde@gmail.com> on March 29, 2021
10+
*/
11+
public class Billing {
12+
13+
public static void launchDonationMenu(Context context) {
14+
Intent donations = new Intent(context, BillingActivity.class);
15+
context.startActivity(donations);
16+
}
17+
18+
}

app/src/main/java/com/smartpack/busyboxinstaller/utils/BillingActivity.java renamed to app/src/play/java/com/smartpack/busyboxinstaller/utils/BillingActivity.java

File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Initial F-Droid release.

0 commit comments

Comments
 (0)