Remove powermanagement plugin when building for iOS
This commit is contained in:
parent
05e2bb4b94
commit
7839d7c4b9
@ -22,6 +22,8 @@
|
||||
<icon src="res/logo.png" />
|
||||
<access launch-external="yes" origin="geo:*" />
|
||||
<platform name="android">
|
||||
<hook src="scripts/npm_prepare.sh" type="before_prepare" />
|
||||
|
||||
<allow-intent href="market:*" />
|
||||
<preference name="HeaderColor" value="#2196F3" />
|
||||
<resource-file src="/res/android/drawable/ic_launcher_background.xml" target="/app/src/main/res/drawable/ic_launcher_background.xml" />
|
||||
@ -34,6 +36,8 @@
|
||||
<icon background="res/android/drawable/ic_launcher_background.xml" density="xxxhdpi" foreground="res/android/drawable/ic_launcher_foreground.xml" src="res/android/mipmap-xxxhdpi/ic_launcher.png" />
|
||||
</platform>
|
||||
<platform name="ios">
|
||||
<hook src="scripts/npm_prepare.sh" type="before_prepare" />
|
||||
<hook src="scripts/remove_powermanagement.sh" type="before_prepare" />
|
||||
<preference name="StatusBarOverlaysWebView" value="false" />
|
||||
<preference name="DisallowOverscroll" value="true" />
|
||||
<allow-intent href="itms:*" />
|
||||
@ -54,5 +58,4 @@
|
||||
<string>Your location is used to provide proximity alerts and other app features. It is only transmitted when you submit a map calibration.</string>
|
||||
</edit-config>
|
||||
</platform>
|
||||
<hook src="scripts/npm_prepare.sh" type="before_prepare" />
|
||||
</widget>
|
||||
|
4
scripts/remove_powermanagement.sh
Executable file
4
scripts/remove_powermanagement.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
npm uninstall cordova-plugin-powermanagement-netsyms
|
||||
cordova plugin rm cordova-plugin-powermanagement-netsyms
|
Loading…
x
Reference in New Issue
Block a user