Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This means that you need two Git trackers in the same directory

## Using

You MUST be in the top level directory of the repository to execute any git commands now!
You MUST be in the top level directory of the repository to execute any git commands now!

You MUST now only modify the master branch with the `gitmaster` command rather than git, e.g. `gitmaster status`

Expand Down Expand Up @@ -93,13 +93,24 @@ Change the language for different language builds

Change the language for different language builds

### Building mobile apps

* ./bin/build-odi-cordova module1 en

Or

* ./bin/build-odi-cordova-all en

This will create the module in the right location and then symlink it to the `cordova/www` directory.

Once installed you can run all the usual Cordova commands to build and package the app. For example `cordova emulate ios` will run the app in the iOS emulator.

## Viewing and exporting modules

All modules are built into the modules/ dirctory.
All modules are built into the modules/ dirctory.

At the top level is the ODI build with the different languages.

There is also an eu directory for the eu-theme modules.

Each module can be compressed as a scorm package or be used natively using browser local storage to track progress.
There is also an eu directory for the eu-theme modules.

Each module can be compressed as a scorm package or be used natively using browser local storage to track progress.
19 changes: 11 additions & 8 deletions bin/build-odi-cordova
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ echo ""
sed -i -e "s/<\/head>/<script type=\"text\/javascript\" src=\"..\/cordova.js\"><\/script><script type=\"text\/javascript\" src=\"..\/cordova-odi.js\"><\/script><\/head>/g" src/index.html

echo "Hiding language selector in theme"
echo ""
echo ""
sed -i -e "s/country-select/bcountry-select/g" src/theme/default/templates/navigation.hbs

echo "Changing ownership"
Expand All @@ -59,7 +59,7 @@ echo "Updating image path"
echo ""
sed -i -e "s/course\/en\/images/course\/$2\/images/g" src/theme/default/less/header.less

echo "Changing video to native player"
echo "Changing video to native player"
echo ""
sed -i -e "s/iFrame-vimeo/media/g" src/course/$2/components.json
sed -i -e "s/instruction/binstruction/g" src/course/$2/components.json
Expand All @@ -81,11 +81,11 @@ do
done
if [ $2 == "en" ]
then
sed -i -e "s/'>Main/index.html'>Main/g" src/course/en/components.json
sed -i -e "s/'>Next/index.html'>Next/g" src/course/en/components.json
else
sed -i -e "s/'>Menu/index.html'>Menu/g" src/course/fr/components.json
sed -i -e "s/'>Prochain/index.html'>Prochain/g" src/course/fr/components.json
sed -i -e "s/'>Main/index.html'>Main/g" src/course/en/components.json
sed -i -e "s/'>Next/index.html'>Next/g" src/course/en/components.json
else
sed -i -e "s/'>Menu/index.html'>Menu/g" src/course/fr/components.json
sed -i -e "s/'>Prochain/index.html'>Prochain/g" src/course/fr/components.json
fi

echo "Building module";
Expand All @@ -104,7 +104,7 @@ sed -i -e "s/<script type=\"text\/javascript\" src=\"..\/cordova.js\"><\/script>

#echo "building scorm package"
#cd build
#zip -r course/$2/data/scorm.zip * >/dev/null
#zip -r course/$2/data/scorm.zip * >/dev/null
#cd ..

echo "Moving module into place"
Expand All @@ -113,3 +113,6 @@ echo "Moving module into place"
`cp -r build $OUTPATH/$2/$1`

`rm -fR build`

echo "Symlinking to the Cordova directory"
`ln -s $(pwd)/$OUTPATH/$2 $(pwd)/cordova/www`
1 change: 1 addition & 0 deletions cordova/.idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions cordova/.idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions cordova/.idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions cordova/.idea/cordova-app-hello-world.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions cordova/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions cordova/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions cordova/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions cordova/.idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions cordova/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading