@@ -13,7 +13,6 @@ public class License {
13
13
*
14
14
* NOTE: If you disable license checker you need to remove LICENSE_CHECK permission inside AndroidManifest.xml
15
15
*/
16
- private static final boolean ENABLE_LICENSE_CHECKER = false ;
17
16
18
17
/*
19
18
* NOTE: If license checker is disabled (above), just ignore this
@@ -35,7 +34,6 @@ public class License {
35
34
* Your license key
36
35
* If your app hasn't published at play store, publish it first as beta, get license key
37
36
*/
38
- private static final String LICENSE_KEY = BuildConfig .LICENSE_KEY ;
39
37
40
38
/*
41
39
* NOTE: Make sure your app name in project same as app name at play store listing
@@ -50,12 +48,6 @@ public class License {
50
48
* So make sure to name it properly, like include number of icons
51
49
* Format: new InAppBilling("premium request product id", number of icons)
52
50
*/
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
- };
59
51
60
52
/*
61
53
* NOTE: If donation disabled, just ignored this
@@ -65,46 +57,11 @@ public class License {
65
57
* So make sure to name it properly
66
58
* Format: new InAppBilling("donation product id")
67
59
*/
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
- }
81
60
82
61
public static byte [] getRandomString () {
83
62
return SALT ;
84
63
}
85
64
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
- }
93
65
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
- }
109
66
110
67
}
0 commit comments