Skip to content

Commit 0d1c6c9

Browse files
committed
Make sure that the free Manifest also builds
1 parent 4be20dc commit 0d1c6c9

12 files changed

+92
-46
lines changed

app/src/free/AndroidManifest.xml

+66-35
Large diffs are not rendered by default.

app/src/main/AndroidManifest.xml

+4-3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
android:name="nl.hnogames.domoticz.premium.permission.MAPS_RECEIVE"
7070
android:protectionLevel="signature" />
7171

72+
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
73+
7274
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
7375
<application
7476
android:allowBackup="false"
@@ -91,12 +93,9 @@
9193
android:name="nl.hnogames.domoticz.service.NFCServiceActivity">
9294
<intent-filter>
9395
<action android:name="android.intent.action.VIEW" />
94-
9596
<category android:name="android.intent.category.DEFAULT" />
9697
<category android:name="android.intent.category.BROWSABLE" />
97-
9898
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
99-
<category android:name="android.intent.category.DEFAULT" />
10099
<data
101100
android:host="domoticz"
102101
android:scheme="app" />
@@ -418,9 +417,11 @@
418417
<meta-data
419418
android:name="com.google.android.geo.API_KEY"
420419
android:value="@string/google_maps_key" />
420+
421421
<meta-data
422422
android:name="com.google.android.gms.version"
423423
android:value="@integer/google_play_services_version" />
424+
424425
<meta-data
425426
android:name="com.google.android.gms.vision.DEPENDENCIES"
426427
android:value="barcode" />

app/src/main/java/nl/hnogames/domoticz/MainActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ protected void onCreate(Bundle savedInstanceState) {
190190
.addTestDevice("1AAE9D81347967A359E372B0445549DE")
191191
.addTestDevice("440E239997F3D1DD8BC59D0ADC9B5DB5")
192192
.addTestDevice("D6A4EE627F1D3912332E0BFCA8EA2AD2")
193-
.addTestDevice("6C2390A9FF8F555BD01BA560068CD366")
193+
.addTestDevice("2C114D01992840EC6BF853D44CB96754")
194194
.build();
195195
((AdView) findViewById(R.id.adView)).loadAd(adRequest);
196196
} else

app/src/main/java/nl/hnogames/domoticz/adapters/CamerasAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ private void setAdsLayout(DataObjectHolder holder) {
230230
.addTestDevice("440E239997F3D1DD8BC59D0ADC9B5DB5")
231231
.addTestDevice("D6A4EE627F1D3912332E0BFCA8EA2AD2")
232232
.addTestDevice("6C2390A9FF8F555BD01BA560068CD366")
233+
.addTestDevice("2C114D01992840EC6BF853D44CB96754")
233234
.build();
234235

235236
AdLoader adLoader = new AdLoader.Builder(mContext, mContext.getString(R.string.ad_unit_id))

app/src/main/java/nl/hnogames/domoticz/adapters/DashboardAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ private void setAdsLayout(DataObjectHolder holder) {
904904
.addTestDevice("440E239997F3D1DD8BC59D0ADC9B5DB5")
905905
.addTestDevice("D6A4EE627F1D3912332E0BFCA8EA2AD2")
906906
.addTestDevice("6C2390A9FF8F555BD01BA560068CD366")
907+
.addTestDevice("2C114D01992840EC6BF853D44CB96754")
907908
.build();
908909

909910
AdLoader adLoader = new AdLoader.Builder(context, context.getString(R.string.ad_unit_id))

app/src/main/java/nl/hnogames/domoticz/adapters/PlansAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ private void setAdsLayout(DataObjectHolder holder) {
181181
.addTestDevice("440E239997F3D1DD8BC59D0ADC9B5DB5")
182182
.addTestDevice("D6A4EE627F1D3912332E0BFCA8EA2AD2")
183183
.addTestDevice("6C2390A9FF8F555BD01BA560068CD366")
184+
.addTestDevice("2C114D01992840EC6BF853D44CB96754")
184185
.build();
185186

186187
AdLoader adLoader = new AdLoader.Builder(mContext, mContext.getString(R.string.ad_unit_id))

app/src/main/java/nl/hnogames/domoticz/adapters/SceneAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ private void setAdsLayout(DataObjectHolder holder) {
307307
.addTestDevice("440E239997F3D1DD8BC59D0ADC9B5DB5")
308308
.addTestDevice("D6A4EE627F1D3912332E0BFCA8EA2AD2")
309309
.addTestDevice("6C2390A9FF8F555BD01BA560068CD366")
310+
.addTestDevice("2C114D01992840EC6BF853D44CB96754")
310311
.build();
311312

312313
AdLoader adLoader = new AdLoader.Builder(context, context.getString(R.string.ad_unit_id))

app/src/main/java/nl/hnogames/domoticz/adapters/SwitchesAdapter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ private void setAdsLayout(DataObjectHolder holder) {
615615
.addTestDevice("1AAE9D81347967A359E372B0445549DE")
616616
.addTestDevice("440E239997F3D1DD8BC59D0ADC9B5DB5")
617617
.addTestDevice("D6A4EE627F1D3912332E0BFCA8EA2AD2")
618-
.addTestDevice("6C2390A9FF8F555BD01BA560068CD366")
618+
.addTestDevice("2C114D01992840EC6BF853D44CB96754")
619619
.build();
620620

621621
AdLoader adLoader = new AdLoader.Builder(context, context.getString(R.string.ad_unit_id))

app/src/main/java/nl/hnogames/domoticz/utils/UsefulBits.java

+12
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import android.content.Context;
2929
import android.content.Intent;
3030
import android.content.pm.ActivityInfo;
31+
import android.content.pm.PackageManager;
3132
import android.content.pm.ResolveInfo;
3233
import android.content.res.Configuration;
3334
import android.content.res.Resources;
@@ -606,6 +607,17 @@ public static void openPremiumAppStore(Context context) {
606607
}
607608
}
608609

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+
609621
public static void checkAPK(final Context context, final SharedPrefUtil mSharedPrefs) {
610622
if (context == null || mSharedPrefs == null)
611623
return; //should not happen

app/src/paid/AndroidManifest.xml

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
4848
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
4949
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
50+
<uses-permission android:name="com.google.android.gms.permission.AD_ID"/>
5051

5152
<supports-screens
5253
android:anyDensity="true"
@@ -107,12 +108,9 @@
107108
<activity android:exported="true" android:name="nl.hnogames.domoticz.service.NFCServiceActivity">
108109
<intent-filter>
109110
<action android:name="android.intent.action.VIEW" />
110-
111111
<category android:name="android.intent.category.DEFAULT" />
112112
<category android:name="android.intent.category.BROWSABLE" />
113-
114113
<action android:name="android.nfc.action.NDEF_DISCOVERED" />
115-
<category android:name="android.intent.category.DEFAULT" />
116114
<data
117115
android:host="domoticz"
118116
android:scheme="app" />

app/version.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
33
VERSION_CODE=620
44
VERSION_PATCH=320

domoticzapi/version.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Fri May 20 17:24:25 CEST 2022
1+
#Tue May 24 13:35:35 CEST 2022
22
VERSION_BUILD=3675
33
VERSION_CODE=254
44
VERSION_PATCH=254

0 commit comments

Comments
 (0)