123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?xml version='1.0.9' encoding='utf-8'?>
- <plugin id="cordova-plugin-dingxin-sso" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
- <name>SSOPlugin</name>
- <description>Southern power grid Cordova SSO Plugin</description>
- <keywords>cordova,sso</keywords>
- <repo>http://120.78.83.172/mobility/cordova-plugin/yi-dong-ying-yong.git</repo>
-
- <!--
- 动态设置url scheme。启动传参一定要实现该配置
- 请在项目的config.xml添加
- `
- <plugin name="cordova-plugin-dingxin-sso" spec="./myplugins/yi-dong-ying-yong">
- <variable name="URL_SCHEME" value="加密后的字符串" />
- </plugin>
- `
- 注意如果使用了 'cordova-plugin-inappbroswerwithheader' 插件,需要将value保持一致
- -->
- <preference name="URL_SCHEME" default="weixin.wuxiyi.com"/>
-
- <engines>
- <engine name="cordova" version=">=6.4.0"/>
- <engine name="cordova-android" version=">=6.0.0" />
- <engine name="cordova-ios" version=">=4.3.0" />
- </engines>
-
- <js-module name="SSOLoginPlugin" src="www/SSOLoginPlugin.js">
- <clobbers target="cordova.dingxin.sso" />
- </js-module>
-
- <!-- Android-->
- <platform name="android">
- <config-file target="res/xml/config.xml" parent="/*">
- <feature name="SSO">
- <param name="android-package" value="com.dingxin.cordova.SSOLoginPlugin" />
- </feature>
- </config-file>
-
- <config-file target="AndroidManifest.xml" parent="/*">
- <uses-permission android:name="android.permission.GET_TASKS" />
- <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
- <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
- <uses-permission android:name="android.permission.WAKE_LOCK" />
- <uses-permission android:name="android.permission.READ_CALENDAR" />
- <uses-permission android:name="android.permission.WRITE_CALENDAR" />
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
- <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
- <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS" />
- <uses-permission android:name="android.permission.VIBRATE" />
- <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />>
- <uses-permission android:name="android.intent.action.USER_PRESENT" />
- <uses-permission android:name="android.permission.RESTART_PACKAGES" />
- <uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
- <uses-permission android:name="android.permission.READ_LOGS" />
- <uses-permission android:name="android.permission.WRITE_SETTINGS" />
- </config-file>
- <lib-file src="src/android/appstore_sso-1.1.1.aar" target-dir="libs"/>
- <config-file target="AndroidManifest.xml" parent="application">
-
- <activity android:name="com.dingxin.cordova.SSOLoginPlugin"/>
- </config-file>
-
- <framework src="com.android.support:appcompat-v7:24.1.1"/>
- <!--需要Java7-->
- <source-file src="src/android/SSOLoginPlugin.java" target-dir="src/com/dingxin/cordova"/>
-
- </platform>
-
- <!-- iOS-->
- <platform name="ios">
- <config-file parent="/*" target="config.xml">
- <feature name="SSO">
- <param name="ios-package" value="SSOLoginPlugin" />
- </feature>
- </config-file>
-
- <header-file src="src/ios/SSOParameter.h" /> <!-- target-dir="src/com/dingxin/cordova" -->
- <source-file src="src/ios/SSOParameter.m" />
-
- <header-file src="src/ios/SSOLoginPlugin.h" />
- <source-file src="src/ios/SSOLoginPlugin.m" />
-
-
- <!--4A登录库-->
- <framework src="src/ios/Login4ASDK.framework" custom="true" />
-
- <framework src="UIKit.framework" />
- <framework src="Foundation.framework" />
-
- <framework src="CFNetwork.framework" />
- <framework src="CoreGraphics.framework" />
- <framework src="CoreTelephony.framework" />
-
- <framework src="MobileCoreServices.framework" />
- <framework src="Security.framework" />
- <framework src="SystemConfiguration.framework" />
-
- <framework src="libsqlite3.tbd" />
- <framework src="libsqlite3.0.tbd" />
- <framework src="libxml2.tbd" />
- <framework src="libz.1.tbd" />
- <framework src="libz.1.2.5.tbd" />
-
- <!-- info.Plist配置 -->
- <config-file platform="ios" target="*-Info.plist" parent="UIBackgroundModes"><!-- 后台 -->
- <array>
- <string>location</string>
- </array>
- </config-file>
-
- <!-- 手动设置 bundle id
- <config-file platform="ios" target="*-Info.plist" parent="CFBundleIdentifier">
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
- </config-file>-->
- <!-- info配置,ssv1需要配置url scheme-->
- <config-file platform="ios" target="*-Info.plist" parent="CFBundleURLTypes">
- <array>
- <dict>
- <key>CFBundleTypeRole</key>
- <string>Editor</string>
- <key>CFBundleURLSchemes</key>
- <array>
- <string>$URL_SCHEME</string>
- </array>
- </dict>
- </array>
- </config-file>
- </platform>
- </plugin>
|