File tree 12 files changed +92
-46
lines changed
java/nl/hnogames/domoticz
12 files changed +92
-46
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 69
69
android : name =" nl.hnogames.domoticz.premium.permission.MAPS_RECEIVE"
70
70
android : protectionLevel =" signature" />
71
71
72
+ <uses-permission android : name =" com.google.android.gms.permission.AD_ID" />
73
+
72
74
<uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
73
75
<application
74
76
android : allowBackup =" false"
91
93
android : name =" nl.hnogames.domoticz.service.NFCServiceActivity" >
92
94
<intent-filter >
93
95
<action android : name =" android.intent.action.VIEW" />
94
-
95
96
<category android : name =" android.intent.category.DEFAULT" />
96
97
<category android : name =" android.intent.category.BROWSABLE" />
97
-
98
98
<action android : name =" android.nfc.action.NDEF_DISCOVERED" />
99
- <category android : name =" android.intent.category.DEFAULT" />
100
99
<data
101
100
android : host =" domoticz"
102
101
android : scheme =" app" />
418
417
<meta-data
419
418
android : name =" com.google.android.geo.API_KEY"
420
419
android : value =" @string/google_maps_key" />
420
+
421
421
<meta-data
422
422
android : name =" com.google.android.gms.version"
423
423
android : value =" @integer/google_play_services_version" />
424
+
424
425
<meta-data
425
426
android : name =" com.google.android.gms.vision.DEPENDENCIES"
426
427
android : value =" barcode" />
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ protected void onCreate(Bundle savedInstanceState) {
190
190
.addTestDevice ("1AAE9D81347967A359E372B0445549DE" )
191
191
.addTestDevice ("440E239997F3D1DD8BC59D0ADC9B5DB5" )
192
192
.addTestDevice ("D6A4EE627F1D3912332E0BFCA8EA2AD2" )
193
- .addTestDevice ("6C2390A9FF8F555BD01BA560068CD366 " )
193
+ .addTestDevice ("2C114D01992840EC6BF853D44CB96754 " )
194
194
.build ();
195
195
((AdView ) findViewById (R .id .adView )).loadAd (adRequest );
196
196
} else
Original file line number Diff line number Diff line change @@ -230,6 +230,7 @@ private void setAdsLayout(DataObjectHolder holder) {
230
230
.addTestDevice ("440E239997F3D1DD8BC59D0ADC9B5DB5" )
231
231
.addTestDevice ("D6A4EE627F1D3912332E0BFCA8EA2AD2" )
232
232
.addTestDevice ("6C2390A9FF8F555BD01BA560068CD366" )
233
+ .addTestDevice ("2C114D01992840EC6BF853D44CB96754" )
233
234
.build ();
234
235
235
236
AdLoader adLoader = new AdLoader .Builder (mContext , mContext .getString (R .string .ad_unit_id ))
Original file line number Diff line number Diff line change @@ -904,6 +904,7 @@ private void setAdsLayout(DataObjectHolder holder) {
904
904
.addTestDevice ("440E239997F3D1DD8BC59D0ADC9B5DB5" )
905
905
.addTestDevice ("D6A4EE627F1D3912332E0BFCA8EA2AD2" )
906
906
.addTestDevice ("6C2390A9FF8F555BD01BA560068CD366" )
907
+ .addTestDevice ("2C114D01992840EC6BF853D44CB96754" )
907
908
.build ();
908
909
909
910
AdLoader adLoader = new AdLoader .Builder (context , context .getString (R .string .ad_unit_id ))
Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ private void setAdsLayout(DataObjectHolder holder) {
181
181
.addTestDevice ("440E239997F3D1DD8BC59D0ADC9B5DB5" )
182
182
.addTestDevice ("D6A4EE627F1D3912332E0BFCA8EA2AD2" )
183
183
.addTestDevice ("6C2390A9FF8F555BD01BA560068CD366" )
184
+ .addTestDevice ("2C114D01992840EC6BF853D44CB96754" )
184
185
.build ();
185
186
186
187
AdLoader adLoader = new AdLoader .Builder (mContext , mContext .getString (R .string .ad_unit_id ))
Original file line number Diff line number Diff line change @@ -307,6 +307,7 @@ private void setAdsLayout(DataObjectHolder holder) {
307
307
.addTestDevice ("440E239997F3D1DD8BC59D0ADC9B5DB5" )
308
308
.addTestDevice ("D6A4EE627F1D3912332E0BFCA8EA2AD2" )
309
309
.addTestDevice ("6C2390A9FF8F555BD01BA560068CD366" )
310
+ .addTestDevice ("2C114D01992840EC6BF853D44CB96754" )
310
311
.build ();
311
312
312
313
AdLoader adLoader = new AdLoader .Builder (context , context .getString (R .string .ad_unit_id ))
Original file line number Diff line number Diff line change @@ -615,7 +615,7 @@ private void setAdsLayout(DataObjectHolder holder) {
615
615
.addTestDevice ("1AAE9D81347967A359E372B0445549DE" )
616
616
.addTestDevice ("440E239997F3D1DD8BC59D0ADC9B5DB5" )
617
617
.addTestDevice ("D6A4EE627F1D3912332E0BFCA8EA2AD2" )
618
- .addTestDevice ("6C2390A9FF8F555BD01BA560068CD366 " )
618
+ .addTestDevice ("2C114D01992840EC6BF853D44CB96754 " )
619
619
.build ();
620
620
621
621
AdLoader adLoader = new AdLoader .Builder (context , context .getString (R .string .ad_unit_id ))
Original file line number Diff line number Diff line change 28
28
import android .content .Context ;
29
29
import android .content .Intent ;
30
30
import android .content .pm .ActivityInfo ;
31
+ import android .content .pm .PackageManager ;
31
32
import android .content .pm .ResolveInfo ;
32
33
import android .content .res .Configuration ;
33
34
import android .content .res .Resources ;
@@ -606,6 +607,17 @@ public static void openPremiumAppStore(Context context) {
606
607
}
607
608
}
608
609
610
+ public static boolean checkPremiumLicense (final Context context , final SharedPrefUtil mSharedPrefs ) {
611
+ PackageManager manager = context .getPackageManager ();
612
+ if (manager .checkSignatures ("nl.hnogames.domoticz" , "nl.hnogames.domoticz.premium" )
613
+ == PackageManager .SIGNATURE_MATCH ) {
614
+ return true ;
615
+ }
616
+ else {
617
+ return false ;
618
+ }
619
+ }
620
+
609
621
public static void checkAPK (final Context context , final SharedPrefUtil mSharedPrefs ) {
610
622
if (context == null || mSharedPrefs == null )
611
623
return ; //should not happen
Original file line number Diff line number Diff line change 47
47
<uses-permission android : name =" android.permission.ACCESS_FINE_LOCATION" />
48
48
<uses-permission android : name =" android.permission.ACCESS_COARSE_LOCATION" />
49
49
<uses-permission android : name =" android.permission.ACCESS_BACKGROUND_LOCATION" />
50
+ <uses-permission android : name =" com.google.android.gms.permission.AD_ID" />
50
51
51
52
<supports-screens
52
53
android : anyDensity =" true"
107
108
<activity android : exported =" true" android : name =" nl.hnogames.domoticz.service.NFCServiceActivity" >
108
109
<intent-filter >
109
110
<action android : name =" android.intent.action.VIEW" />
110
-
111
111
<category android : name =" android.intent.category.DEFAULT" />
112
112
<category android : name =" android.intent.category.BROWSABLE" />
113
-
114
113
<action android : name =" android.nfc.action.NDEF_DISCOVERED" />
115
- <category android : name =" android.intent.category.DEFAULT" />
116
114
<data
117
115
android : host =" domoticz"
118
116
android : scheme =" app" />
Original file line number Diff line number Diff line change 1
- # Fri May 20 17:24:25 CEST 2022
2
- VERSION_BUILD =8738
1
+ # Tue May 24 13:35:35 CEST 2022
2
+ VERSION_BUILD =8760
3
3
VERSION_CODE =620
4
4
VERSION_PATCH =320
Original file line number Diff line number Diff line change 1
- # Fri May 20 17:24:25 CEST 2022
1
+ # Tue May 24 13:35:35 CEST 2022
2
2
VERSION_BUILD =3675
3
3
VERSION_CODE =254
4
4
VERSION_PATCH =254
You can’t perform that action at this time.
0 commit comments