Skip to content

Commit 964d56d

Browse files
committed
removed billing
1 parent 6b0c90d commit 964d56d

26 files changed

+20
-1343
lines changed

app/src/main/java/com/candybar/dev/activities/MainActivity.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ public class MainActivity extends CandyBarMainActivity {
1111
@NonNull
1212
@Override
1313
public ActivityConfiguration onInit() {
14-
return new ActivityConfiguration()
15-
.setLicenseCheckerEnabled(License.isLicenseCheckerEnabled())
16-
.setLicenseKey(License.getLicenseKey())
17-
.setRandomString(License.getRandomString())
18-
.setDonationProductsId(License.getDonationProductsId())
19-
.setPremiumRequestProducts(License.getPremiumRequestProductsId(), License.getPremiumRequestProductsCount());
14+
return new ActivityConfiguration();
2015
}
2116
}

app/src/main/java/com/candybar/dev/licenses/License.java

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class License {
1313
*
1414
* NOTE: If you disable license checker you need to remove LICENSE_CHECK permission inside AndroidManifest.xml
1515
*/
16-
private static final boolean ENABLE_LICENSE_CHECKER = false;
1716

1817
/*
1918
* NOTE: If license checker is disabled (above), just ignore this
@@ -35,7 +34,6 @@ public class License {
3534
* Your license key
3635
* If your app hasn't published at play store, publish it first as beta, get license key
3736
*/
38-
private static final String LICENSE_KEY = BuildConfig.LICENSE_KEY;
3937

4038
/*
4139
* NOTE: Make sure your app name in project same as app name at play store listing
@@ -50,12 +48,6 @@ public class License {
5048
* So make sure to name it properly, like include number of icons
5149
* Format: new InAppBilling("premium request product id", number of icons)
5250
*/
53-
private static final InAppBilling[] PREMIUM_REQUEST_PRODUCTS = new InAppBilling[]{
54-
new InAppBilling("premium_1", 2),
55-
new InAppBilling("premium_2", 4),
56-
new InAppBilling("premium_3", 6),
57-
new InAppBilling("premium_4", 8)
58-
};
5951

6052
/*
6153
* NOTE: If donation disabled, just ignored this
@@ -65,46 +57,11 @@ public class License {
6557
* So make sure to name it properly
6658
* Format: new InAppBilling("donation product id")
6759
*/
68-
private static final InAppBilling[] DONATION_PRODUCT = new InAppBilling[]{
69-
new InAppBilling("donation.level_1"),
70-
new InAppBilling("donation.level_2"),
71-
new InAppBilling("donation.level_3")
72-
};
73-
74-
public static boolean isLicenseCheckerEnabled() {
75-
return ENABLE_LICENSE_CHECKER;
76-
}
77-
78-
public static String getLicenseKey() {
79-
return LICENSE_KEY;
80-
}
8160

8261
public static byte[] getRandomString() {
8362
return SALT;
8463
}
8564

86-
public static String[] getPremiumRequestProductsId() {
87-
String[] productId = new String[PREMIUM_REQUEST_PRODUCTS.length];
88-
for (int i = 0; i < PREMIUM_REQUEST_PRODUCTS.length; i++) {
89-
productId[i] = PREMIUM_REQUEST_PRODUCTS[i].getProductId();
90-
}
91-
return productId;
92-
}
9365

94-
public static int[] getPremiumRequestProductsCount() {
95-
int[] productCount = new int[PREMIUM_REQUEST_PRODUCTS.length];
96-
for (int i = 0; i < PREMIUM_REQUEST_PRODUCTS.length; i++) {
97-
productCount[i] = PREMIUM_REQUEST_PRODUCTS[i].getProductCount();
98-
}
99-
return productCount;
100-
}
101-
102-
public static String[] getDonationProductsId() {
103-
String[] productId = new String[DONATION_PRODUCT.length];
104-
for (int i = 0; i < DONATION_PRODUCT.length; i++) {
105-
productId[i] = DONATION_PRODUCT[i].getProductId();
106-
}
107-
return productId;
108-
}
10966

11067
}

library/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ dependencies {
8686
api 'androidx.appcompat:appcompat:1.3.1'
8787
api 'androidx.multidex:multidex:2.0.1'
8888
api 'com.google.android.apps.muzei:muzei-api:3.4.0'
89-
api 'com.android.billingclient:billing:4.0.0'
9089
api 'dev.jahir.KustomAPI:api:6369c37'
9190
api 'dev.jahir.KustomAPI:preset:6369c37'
9291

@@ -116,7 +115,6 @@ dependencies {
116115
implementation 'com.github.danimahardhika:cafebar:1.3.2'
117116
implementation 'com.github.danimahardhika.android-helpers:core:-SNAPSHOT'
118117
implementation 'com.github.danimahardhika.android-helpers:animation:0.1.0'
119-
implementation 'com.github.danimahardhika.android-helpers:license:0.1.0'
120118
implementation 'com.github.danimahardhika.android-helpers:permission:0.1.0'
121119
implementation 'com.github.danimahardhika:DrawMe:4a672e78fc'
122120
}

0 commit comments

Comments
 (0)