12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?xml version="1.0" encoding="utf-8"?>
- <plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
- id="cordova-plugin-semsx-launcher"
- version="1.0.0">
- <name>Hello Kotlin</name>
- <engines>
- <engine name="cordova" version=">=7.1.0"/>
- <engine name="cordova-android" version=">=7.0.0"/>
- </engines>
- <author email="young91@vip.qq.com">Young</author>
- <platform name="android"
- kotlin="1.2.30">
- <!-- Add Kotlin support -->
- <hook type="after_plugin_add" src="hooks/support-kotlin.js" />
- <hook type="after_platform_add" src="hooks/support-kotlin.js" />
- <framework src="org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.31" />
- <apply-plugin>kotlin-android-extensions</apply-plugin>
- <apply-plugin>kotlin-kapt</apply-plugin>
- <!-- Cleanup Kotlin source on uninstall -->
- <hook type="before_plugin_rm" src="hooks/on-uninstall.js" />
- <hook type="before_plugin_uninstall" src="hooks/on-uninstall.js" />
-
- <config-file target="config.xml" parent="/*">
- <custom-preference delete="true" name="android-manifest/application/activity[@android:name='MainActivity']" />
- </config-file>
- <config-file target="res/values/strings.xml" parent="/*">
- <string name="check_window">Lock Window</string>
- </config-file>
- <config-file parent="/manifest/application" target="AndroidManifest.xml">
- <service
- android:name="com.semsx.android.home.locker.CheckWindowStateService"
- android:enabled="true"
- android:exported="true"
- android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE" >
- <intent-filter>
- <action android:name="android.accessibilityservice.AccessibilityService" />
- </intent-filter>
- <meta-data
- android:name="android.accessibilityservice"
- android:resource="@xml/check_window_state"/>
- </service>
- </config-file>
- <source-file src="src/android/CheckWindowStateService.kt" target-dir="app/src/main/java/com/semsx/android/home/locker"/>
- <source-file src="src/android/check_window_state.xml" target-dir="app/src/main/res/xml"/>
- </platform>
- </plugin>
|