Advertisement
Guest User

plugin.xml

a guest
Jul 27th, 2015
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.36 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
  3.        xmlns:android="http://schemas.android.com/apk/res/android"
  4.        id="cordova.plugin.googleplus"
  5.        version="3.0.0">
  6.  
  7.   <name>Google+</name>
  8.  
  9.   <description>Use your Google account to authenticate with the app.</description>
  10.  
  11.   <license>MIT</license>
  12.  
  13.   <engines>
  14.     <engine name="cordova" version=">=3.3.0"/>
  15.   </engines>
  16.  
  17.   <js-module src="www/GooglePlus.js" name="GooglePlus">
  18.     <clobbers target="window.plugins.googleplus" />
  19.   </js-module>
  20.  
  21.   <!-- android -->
  22.   <platform name="android">
  23.  
  24.     <framework src="com.google.android.gms:play-services-plus:+" />
  25.     <framework src="com.google.android.gms:play-services-identity:+" />
  26.  
  27.     <config-file target="res/xml/config.xml" parent="/*">
  28.       <feature name="GooglePlus">
  29.         <param name="android-package" value="nl.xservices.plugins.GooglePlus" />
  30.         <param name="onload" value="true" />
  31.       </feature>
  32.       <access origin="https://accounts.google.com/*" />
  33.     </config-file>
  34.  
  35.     <config-file target="AndroidManifest.xml" parent="/manifest">
  36.       <uses-permission android:name="android.permission.GET_ACCOUNTS" />
  37.       <uses-permission android:name="android.permission.USE_CREDENTIALS" />
  38.     </config-file>
  39.  
  40.     <source-file src="src/android/GooglePlus.java" target-dir="src/nl/xservices/plugins"/>
  41.   </platform>
  42.  
  43.   <!-- ios -->
  44.   <platform name="ios">
  45.  
  46.     <config-file target="config.xml" parent="/*">
  47.       <feature name="GooglePlus">
  48.         <param name="ios-package" value="GooglePlus"/>
  49.         <param name="onload" value="true" />
  50.       </feature>
  51.       <access origin="https://accounts.google.com/*" />
  52.     </config-file>
  53.  
  54.     <header-file src="src/ios/GooglePlus.h"/>
  55.     <source-file src="src/ios/GooglePlus.m"/>
  56.  
  57.     <config-file target="*-Info.plist" parent="CFBundleURLTypes">
  58.       <array>
  59.         <dict>
  60.           <key>CFBundleTypeRole</key>
  61.           <string>Editor</string>
  62.           <key>CFBundleURLName</key>
  63.           <string>$PACKAGE_NAME</string>
  64.           <key>CFBundleURLSchemes</key>
  65.           <array>
  66.             <string>$PACKAGE_NAME</string>
  67.           </array>
  68.         </dict>
  69.         <dict>
  70.             <key>CFBundleTypeRole</key>
  71.             <string>Editor</string>
  72.             <key>CFBundleURLName</key>
  73.             <string>REVERSED_CLIENT_ID</string>
  74.             <key>CFBundleURLSchemes</key>
  75.             <array>
  76.                 <string>$REVERSED_CLIENT_ID</string>
  77.             </array>
  78.         </dict>
  79.       </array>
  80.     </config-file>
  81.  
  82.     <!-- Google+ framework -->
  83. <!--    <framework src="src/ios/libs/GooglePlus.framework" custom="true" />-->
  84.     <framework src="src/ios/libs/GoogleOpenSource.framework" custom="true" />
  85.     <framework src="src/ios/libs/GoogleSignIn.framework" custom="true" />
  86.  
  87.     <!-- System frameworks -->
  88.     <framework src="AddressBook.framework" weak="true" />
  89.     <framework src="CoreMotion.framework" weak="true" />
  90.     <framework src="CoreText.framework" weak="true" />
  91.     <framework src="CoreLocation.framework" weak="true" />
  92.     <framework src="MediaPlayer.framework" weak="true" />
  93.     <framework src="Security.framework" weak="true" />
  94.     <framework src="StoreKit.framework" weak="true" />
  95.     <framework src="SystemConfiguration.framework" weak="true" />
  96.  
  97.   </platform>
  98.  
  99. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement