Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • cordeliaze/cesium
  • pfouque06/cesium
  • wellno1/cesium
  • 1000i100/cesium
  • vincentux/cesium
  • calbasi/cesium
  • thomasbromehead/cesium
  • matograine/cesium
  • clients/cesium-grp/cesium
  • cedricmenec/cesium
  • Pamplemousse/cesium
  • etienneleba/cesium
  • tnntwister/cesium
  • scanlegentil/cesium
  • morvanc/cesium
  • yyy/cesium
  • Axce/cesium
  • Bertrandbenj/cesium
  • Lupus/cesium
  • elmau/cesium
  • MartinDelille/cesium
  • tykayn/cesium
  • numeropi/cesium
  • Vivakvo/cesium
  • pokapow/cesium
  • pini-gh/cesium
  • anam/cesium
  • RavanH/cesium
  • bpresles/cesium
  • am97/cesium
  • tuxmain/cesium
  • jytou/cesium
  • oliviermaurice/cesium
  • 666titi999/cesium
  • Yvv/cesium
35 results
Show changes
Showing
with 1073 additions and 296 deletions
{
"compileOnSave": false
}
{ {
"name": "cesium", "name": "cesium",
"version": "1.4.2", "version": "1.7.14",
"description": "Cesium Wallet for G1 currency", "description": "Cesium Wallet for G1 libre currency",
"author": "Benoit Lavenier <benoit.lavenier@e-is.pro>",
"license": "AGPL-3.0",
"homepage": "https://cesium.app",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@git.duniter.org:clients/cesium/cesium.git" "url": "git@git.duniter.org:clients/cesium/cesium.git"
}, },
"scripts": { "scripts": {
"postinstall": "bower install --allow-root && rm hooks/minify-conf.json hooks/uglify-config.json hooks/after_prepare/ionic-minify.js hooks/after_prepare/uglify.js", "clean": "gulp clean webClean webExtClean && rm -rf dist/web dist/android && rm -f desktop/**/cesium-*.deb desktop/**/cesium-*.exe platforms/android/**/*.apk",
"install-platforms": "ionic state restore", "postinstall": "node scripts/node/postinstall.js",
"gulp": "gulp",
"lint": "gulp lint",
"install-platforms": "ionic cordova prepare",
"start": "ionic serve", "start": "ionic serve",
"start:webExt": "gulp webExtCompile && web-ext run --source-dir ./dist/web/ext/ --devtools",
"start:android": "ionic cordova run android --color",
"docker:build": "sudo docker build . -t cesium/release", "docker:build": "sudo docker build . -t cesium/release",
"docker:run": "sudo docker run -ti --rm -p 8100:8100 -p 35729:35729 -v .:/cesium:rw cesium/release", "docker:run": "sudo docker run -ti --rm -p 8100:8100 -p 35729:35729 -v .:/cesium:rw cesium/release",
"build:web": "config --env default && gulp build:web --release" "build": "gulp build",
"build:web": "gulp config --env default && gulp webBuild --release",
"build:webExt": "gulp config --env default && gulp webExtBuild --release",
"build:android": "ionic cordova build android --warning-mode=none --color --release -- -- --packageType=apk",
"build:ios": "ionic cordova build ios --warning-mode=none --color --release"
}, },
"keywords": [ "keywords": [
"duniter", "duniter",
"cesium", "cesium",
"g1",
"ionic", "ionic",
"angular", "angularjs",
"cordova", "cordova",
"crypto-currency" "crypto-currency"
], ],
"author": "Benoit Lavenier <benoit.lavenier@e-is.pro>",
"license": "AGPL-3.0",
"readmeFilename": "README.md", "readmeFilename": "README.md",
"bugs": { "bugs": {
"url": "https://git.duniter.org/clients/cesium-grp/cesium/issues", "url": "https://git.duniter.org/clients/cesium-grp/cesium/issues",
"new": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new" "new": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
}, },
"dependencies": { "dependencies": {
"cordova": "^7.1.0", "@bower_components/Leaflet.EasyButton": "CliffCloud/Leaflet.EasyButton#v2.4.0",
"cordova-android": "^6.2.3", "@bower_components/Leaflet.FeatureGroup.SubGroup": "ghybs/Leaflet.FeatureGroup.SubGroup#v0.1.2",
"cordova-ios": "^4.5.5", "@bower_components/Leaflet.awesome-markers": "lvoogdt/Leaflet.awesome-markers#v2.0.2",
"cordova-plugin-camera": "^2.4.1", "@bower_components/aes-js": "ricmoo/aes-js#v3.1.2",
"cordova-plugin-compat": "^1.1.0", "@bower_components/angular": "angular/bower-angular#v1.5.11",
"cordova-plugin-console": "^1.0.7", "@bower_components/angular-animate": "angular/bower-angular-animate#v1.5.11",
"cordova-plugin-crosswalk-webview": "^2.3.0", "@bower_components/angular-bind-notifier": "aeisenberg/angular-bind-notifier#v1.1.11",
"cordova-plugin-device": "^1.1.6", "@bower_components/angular-cache": "jmdobry/angular-cache#4.6.0",
"cordova-plugin-dialogs": "^1.3.3", "@bower_components/angular-chart.js": "jtblin/angular-chart#1.1.1",
"cordova-plugin-inappbrowser": "^1.7.1", "@bower_components/angular-expose-api": "duniter-cesium/angular-expose-api#0.3.1",
"cordova-plugin-minisodium": "^1.0.0", "@bower_components/angular-file-saver": "alferov/angular-file-saver#1.1.3",
"cordova-plugin-secure-storage": "^2.6.8", "@bower_components/angular-fullscreen-toggle": "duniter-cesium/angular-fullscreen-toggle#1.0.4",
"cordova-plugin-splashscreen": "^3.2.2", "@bower_components/angular-image-crop": "duniter-cesium/angular-image-crop#v2.0.2",
"cordova-plugin-statusbar": "^2.4.2", "@bower_components/angular-leaflet-directive": "duniter-cesium/angular-leaflet-directive#0.10.1",
"cordova-plugin-vibration": "^2.1.5", "@bower_components/angular-messages": "angular/bower-angular-messages#v1.5.11",
"cordova-plugin-websocket": "^0.12.2", "@bower_components/angular-moment": "urish/angular-moment#1.3.0",
"cordova-plugin-whitelist": "^1.3.2", "@bower_components/angular-resource": "angular/bower-angular-resource#v1.5.11",
"cordova-plugin-x-toast": "^2.6.0", "@bower_components/angular-sanitize": "angular/bower-angular-sanitize#v1.5.11",
"ionic-plugin-keyboard": "^2.2.1", "@bower_components/angular-screenmatch": "bensurman/angular-screenmatch#v1.0.1",
"moment": "~2.19.3", "@bower_components/angular-simple-logger": "nmccready/angular-simple-logger#0.1.7",
"numeral": "1.5.3", "@bower_components/angular-translate": "PascalPrecht/bower-angular-translate#2.18.2",
"phonegap-plugin-barcodescanner": "git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git" "@bower_components/angular-ui-router": "angular-ui/angular-ui-router-bower#0.2.18",
"@bower_components/blob-polyfill": "bjornstar/blob-polyfill#~1.0.20150320",
"@bower_components/chart.js": "chartjs/Chart.js#v2.9.3",
"@bower_components/ion-digit-keyboard": "skol-pro/ion-digit-keyboard#973b90c2fc",
"@bower_components/ionic": "driftyco/ionic-bower#v1.3.5",
"@bower_components/ionic-material": "zachsoft/Ionic-Material#v0.4.2",
"@bower_components/jdenticon": "dmester/jdenticon#3.1.0",
"@bower_components/js-nacl": "tonyg/js-nacl#1.4.0",
"@bower_components/js-scrypt": "tonyg/js-scrypt#v1.2.0",
"@bower_components/leaflet": "Leaflet/Leaflet#v0.7.7",
"@bower_components/leaflet-search": "stefanocudini/leaflet-search#v2.7.2",
"@bower_components/leaflet.loading": "ebrelsford/Leaflet.loading#v0.1.24",
"@bower_components/leaflet.markercluster": "Leaflet/Leaflet.markercluster#v0.5.0",
"@bower_components/moment": "moment/moment#2.24.0",
"@bower_components/ng-idle": "HackedByChinese/ng-idle#1.3.2",
"@bower_components/ngCordova": "driftyco/ng-cordova#v0.1.27-alpha",
"@bower_components/numeral": "adamwdraper/Numeral-js#1.5.6",
"@bower_components/qrcode-generator": "kazuhikoarase/qrcode-generator#js1.4.4",
"@bower_components/robotodraft": "raibutera/robotodraft#1.1.0",
"@bower_components/socket.io": "socketio/socket.io#^1.7.4",
"@bower_components/socket.io-client": "socketio/socket.io-client#^1.7.4",
"@bower_components/ui-leaflet": "angular-ui/ui-leaflet#v2.0.0",
"@bower_components/underscore": "jashkenas/underscore#1.10.2",
"through2": "^4.0.2",
"uuid": "3.2.1"
}, },
"devDependencies": { "devDependencies": {
"bower": "^1.8.0", "@ionic/cli": "~6.20.9",
"cordova-uglify": "^0.2.3", "@ionic/v1-toolkit": "^3.2.20",
"del": "^2.2.0", "@prantlf/gulp-jsonlint": "^2.4.0",
"ansi-colors": "^4.1.1",
"cordova": "^11.1.0",
"cordova-android": "^10.1.2",
"cordova-clipboard": "^1.3.0",
"cordova-fetch": "^4.0.0",
"cordova-ios": "^6.3.0",
"cordova-plugin-androidx-adapter": "^1.1.3",
"cordova-plugin-camera": "^5.0.3",
"cordova-plugin-customurlscheme": "^5.0.2",
"cordova-plugin-device": "^2.1.0",
"cordova-plugin-dialogs": "^2.0.2",
"cordova-plugin-file": "^8.0.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^5.0.0",
"cordova-plugin-network-information": "~3.0.0",
"cordova-plugin-secure-storage-android10": "~6.0.7",
"cordova-plugin-splashscreen": "^6.0.2",
"cordova-plugin-statusbar": "^3.0.0",
"cordova-plugin-vibration": "^3.1.1",
"cordova-plugin-websocket": "^0.12.2",
"cordova-plugin-x-toast": "^2.7.3",
"del": "^5.1.0",
"delete-empty": "^0.1.3", "delete-empty": "^0.1.3",
"event-stream": "3.3.4", "event-stream": "3.3.4",
"fs": "^0.0.2", "fancy-log": "^1.3.3",
"glob": "^5.0.15", "glob": "^5.0.15",
"gulp": "^3.9.1", "graceful-fs": "^4.2.3",
"gulp-angular-templatecache": "^1.8.0", "gulp": "^4.0.2",
"gulp-angular-templatecache": "^3.0.1",
"gulp-angular-translate": "^0.1.4", "gulp-angular-translate": "^0.1.4",
"gulp-base64": "^0.1.3", "gulp-base64-v2": "^1.0.4",
"gulp-bump": "^2.1.0", "gulp-bump": "^3.1.3",
"gulp-clean": "^0.3.2", "gulp-clean": "^0.4.0",
"gulp-clean-css": "^2.0.10", "gulp-clean-css": "^4.3.0",
"gulp-concat": "^2.2.0", "gulp-cli": "^2.3.0",
"gulp-concat-css": "^2.3.0",
"gulp-css-base64": "^1.3.4", "gulp-css-base64": "^1.3.4",
"gulp-csso": "^2.0.0", "gulp-csso": "^4.0.1",
"gulp-filter": "^4.0.0", "gulp-debug": "^4.0.0",
"gulp-filter": "^6.0.0",
"gulp-footer": "^2.0.2", "gulp-footer": "^2.0.2",
"gulp-header": "^2.0.7", "gulp-header": "^2.0.9",
"gulp-html-remove": "^0.1.1", "gulp-html-remove": "^0.1.1",
"gulp-htmlmin": "^2.0.0", "gulp-htmlmin": "^5.0.1",
"gulp-jshint": "^2.0.1", "gulp-jshint": "^2.1.0",
"gulp-markdown": "^1.2.0", "gulp-markdown": "^5.0.1",
"gulp-ng-annotate": "^2.0.0", "gulp-ng-annotate": "^2.1.0",
"gulp-ng-constant": "^1.1.0", "gulp-ng-constant": "^1.2.0",
"gulp-remove-code": "^1.0.2", "gulp-remove-code": "^3.0.4",
"gulp-rename": "^1.2.0", "gulp-rename": "^2.0.0",
"gulp-replace": "^0.5.4", "gulp-replace": "^1.0.0",
"gulp-rev": "^7.0.0", "gulp-sass": "^5.1.0",
"gulp-rev-replace": "^0.4.3", "gulp-sort": "^2.0.0",
"gulp-sass": "^2.2.0", "gulp-sourcemaps": "^2.6.5",
"gulp-sourcemaps": "^1.6.0", "gulp-sri-hash": "^2.2.1",
"gulp-uglify": "^2.0.0", "gulp-uglify-es": "^2.0.0",
"gulp-useref": "^3.1.0", "gulp-useref": "^4.0.1",
"gulp-util": "^3.0.8", "gulp-zip": "^5.0.2",
"gulp-zip": "^3.2.0", "ionic-plugin-keyboard": "^2.2.1",
"ionic": "^1.7.16", "jshint": "^2.12.0",
"ionic-minify": "^2.0.8", "jshint-stylish": "^2.2.1",
"jshint": "^2.9.2", "lazypipe": "^1.0.2",
"map-stream": "0.0.7",
"merge2": "^1.3.0",
"mv": "^2.1.1", "mv": "^2.1.1",
"node-sass": "^3.3.3", "node-sass": "^9.0.0",
"playup": "^1.0.2", "phonegap-plugin-barcodescanner": "^8.1.0",
"shelljs": "^0.3.0", "playup": "^1.1.0",
"yargs": "^4.3.1" "vinyl-fs": "^3.0.3",
"web-ext": "^7.9.0",
"yargs": "^5.0.0"
},
"peerDependencies": {
"gulp": "^4.0.2",
"gulp-cli": "^2.3.0",
"leaflet": "Leaflet/Leaflet#v0.7.7",
"nopt": "4.0.1"
},
"resolutions": {
"gulp": "4.0.2",
"gulp-cli": "2.3.0",
"graceful-fs": "4.2.4"
}, },
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-console",
"ionic-plugin-keyboard",
"cordova-plugin-device",
"cordova-plugin-statusbar",
"cordova-plugin-camera",
"cordova-plugin-websocket",
"cordova-plugin-vibration",
"cordova-plugin-dialogs",
"cordova-plugin-minisodium",
"cordova-plugin-secure-storage",
{
"locator": "https://github.com/phonegap/phonegap-plugin-barcodescanner.git",
"id": "phonegap-plugin-barcodescanner"
},
"cordova-plugin-inappbrowser",
"cordova-plugin-x-toast",
"cordova-clipboard"
],
"cordovaPlatforms": [
"android",
"ios"
],
"cordova": { "cordova": {
"plugins": { "plugins": {
"cordova-plugin-camera": {}, "cordova-plugin-camera": {
"cordova-plugin-console": {}, "CAMERA_USAGE_DESCRIPTION": "Add picture to the user profile",
"PHOTOLIBRARY_USAGE_DESCRIPTION": "Take a picture for the user profile",
"ANDROID_SUPPORT_V4_VERSION": "28.+"
},
"cordova-plugin-device": {}, "cordova-plugin-device": {},
"cordova-plugin-dialogs": {}, "cordova-plugin-dialogs": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-minisodium": {},
"cordova-plugin-secure-storage": {},
"cordova-plugin-splashscreen": {}, "cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {}, "cordova-plugin-statusbar": {},
"cordova-plugin-vibration": {}, "cordova-plugin-vibration": {},
"cordova-plugin-websocket": {}, "cordova-plugin-websocket": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-x-toast": {}, "cordova-plugin-x-toast": {},
"ionic-plugin-keyboard": {}, "cordova-plugin-ionic-keyboard": {},
"phonegap-plugin-barcodescanner": { "phonegap-plugin-barcodescanner": {
"CAMERA_USAGE_DESCRIPTION": " " "CAMERA_USAGE_DESCRIPTION": "To scan QRCode",
} "ANDROID_SUPPORT_V4_VERSION": "28.+"
},
"ionic-plugin-keyboard": {},
"cordova-clipboard": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "28.+"
},
"cordova-plugin-file": {},
"cordova-plugin-androidx-adapter": {},
"cordova-plugin-customurlscheme": {
"URL_SCHEME": "june",
"ANDROID_SCHEME": "http",
"ANDROID_HOST": "g1.duniter.org",
"ANDROID_PATHPREFIX": "/wallet"
},
"cordova-plugin-secure-storage-android10": {},
"cordova-plugin-network-information": {}
}, },
"platforms": [ "platforms": [
"android", "ios",
"ios" "android"
] ]
},
"engines": {
"node": ">= 16.17.0",
"yarn": ">= 1.22.0"
} }
} }
\ No newline at end of file
#!/bin/bash
### Control that the script is run on `dev` branch
branch=`git rev-parse --abbrev-ref HEAD`
if [[ ! "$branch" = "master" ]];
then
echo ">> This script must be run under \`master\` branch"
exit -1
fi
DIRNAME=`pwd`
### Get current version (package.json)
current=`grep -oP "version\": \"\d+.\d+.\d+((a|b)[0-9]+)?" package.json | grep -oP "\d+.\d+.\d+((a|b)[0-9]+)?"`
if [[ "_$current" == "_" ]]; then
echo "Unable to read the current version in 'package.json'. Please check version format is: x.y.z (x and y should be an integer)."
exit -1;
fi
echo "Current version: $current"
### Get current version for Android
currentAndroid=`grep -oP "android-versionCode=\"[0-9]+\"" config.xml | grep -oP "\d+"`
if [[ "_$currentAndroid" == "_" ]]; then
echo "Unable to read the current Android version in 'config.xml'. Please check version format is an integer."
exit -1;
fi
echo "Current Android version: $currentAndroid"
### Releasing
if [[ $2 =~ ^[0-9]+.[0-9]+.[0-9]+((a|b)[0-9]+)?$ && $3 =~ ^[0-9]+$ ]]; then
echo "new build version: $2"
echo "new build android version: $3"
case "$1" in
rel|pre)
# Change the version in files: 'package.json' and 'config.xml'
sed -i "s/version\": \"$current\"/version\": \"$2\"/g" package.json
currentConfigXmlVersion=`grep -oP "version=\"\d+.\d+.\d+((a|b)[0-9]+)?\"" config.xml | grep -oP "\d+.\d+.\d+((a|b)[0-9]+)?"`
sed -i "s/ version=\"$currentConfigXmlVersion\"/ version=\"$2\"/g" config.xml
sed -i "s/ android-versionCode=\"$currentAndroid\"/ android-versionCode=\"$3\"/g" config.xml
# Change version in file: 'www/manifest.json'
currentManifestJsonVersion=`grep -oP "version\": \"\d+.\d+.\d+((a|b)[0-9]+)?\"" www/manifest.json | grep -oP "\d+.\d+.\d+((a|b)[0-9]+)?"`
sed -i "s/version\": \"$currentManifestJsonVersion\"/version\": \"$2\"/g" www/manifest.json
# Bump the install.sh
sed -i "s/echo \"v.*\" #lastest/echo \"v$2\" #lastest/g" install.sh
;;
*)
echo "No task given"
exit -1
;;
esac
# Load env.sh if exists
if [[ -f "${DIRNAME}/env.sh" ]]; then
source ${DIRNAME}/env.sh $*
fi
# Check the Java version
JAVA_VERSION=`java -version 2>&1 | grep "java version" | awk '{print $3}' | tr -d \"`
if [[ $? -ne 0 ]]; then
echo "No Java JRE 1.8 found in machine. This is required for Android artifacts."
exit -1
fi
JAVA_MINOR_VERSION=`echo ${JAVA_VERSION} | awk '{split($0, array, ".")} END{print array[2]}'`
if [[ ${JAVA_MINOR_VERSION} -ne 8 ]]; then
echo "Require a Java JRE in version 1.8, but found ${JAVA_VERSION}. You can override your default JAVA_HOME in 'env.sh'."
exit -1
fi
echo "Java: $JAVA_VERSION"
# force nodejs version to 5
if [[ -d "$NVM_DIR" ]]; then
. $NVM_DIR/nvm.sh
nvm use 5
if [[ $? -ne 0 ]]; then
exit -1
fi
else
echo "nvm (Node version manager) not found (directory $NVM_DIR not found). Please install, and retry"
exit -1
fi
# Update config file
gulp config --env default_fr
echo "----------------------------------"
echo "- Compiling sources..."
echo "----------------------------------"
gulp
echo "----------------------------------"
echo "- Building Android artifact..."
echo "----------------------------------"
rm -rf platforms/android/build/outputs/release/*
ionic build android --release
if [[ $? -ne 0 ]]; then
exit -1
fi
echo "----------------------------------"
echo "- Building web artifact..."
echo "----------------------------------"
# Update config file
gulp config --env default
gulp build:web --release
if [[ $? -ne 0 ]]; then
exit -1
fi
echo "----------------------------------"
echo "- Executing git push, with tag: v$2"
echo "----------------------------------"
# Commit
cd $DIRNAME
git reset HEAD
git add package.json config.xml install.sh www/js/config.js www/manifest.json
git commit -m "v$2"
git tag "v$2"
git push
if [[ $? -ne 0 ]]; then
exit -1
fi
# Pause (wait propagation to from git.duniter.org to github)
echo " Waiting 30s, for propagation to github..."
sleep 30s
description="$4"
if [[ "_$description" == "_" ]]; then
description="Release v$2"
fi
echo "**********************************"
echo "* Uploading artifacts to Github..."
echo "**********************************"
./github.sh $1 ''"$description"''
if [[ $? -ne 0 ]]; then
exit -1
fi
echo "----------------------------------"
echo "- Building desktop artifacts..."
echo "----------------------------------"
#FIXME: ceci empêche d'etre sur le master/origin de cesium-desktop
#git submodule update --init
git submodule sync
if [[ -d "$DIRNAME/platforms/desktop" ]]; then
cd platforms/desktop
# Build desktop assets
./release.sh $2
if [[ $? -ne 0 ]]; then
exit -1
fi
else
echo "WARN: platform/desktop not found -> Skipping desktop build!"
fi;
# back to nodejs version 5
cd $DIRNAME
nvm use 5
echo "**********************************"
echo "* Build release succeed !"
echo "**********************************"
else
echo "Wrong version format"
echo "Usage:"
echo " > ./release.sh [pre|rel] <version> <android-version> <release_description>"
echo "with:"
echo " version: x.y.z"
echo " android-version: nnn"
echo " release_description: a short description of the release"
fi
These are Cordova resources. You can replace icon.png and splash.png and run
`ionic cordova resources` to generate custom icons and splash screens for your
app. See `ionic cordova resources --help` for details.
Cordova reference documentation:
- Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html
- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
FROM ubuntu:18.04
LABEL maintainer="benoit [dot] lavenier [at] e-is [dot] pro"
ENV DEBIAN_FRONTEND=noninteractive \
ANDROID_HOME=/opt/android-sdk-linux \
NODE_VERSION=10.20.0 \
NPM_VERSION=6.14.4 \
YARN_VERSION=1.22.4 \
IONIC_CLI_VERSION=6.5.0 \
CORDOVA_VERSION=8.1.2 \
CORDOVA_RES_VERSION=0.11.0 \
NATIVE_RUN_VERSION=1.0.0 \
GRADLE_VERSION=4.10.3 \
GULP_VERSION=2.2.0 \
ANDROID_NDK_VERSION=r19c \
ANDROID_SDK_VERSION=r29.0.2
# Install basics
RUN apt-get update && \
apt-get install -y git wget curl unzip build-essential software-properties-common ruby ruby-dev ruby-ffi gcc make python && \
curl --retry 3 -SLO "http://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz" && \
tar -xzf "node-v$NODE_VERSION-linux-x64.tar.gz" -C /usr/local --strip-components=1 && \
rm "node-v$NODE_VERSION-linux-x64.tar.gz"
# Install global nodeJS dependencies
RUN npm install -g npm@"$NPM_VERSION" && \
npm install -g yarn@"$YARN_VERSION" gulp@"$GULP_VERSION" cordova@"$CORDOVA_VERSION" cordova-res@"$CORDOVA_RES_VERSION" @ionic/cli@"$IONIC_CLI_VERSION" && \
npm cache clear --force
# Install Cordova
RUN npm install -g cordova@"$CORDOVA_VERSION" cordova-res@"$CORDOVA_RES_VERSION" native-run@"$NATIVE_RUN_VERSION" && \
npm cache clear --force
# Install Android prerequisites
RUN echo ANDROID_HOME="${ANDROID_HOME}" >> /etc/environment && \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y install openjdk-11-jdk-headless && \
apt-get install -y --force-yes expect ant wget zipalign libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 qemu-kvm kmod && \
apt-get clean && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install Android SDK
#RUN cd /opt && \
# wget --output-document=android-sdk.tgz --quiet http://dl.google.com/android/android-sdk_"$ANDROID_SDK_VERSION"-linux.tgz && \
# tar xzf android-sdk.tgz && \
# rm -f android-sdk.tgz && \
# chown -R root. /opt
#
## Install Android NDK
#RUN cd /opt/ && \
# wget --output-document=android-ndk.zip --quiet https://dl.google.com/android/repository/android-ndk-"$ANDROID_NDK_VERSION"-linux-x86_64.zip && \
# unzip android-ndk.zip && \
# rm android-ndk.zip && \
# chown -R root. /opt
# Install Gradle
#RUN cd /opt/ && \
# wget https://services.gradle.org/distributions/gradle-"$GRADLE_VERSION"-bin.zip && \
# mkdir /opt/gradle && \
# unzip -d /opt/gradle gradle-"$GRADLE_VERSION"-bin.zip && \
# rm -rf gradle-$"GRADLE_VERSION"-bin.zip
# Setup environment
#ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:/opt/tools:/opt/gradle/gradle-"$GRADLE_VERSION"/bin
# Install sdk elements
#COPY resources/android/build/tools /opt/tools
#RUN chmod u+x /opt/tools/*.sh
#RUN ["/opt/tools/android-accept-licenses.sh", "android update sdk --all --no-ui --filter platform-tools,tools,build-tools-29.0.0,android-29,build-tools-26.0.0,android-26,build-tools-25.0.0,android-25,extra-android-support,extra-android-m2repository,extra-google-m2repository"]
#RUN unzip ${ANDROID_HOME}/temp/*.zip -d ${ANDROID_HOME}
# Install source code
#RUN git config --global user.email "user.name@domain.com" && \
# git config --global user.name "User Name" && \
RUN git clone https://git.duniter.org/clients/cesium-grp/cesium.git && \
cd cesium && \
yarn install --ignore-engines
# Restore cordova platforms
RUN cd cesium && \
yarn run install-platforms
# TODO: Test First Build so that it will be faster later
## ionic cordova build android --prod --no-interactive --release
WORKDIR cesium
EXPOSE 8100 35729
CMD ["yarn", "run", "start"]
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip
This diff is collapsed.
resources/android/store/logo_512px.png

72 KiB

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">localhost</domain>
</domain-config>
</network-security-config>
# Manifest V3 migration
This folder `chrome-ext` has been created in order to prepare to Manifest V3 format.
This is working well for Chrome, but not yet for Firefox.
/**
* Add browser actions, for WebExtension
* (e.g. to open Cesium in a tab, when integrated as a Firefox extension).
*
* See https://forum.duniter.org/t/premiere-version-du-module-cesium-pour-firefox/6944
*
**/
var browser, chrome;
browser = browser || chrome;
var action = browser.browserAction || (chrome && chrome.action);
var browserExtensionRequirements = browser.tabs && action && action.onClicked;
// If integrated as a browser extension
if (browserExtensionRequirements) {
console.debug("[extension] Initializing...");
/**
* Open Cesium in a new browser's tab
*/
function openInTab() {
console.debug("[extension] Opening Cesium...")
browser.tabs.create({
url: "index.html"
});
}
// Adding browser action
action.onClicked.addListener(openInTab);
// FIXME: finish this code
function checkNotifications() {
console.debug("[extension] Checking for notifications...");
action.setBadgeText({
text: '0'
});
action.setBadgeBackgroundColor({
color: '#387EF5' // = $positive color - see the SCSS theme
});
// Loop, after a delay
setTimeout(function() {
checkNotifications();
}, 60 * 1000 /*1min*/);
}
//checkNotifications();
}
else {
console.error("[extension] Cannot init extension: missing some API requirements (action or tabs");
}
{
"manifest_version": 2,
"name": "Cesium",
"version": "1.7.12",
"description": "Cesium Wallet for Ğ1 libre currency",
"icons": {
"32": "img/logo_32px.png",
"60": "img/logo_60px.png",
"96": "img/logo_96px.png",
"144": "img/logo_144px.png",
"192": "img/logo.svg"
},
"permissions": [
"storage"
],
"host_permissions": [
"file:///*",
"*://*/*"
],
"background": {
"service_worker": "background.js",
"scripts": ["background.js"]
},
"browser_action" : {
"default_icon": {
"32": "img/logo_32px.png",
"60": "img/logo_60px.png",
"96": "img/logo_96px.png",
"128": "img/logo_128px.png"
}
},
"action": {
"default_icon": {
"32": "img/logo_32px.png",
"60": "img/logo_60px.png",
"96": "img/logo_96px.png",
"144": "img/logo_144px.png",
"192": "img/logo.svg"
}
}
}
resources/firefoxos/icon/logo_128px.png

13.1 KiB

resources/firefoxos/icon/logo_60px.png

5.23 KiB

File added
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-es-ct" viewBox="0 0 640 480">
<path fill="#fcdd09" d="M0 0h640v480H0z"/>
<path stroke="#da121a" stroke-width="60" d="M0 90h810m0 120H0m0 120h810m0 120H0" transform="scale(.79012 .88889)"/>
</svg>
\ No newline at end of file
File added