Skip to content

Commit

Permalink
chore(android): adds android platform build information
Browse files Browse the repository at this point in the history
Adds config file setup, required permissions, and dependencies so that cordova can build the android
project.
  • Loading branch information
willhay committed Jul 27, 2016
1 parent 69fe4e6 commit eae1887
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions plugin.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,28 @@
<clobbers target="QRScanner" />
</js-module>

<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="QRScanner">
<param name="android-package" value="com.bitpay.cordova.qrscanner.QRScanner"/>
</feature>
</config-file>
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA" android:required="false" />
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<meta-data
android:name="com.google.android.gms.vision.DEPENDENCIES"
android:value="barcode" />
</config-file>
<source-file src="src/android/CameraPreview.java" target-dir="src/com/bitpay/cordova/qrscanner"/>
<source-file src="src/android/QRScanner.java" target-dir="src/com/bitpay/cordova/qrscanner"/>
<dependency id="cordova-plugin-compat" version="^1.0.0" />
<framework src="src/android/qrscanner.gradle" custom="true" type="gradleReference"/>
</platform>

<platform name="ios">
<config-file target="config.xml" parent="/*">
<feature name="QRScanner">
Expand Down

0 comments on commit eae1887

Please sign in to comment.