diff --git a/BlinkID/src/android/libBlinkID.gradle b/BlinkID/src/android/libBlinkID.gradle index 23683ad..697dbf0 100644 --- a/BlinkID/src/android/libBlinkID.gradle +++ b/BlinkID/src/android/libBlinkID.gradle @@ -5,9 +5,8 @@ repositories { } dependencies { - implementation "com.android.support:appcompat-v7:27.1.1" implementation('com.microblink:blinkid:4.9.0@aar') { - transitive = false + transitive = true } } diff --git a/initCordovaDemoApp.sh b/initCordovaDemoApp.sh index 0a8c2c1..15a1771 100755 --- a/initCordovaDemoApp.sh +++ b/initCordovaDemoApp.sh @@ -19,7 +19,7 @@ cd $APP_NAME cordova plugin add ../BlinkID --variable CAMERA_USAGE_DESCRIPTION="Camera permission is required for automated scanning" # add ios and android support to the project -cordova platform add android@7 +cordova platform add android@8 cordova platform add ios # copy content of the www folder diff --git a/initIonicDemoApp.sh b/initIonicDemoApp.sh index c82ac46..7cd022f 100755 --- a/initIonicDemoApp.sh +++ b/initIonicDemoApp.sh @@ -12,24 +12,24 @@ ionic start $APP_NAME blank --no-link # enter into demo project folder cd $APP_NAME -# change the name and id of the application -sed -i "" "s/io.ionic.starter/$APP_ID/" config.xml -sed -i "" "s/MyApp/$APP_NAME/" config.xml - # add the BlinkID plugin ionic cordova plugin add ../BlinkID # add ios and android support to the project -ionic cordova platform add android@7 +ionic cordova platform add android@8 ionic cordova platform add ios +# build app +ionic build + +# change the name and id of the application +sed -i "" "s/io.ionic.starter/$APP_ID/" config.xml +sed -i "" "s/MyApp/$APP_NAME/" config.xml + # copy content of the www folder cp -f -r ../www/index.html ./src/ cp -f -r ../www/js ./www/ -# build app -ionic build - # how to run echo "To run iOS demo application open Xcode project $APP_NAME.xcodeproj" echo "To run Android demo application, position to $APP_NAME folder and type: ionic cordova run android" \ No newline at end of file