Skip to content

Commit

Permalink
Merge pull request #106 from BlinkID/update/sampes-init-scripts
Browse files Browse the repository at this point in the history
Update/sampes init scripts
  • Loading branch information
i1E authored Jun 7, 2019
2 parents c9e11bd + f547b54 commit 53c5580
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions BlinkID/src/android/libBlinkID.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down
2 changes: 1 addition & 1 deletion initCordovaDemoApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions initIonicDemoApp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 53c5580

Please sign in to comment.