Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit 8de8058

Browse files
committed
Fixed Readme
Fixed path errors which occured when following the instructions in the README.md for setting up a project. Signed-off-by: Markus Geilehner <markus@geilehner.io>
1 parent 69dfcba commit 8de8058

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sample-ionic/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ allprojects {
3232
repositories {
3333
flatDir {
3434
// Search path for Mobile Capture libs
35-
dirs '../../../libs/android'
35+
dirs '../../libs/android'
3636
}
3737
google()
3838
jcenter()
@@ -64,7 +64,7 @@ android {
6464
sourceSets {
6565
main {
6666
// Mobile Capture assets
67-
assets.srcDirs += ['../../../assets']
67+
assets.srcDirs += ['../../assets']
6868
}
6969
}
7070
}
@@ -92,7 +92,7 @@ post_install do |installer|
9292
9393
# Settings to use Mobile Capture SDK.
9494
config.build_settings['ENABLE_BITCODE'] = "NO"
95-
config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ../../../../libs/ios"
95+
config.build_settings['FRAMEWORK_SEARCH_PATHS'] = "$(inherited) ../../../libs/ios"
9696
end
9797
end
9898
end
@@ -101,22 +101,22 @@ end
101101
To add the license file, the resource files and set up the copying rules, in **Build Phases** add one more Run Script phase. The **copy_assets.py** script, added to the phase, will automatically copy all resource files to corresponding destinations and add necessary dictionaries.
102102

103103
```
104-
python "${SRCROOT}/../../../assets/copy_assets.py"
105-
cp ../../../assets/MobileCapture.License" $TARGET_BUILD_DIR/$WRAPPER_NAME/"
104+
python "${SRCROOT}/../../assets/copy_assets.py"
105+
cp "${SRCROOT}/../../assets/MobileCapture.License" "${TARGET_BUILD_DIR}/${WRAPPER_NAME}/"
106106
```
107107

108108
In **Build Phases**, add a new **Run Script** phase. Run the **copy_frameworks.sh** script that removes the frameworks for the non-active CPU architectures (the complete list depends on the project settings), and sign the resulting framework. This is a required step before uploading your application to App Store.
109109

110110
```
111-
/bin/sh "${SRCROOT}/../../../libs/ios/copy_frameworks.sh"
111+
/bin/sh "${SRCROOT}/../../libs/ios/copy_frameworks.sh"
112112
```
113113

114114
Select your project in the **Target** group and open the **Build Settings** tab. In the **Search Paths** section add to the **Framework Search Paths** the following path:
115115
```
116-
../../../libs/ios
116+
"../../libs/ios"
117117
```
118118

119-
On the **Build Options** tab set **Enable Bitcode** option to **No**.
119+
On the **Build Settings** tab set **Enable Bitcode** option to **No**.
120120

121121
In the **info.plist** file add permission for working with camera and gallery if necessary.
122122

0 commit comments

Comments
 (0)