-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in IOS-126-ios-no-submodule (pull request #10)
IOS-126 ios no submodule
- Loading branch information
Showing
10 changed files
with
76 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "BlinkID/src/ios/blinkid-ios"] | ||
path = BlinkID/src/ios/blinkid-ios | ||
url = [email protected]:BlinkID/blinkid-ios.git | ||
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
# enter into ios project folder | ||
cd src/ios/ | ||
|
||
# check if Microblink framework and bundle already exist | ||
if [ ! -d 'blinkid-ios' ] ; then | ||
|
||
VERSION='2.12.0' | ||
|
||
echo "Cloning repo with Microblink framework v${VERSION}" | ||
# clone blinkID repository | ||
# git clone "[email protected]:BlinkID/blinkid-ios.git" | ||
cd blinkid-ios | ||
git checkout "v${VERSION}" | ||
|
||
mv Microblink.framework ../Microblink.framework | ||
mv Microblink.bundle ../Microblink.bundle | ||
|
||
rm -rfv * | ||
|
||
mv ../Microblink.framework Microblink.framework | ||
mv ../Microblink.bundle Microblink.bundle | ||
|
||
cd .. | ||
|
||
fi | ||
|
||
cd ../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule blinkid-ios
deleted from
e04c87
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
#!/bin/bash | ||
|
||
APP_NAME="BlinkIdDemo" | ||
APP_ID="com.microblink.blinkid" | ||
|
||
# enter BlinkID framework folder | ||
cd BlinkID | ||
# init blinkid-ios using cococapods | ||
./initIOSFramework.sh | ||
# go back to root folder | ||
cd .. | ||
|
||
# remove any existing code | ||
rm -rf BlinkIdDemo | ||
rm -rf $APP_NAME | ||
|
||
# create a sample application | ||
ionic start --id=com.microblink.blinkid BlinkIdDemo ./www --v2 | ||
ionic start $APP_NAME blank --no-link | ||
|
||
# enter into demo project folder | ||
cd BlinkIdDemo | ||
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 plugin add ../BlinkID | ||
ionic cordova plugin add ../BlinkID | ||
|
||
# add ios and android support to the project | ||
ionic platform add android | ||
ionic platform add ios | ||
ionic cordova platform add android | ||
ionic cordova platform add ios | ||
|
||
# copy content of the www folder | ||
cp -f -r ../www/* ./src/ | ||
cp -f -r ../www/index.html ./src/ | ||
cp -f -r ../www/js ./www/ | ||
|
||
# build app | ||
ionic build android | ||
ionic build ios | ||
ionic build | ||
|
||
# how to run | ||
echo "To run iOS demo application open Xcode project BlinkIdDemo.xcodeproj" | ||
echo "To run Android demo application, position to BlinkIdDemo folder and type: ionic run android" | ||
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" |