Skip to content

Commit

Permalink
Resolves an issue related to git-lfs issues related to npm;
Browse files Browse the repository at this point in the history
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
AndreasSchacherbauerWikitude committed Jul 26, 2017
1 parent e6130cf commit ca66f71
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.wikitude.phonegap.wikitudeplugin",
"version": "6.1.0",
"version": "7.0.0",
"description": "Augmented Reality Wikitude SDK Plugin \n The Wikitude Cordova Plugin enables developers to embed an augmented reality view into their PhoneGap project. You can create a fully featured app with advanced augmented reality features, including image recognition, purely using HTML, CSS and JavaScript.\n ",
"cordova": {
"id": "",
Expand Down
3 changes: 2 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
<param name="ios-package" value="WTWikitudePlugin"/>
</feature>
</config-file>


<hook type="after_plugin_install" src="scripts/configure_wikitude_sdk_framework.sh" />

<!-- visible after installation -->
<info>
Expand Down
31 changes: 31 additions & 0 deletions scripts/configure_wikitude_sdk_framework.sh
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
3 changes: 0 additions & 3 deletions src/ios/WikitudeSDK.framework/WikitudeSDK

This file was deleted.

Binary file added src/ios/WikitudeSDK.framework/WikitudeSDK-arm64
Binary file not shown.
Binary file added src/ios/WikitudeSDK.framework/WikitudeSDK-armv7
Binary file not shown.
Binary file added src/ios/WikitudeSDK.framework/WikitudeSDK-armv7s
Binary file not shown.
Binary file added src/ios/WikitudeSDK.framework/WikitudeSDK-i386
Binary file not shown.
Binary file not shown.

0 comments on commit ca66f71

Please sign in to comment.