-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves an issue related to git-lfs issues related to npm;
The file which exceeded the GitHub 100 MB file size limit is not split up into multiple smaller ones. Once the Wikitude Cordova plugin is added to a project, the files are merged back together. Signed-off-by: Andreas Schacherbauer <[email protected]>
- Loading branch information
1 parent
e6130cf
commit ca66f71
Showing
9 changed files
with
34 additions
and
5 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
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,31 @@ | ||
#!/bin/sh | ||
# | ||
# configure_wikitude_sdk_framework.sh | ||
# | ||
# Created by Andreas Schacherbauer on 07/24/17. | ||
# | ||
# | ||
|
||
set -e | ||
|
||
# Because the WikitudeSDK.framework contains a file larger 100 MB, this file is split up into multiple smaller ones. | ||
# Once the Wikitude Cordova plugin is installing, these files are combined again into a single file. | ||
# This is needed because linking the final application would fail otherwise. | ||
|
||
echo 'Reconstructing WikitudeSDK.framework content. In case this script fails, please contact Wikitude support.' | ||
|
||
# Find all occurences of the WikitudeSDK.framework in the Cordova application directory structure (The current working directory is the project root directory) | ||
find . -type d -name "WikitudeSDK.framework" | while read dir; do | ||
|
||
# Inside the WikitudeSDK.framework, all WikitudeSDK-* files need to be combined into a single one again | ||
SINGLE_ARCHITECTURE_SLICES_PATHS="$(find "${dir}" -name "WikitudeSDK-*" -print)" | ||
SINGLE_ARCHITECTURE_SLICES_PATHS=$(echo "$SINGLE_ARCHITECTURE_SLICES_PATHS" | sed 's|/Plugin |/Plugin\\ |g') # The project path might contain blanks. This should prepare the paths to be usable by `lipo` | ||
|
||
# ... this is done using `lipo` | ||
LIPO_COMMAND="$(xcrun --sdk iphoneos --find lipo) -create $SINGLE_ARCHITECTURE_SLICES_PATHS -output \"$dir\"/WikitudeSDK" | ||
eval $LIPO_COMMAND | ||
|
||
# After lipo is done, all WikitudeSDK-* files can be deleted | ||
RM_COMMAND="rm $SINGLE_ARCHITECTURE_SLICES_PATHS" | ||
eval $RM_COMMAND | ||
done |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.