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
Commits on Source (1508)
{
"directory": "www/lib"
}
This project is now tracked on our hosted gitlab server at:
> https://git.duniter.org/clients/cesium/cesium
The current github repository is a simple clone taken up to date at each push on the main gitlab repository.
All contributions should be performed on the main gitlab repository.
Pull requests proposed on github would generate more work for the main contributors.
Issues can be submitted on github. However, all issues created on github will be duplicated on gitlab manually and closed with a link to the gitlab issue.
Please note that all issues should be preferentially opened at
https://git.duniter.org/clients/cesium/cesium/issues/new?issue
If you open issue here, it will be duplicated manually on our hosted gitlab and closed here with a link to our main repository.
Thank you for your understanding.
This project is now tracked on our hosted gitlab server at:
> https://git.duniter.org/clients/cesium-grp/cesium
The current github repository is a simple clone taken up to date at each push on the main gitlab repository.
All contributions should be performed on the main gitlab repository.
Pull requests proposed on github would generate more work for the main contributors, therefore we would really appreciate if you can create instead merge requests on our hosted gitlab instance.
Thank you for your understanding.
# Initial disclaimer
This project is now tracked on our hosted gitlab server at:
https://git.duniter.org/clients/cesium-grp/cesium
The current github repository is a simple clone taken up to date at each push on the main gitlab repository.
All contributions should be performed on the main gitlab repository.
Pull requests proposed on github would generate more work for the main contributors.
Issues can be submitted on github. However, all issues created on github will be duplicated on gitlab manually and closed with a link to the gitlab issue.
# Original README.md
# Specifies intentionally untracked files to ignore when using Git # Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore # http://git-scm.com/docs/gitignore
/www/lib/ionic-material
/www/lib/robotodraft
/node_modules/ /node_modules/
/platforms/ /platforms/ios
/platforms/android
/resources/android/build/local.properties
/resources/android/build/*.keystore
/resources/android/build/release-signing.properties
/plugins/ /plugins/
.idea/ .idea/
.vscode/
.local/
.directory
/*.iml /*.iml
/npm-debug.log
/package-lock.json
/yarn-error.log
/www/lib/* /dist/web
!/www/lib/ionic /dist/android
/www/js/config.js /dist/*.sha256
/www/dist
/hooks/playstore-config.json /hooks/uglify-config.json
/hooks/after_prepare/uglify.js
/scripts/sdkmanager.log
.directory
/www/js/config.js /www/js/config.js
/www/dist
/www/lib
# Generated CSS # Generated CSS
/www/css/ionic.app.css /www/css/ionic.app.css
/www/css/ionic.app.min.css /www/css/ionic.app.min.css
# Generated License files
/www/license/*.html
/www/license/*.txt
# Leaflet generated files # Leaflet generated files
/www/css/leaflet.app.css /www/css/leaflet.app.css
/www/css/leaflet.app.min.css /www/css/leaflet.app.min.css
/www/img/layers*.png /www/img/layers*.png
/www/img/marker*.png /www/img/marker*.png
/www/img/loader.gif
/www/img/search-icon.png
/www/img/search-icon-mobile.png
.run/*
# ---------------------------------------------------------------
# Global
# ---------------------------------------------------------------
# default image
image: node:12
# stages (main steps of pipeline)
stages:
- build
- alt_build
- deploy
# ---------------------------------------------------------------
# Global variables
# ---------------------------------------------------------------
variables:
CI_BUILD_IMAGE: $CI_REGISTRY_IMAGE/build:develop
# ---------------------------------------------------------------
# Jobs templates
# ---------------------------------------------------------------
.docker:
image: docker:latest
tags: [redshift]
services:
- docker:dind
before_script:
- docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
#- docker login -u "duniterteam" -p "$DUNITERTEAM_PASSWD"
after_script:
- docker logout ${CI_REGISTRY}
#- docker logout
allow_failure: false
# ---------------------------------------------------------------
# Build jobs
# ---------------------------------------------------------------
.build:
stage: build
tags: [redshift]
script:
- yarn install
- yarn run build:web
after_script:
- ls -la dist/web/
- du -csh dist/web/
artifacts:
untracked: true
paths:
- dist/web
expire_in: 60 minutes
build:
extends: .build
image: ${CI_BUILD_IMAGE}
before_script:
- mv /tmp/.build-cache/node_modules ./
only:
- develop
failsafe-build:
extends: .build
stage: alt_build
when: on_failure
before_script:
- yarn global add gulp
only:
- develop
docker:ci:
extends: .docker
stage: alt_build
when: on_failure
allow_failure: true
script:
# Create the target directory
- mkdir -p dist/ci
- cd dist/ci
# Create the Dockerfile
- echo 'FROM node:12' > Dockerfile
- echo 'WORKDIR /tmp/.build-cache' >> Dockerfile
- echo 'COPY ./ ./' >> Dockerfile
# Store disk usage (before install)
- echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"` > /tmp/before.txt' >> Dockerfile
- echo 'RUN du -s `find /tmp/.cache/yarn -maxdepth 1 | egrep -v "^\.$"` >> /tmp/before.txt' >> Dockerfile
# Install dependencies
- echo 'RUN yarn global add gulp web-ext @ionic/cli' >> Dockerfile
- echo 'RUN yarn install' >> Dockerfile
# Store disk usage (after install)
- echo 'RUN du -s `find . -maxdepth 1 | egrep -v "^\.$"` > /tmp/after.txt' >> Dockerfile
- echo 'RUN du -s `find /tmp/.cache/yarn -maxdepth 1 | egrep -v "^\.$"` >> /tmp/after.txt' >> Dockerfile
# Force docker to detect any changes
- echo "RUN diff /tmp/before.txt /tmp/after.txt || true" >> Dockerfile
- echo 'WORKDIR /build' >> Dockerfile
# Build and push the CI image
- docker build --no-cache -t ${CI_BUILD_IMAGE} .
- docker push ${CI_BUILD_IMAGE}
artifacts:
paths:
- dist/ci/Dockerfile
expire_in: 60 minutes
# ---------------------------------------------------------------
# Deploy jobs
# ---------------------------------------------------------------
pages:
stage: deploy
variables:
GIT_STRATEGY: none
script:
- ls -la public || true
- mv dist/web/www public
artifacts:
untracked: true
paths:
- public
only:
- master
mirror:
stage: deploy
image: liaohuqiu/rsync
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- >-
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >
~/.ssh/config
script:
- mv dist/web/www public
- rsync -az -e ssh ./public/ gammanu@1000i100.fr:~/g1.money/dev-cesium
after_script:
- ssh gammanu@1000i100.fr "~/g1.money/update-cesium.sh"
only:
- master
release:
stage: deploy
variables:
GIT_STRATEGY: none
script:
- ls -la www || true
- mv dist/web/www www
artifacts:
untracked: true
paths:
- www
only:
- tags
[submodule "dist/desktop"]
path = dist/desktop
url = git@git.duniter.org:clients/cesium-grp/cesium-desktop.git
[submodule "dist/android/sources"]
path = dist/android/sources
url = git@git.duniter.org:clients/cesium-grp/cesium-android.git
--install.ignore-engines true
[changelog version by version](doc/changelog/)
\ No newline at end of file
FROM node:12
LABEL maintainer="benoit [dot] lavenier [at] e-is [dot] pro"
LABEL version="1.7.0-rc1"
LABEL description="Cesium Wallet for Ğ1 libre currency"
ARG CESIUM_VER="1.7.0-rc1"
ENV DEBIAN_FRONTEND=noninteractive \
NODE_VERSION=16.17.0 \
NPM_VERSION=8.3.0 \
YARN_VERSION=1.22.17 \
IONIC_CLI_VERSION=6.20.9 \
CORDOVA_VERSION=10.0.0 \
GRADLE_VERSION=6.5.1 \
GULP_VERSION=4.0.2
# Install basics
RUN apk update && \
apk add ca-certificates wget curl git && \
update-ca-certificates && \
apk add --update python make g++
# create group and user cesium
RUN addgroup -S -g 1111 cesium && \
adduser -SD -h /cesium -G cesium -u 1111 cesium
#RUN mkdir -p /var/lib/cesium /etc/cesium && chown cesium:cesium /var/lib/cesium /etc/cesium
# Install global dependencies
RUN yarn global add gulp@"$GULP_VERSION" @ionic/cli@"$IONIC_CLI_VERSION"
# copy source tree
COPY ./ ./
RUN test -f package.json || git clone https://github.com/duniter/cesium.git && cd cesium
# Install project dependencies
# Workaround need for node-sass (- )see https://github.com/yarnpkg/yarn/issues/4867)
RUN yarn install --ignore-engines && \
yarn remove node-sass && yarn add node-sass
WORKDIR /cesium
EXPOSE 8100 35729
CMD ["yarn", "run", "start"]
GNU GENERAL PUBLIC LICENSE GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 19 November 2007
Copyright (C) 2007 Free Software Foundation, Inc. [http://fsf.org/] Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed. of this license document, but changing it is not allowed.
Preamble Preamble
The GNU General Public License is a free, copyleft license for The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works. software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.
The licenses for most software and other practical works are designed The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast, to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the software for all its users.
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you price. Our General Public Licenses are designed to make sure that you
...@@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you ...@@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things. free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you Developers that use our General Public Licenses protect your rights
these rights or asking you to surrender the rights. Therefore, you have with two steps: (1) assert copyright on the software, and (2) offer
certain responsibilities if you distribute copies of the software, or if you this License which gives you legal permission to copy, distribute
you modify it: responsibilities to respect the freedom of others. and/or modify the software.
For example, if you distribute copies of such a program, whether A secondary benefit of defending all users' freedom is that
gratis or for a fee, you must pass on to the recipients the same improvements made in alternate versions of the program, if they
freedoms that you received. You must make sure that they, too, receive receive widespread use, become available for other developers to
or can get the source code. And you must show them these terms so they incorporate. Many developers of free software are heartened and
know their rights. encouraged by the resulting cooperation. However, in the case of
software used on network servers, this result may fail to come about.
Developers that use the GNU GPL protect your rights with two steps: The GNU General Public License permits making a modified version and
(1) assert copyright on the software, and (2) offer you this License letting the public access it on a server without ever releasing its
giving you legal permission to copy, distribute and/or modify it. source code to the public.
For the developers' and authors' protection, the GPL clearly explains The GNU Affero General Public License is designed specifically to
that there is no warranty for this free software. For both users' and ensure that, in such cases, the modified source code becomes available
authors' sake, the GPL requires that modified versions be marked as to the community. It requires the operator of a network server to
changed, so that their problems will not be attributed erroneously to provide the source code of the modified version running there to the
authors of previous versions. users of that server. Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
Some devices are designed to deny users access to install or run code of the modified version.
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of An older license, called the Affero General Public License and
protecting users' freedom to change the software. The systematic published by Affero, was designed to accomplish similar goals. This is
pattern of such abuse occurs in the area of products for individuals to a different license, not a version of the Affero GPL, but Affero has
use, which is precisely where it is most unacceptable. Therefore, we released a new version of the Affero GPL which permits relicensing under
have designed this version of the GPL to prohibit the practice for those this license.
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and The precise terms and conditions for copying, distribution and
modification follow. modification follow.
...@@ -72,7 +60,7 @@ modification follow. ...@@ -72,7 +60,7 @@ modification follow.
0. Definitions. 0. Definitions.
"This License" refers to version 3 of the GNU General Public License. "This License" refers to version 3 of the GNU Affero General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks. works, such as semiconductor masks.
...@@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey ...@@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program. License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License. 13. Remote Network Interaction; Use with the GNU General Public License.
Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software. This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.
Notwithstanding any other provision of this License, you have Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work. The terms of this combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work, License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License, but the work with which it is combined will remain governed by version
section 13, concerning interaction through a network will apply to the 3 of the GNU General Public License.
combination as such.
14. Revised Versions of this License. 14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will the GNU Affero General Public License from time to time. Such new versions
be similar in spirit to the present version, but may differ in detail to will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns. address new problems or concerns.
Each version is given a distinguishing version number. If the Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation. by the Free Software Foundation.
If the Program specifies that a proxy can decide which future If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you public statement of acceptance of a version permanently authorizes you
to choose that version for the Program. to choose that version for the Program.
...@@ -631,44 +629,33 @@ to attach them to the start of each source file to most effectively ...@@ -631,44 +629,33 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found. the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.} G1SMS
Copyright (C) {year} {name of author} Copyright (C) 2018 Fred
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU Affero General Public License as published
the Free Software Foundation, either version 3 of the License, or by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU Affero General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU Affero General Public License
along with this program. If not, see [http://www.gnu.org/licenses/]. along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short If your software can interact with users remotely through a computer
notice like this when it starts in an interactive mode: network, you should also make sure that it provides a way for users to
get its source. For example, if your program is a web application, its
{project} Copyright (C) {year} {fullname} interface could display a "Source" link that leads users to an archive
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. of the code. There are many ways you could offer source, and different
This is free software, and you are welcome to redistribute it solutions will be better for different programs; see section 13 for the
under certain conditions; type `show c' for details. specific requirements.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school, You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary. if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see For more information on this, and how to apply and follow the GNU AGPL, see
[http://www.gnu.org/licenses/]. <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
[http://www.gnu.org/philosophy/why-not-lgpl.html].
\ No newline at end of file
...@@ -2,184 +2,67 @@ ...@@ -2,184 +2,67 @@
# Cesium # Cesium
[Unhosted webapp](https://unhosted.org) client for [Duniter](https://duniter.org) network. Cesium is wallet client software for [Duniter](https://duniter.org) crypto-currency, like Ğ1.
Cesium allow you to manage your wallet, certify your friends, and more!
Demo: http://gtest.duniter.fr Cesium is an [Unhosted](https://unhosted.org) Progressive Web Application (PWA), using AngularJS and Ionic.
Please visit th Cesium web site: [cesium.app](https://cesium.app)
## Installation ## Install
### On desktop computer ### As a web extension (Firefox, Chrome)
- Download the [latest extension release](https://github.com/duniter/cesium/releases/latest)
To use Cesium from your desktop computer : - Drag/drop the file into your browser;
- Download the [latest release](https://github.com/duniter/cesium/releases/latest). Choose the web packaging (`cesium-vX.Y.Z-we.zip`); - Confirm the installation.
- Unpack in a empty directory;
- Open the `index.html` file in a web browser. That's it! A new button is appeared, on the top right corner.
### On web server ### On desktop computer
Cesium can be easily installed on most web server.
#### Minimal install from source
If you don't already use nodejs (v5), please follow [prerequisite steps](https://github.com/duniter/cesium#prerequisite).
```bash
git clone https://github.com/duniter/cesium.git
cd cesium
npm install -g gulp bower@1.8.0 cordova@6.5.0 ionic@1.7.16
npm install
npm start
```
Answer asked questions.
Your cesium instance is now reacheable on : [http://localhost:8100/](http://localhost:8100/) or an other ip if your listen on an other interface.
#### Installation script
For Linux distribution, a installation script could be used to:
- Download the [latest release](https://github.com/duniter/cesium/releases/latest) - Download the [latest release](https://github.com/duniter/cesium/releases/latest)
- Unpack archive into the directory `./cesium`. Existing files will be override.
- Then install, depending on your operating system:
``` * Ubuntu: Double click the `.deb` file
curl -kL https://raw.githubusercontent.com/duniter/cesium/master/install.sh | bash * Debian: Run the command `sudo dpkg -i *.deb`
``` * Windows: Double click on the `.exe` file
or: * Mac OSx: Unzip the osx `.zip` file, then drop Cesium into your `Applications` folder
* Other operating systems:
``` * Unpack the ZIP archive (file `cesium-vX.Y.Z-web.zip`) into an empty folder;
wget -qO- https://raw.githubusercontent.com/duniter/cesium/master/install.sh | bash * Open the file `index.html` in your web browser;
```
### On smartphone
**Note**: You may need root permission to write files. If so just replace `| bash` with `| sudo bash`. - Android:
* Manual installation: download then install the `.apk` from your smartphone;
* [Play Store](https://play.google.com/store/apps/details?id=fr.duniter.cesium);
- iOS
* [App Store](https://apps.apple.com/us/app/cesium-%C4%9F1/id1471028018);
#### Yunohost package #### Yunohost package
There is a [package](https://github.com/duniter/cesium_ynh) for [YunoHost self-hosting distribution](https://yunohost.org). There is a [package](https://github.com/duniter/cesium_ynh) for [YunoHost self-hosting distribution](https://yunohost.org).
## Configuration ## Contribute
To change default configuration: A [Development Guide](doc/development_guide.md) is available to learn :
- How to install your development environment.
- Edit the file `config.js`, and set default properties: - Development best practices.
```js
angular.module("cesium.config", [])
.constant("csConfig", {
"fallbackLanguage": "en",
"rememberMe": false,
"timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000,
"useLocalStorage": true,
"useRelative": true,
"decimalCount": 4,
"helptip": {
"enable": true,
"installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md"
},
"node": {
"host": "gtest.duniter.org",
"port": "10900"
},
"plugins": {
"es": {
"enable": "false",
"host": "data.gtest.duniter.fr",
"port": "80"
}
},
"version": "0.9.7",
"build": "2017-01-17T08:27:57.915Z"
});
```
- Configure a Duniter node:
* set `node.host` and `node.port` to the default node address.
- Configure the optional extension for [ElasticSearch Duniter4j node](https://github.com/duniter/duniter4j)
* set `plugins.es.host` and `plugins.es.port` to the default ES node address.
* set `plugins.es.enable` with [true|false] to change the default extension state.
To learn more about configuration options, see the [detailed documentation](doc/configuration.md).
## License A [development tutorial](doc/fr/development_tutorial-01.md) (in French) is also available.
The [first 3 lessons of the tutorial](doc/en/development_tutorial-01.md) have also been translated into english.
This software is distributed under [GNU GPLv3](https://raw.github.com/duniter/cesium/master/LICENSE). ## Donate
## Development Guide To help developers with donation, use the [Cesium Team Ğ1 account](https://demo.cesium.app#/app/wot/CitdnuQgZ45tNFCagay7Wh12gwwHM8VLej1sWmfHWnQX/) (public key: `CitdnuQgZ45tNFCagay7Wh12gwwHM8VLej1sWmfHWnQX`)
### Prerequisite ## License
To build Cesium, you will have to: This software is distributed under [GNU AGPL-3.0](https://raw.github.com/duniter/cesium/master/LICENSE).
- Installing build tools:
```
sudo apt-get install build-essential
```
- Installing [nvm](https://github.com/creationix/nvm)
```
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
```
> Il faut ensuite recharger votre terminal, par exemple en lançant la commande `bash`
- Configure NodeJS to use a version 8:
```
nvm install 5
```
- Installing node.js build tools:
```
npm install -g gulp bower@1.8.0 cordova@6.5.0 ionic@1.7.16
```
### Source code
- Getting source and installing project dependencies:
```
git clone https://github.com/duniter/cesium.git
cd cesium
npm install
```
- Installing Cordova plugins (need for platforms specific builds)
```
ionic state restore
ionic browser add crosswalk@12.41.296.5
```
### Build environment
- To configure your build environment :
* Add your environment config into `app/config.json`
* Update default configuration, using the command:
```
gulp config --env <your_env_name>
```
This will update the configuration file used by cesium, at `www/js/config.json`. Please read also our [privacy policy](./doc/privacy_policy.md).
\ No newline at end of file
### Compile and launch
- Compiling and running Cesium:
```
npm start
```
or
```
ionic serve
```
### Best pratices
Cesium could be run on phone devices. Please read [performance tips on AgularJS + Ionic ](http://julienrenaux.fr/2015/08/24/ultimate-angularjs-and-ionic-performance-cheat-sheet/)
before starting to contribute.
Read also [Angular performance for large applicatoins](https://www.airpair.com/angularjs/posts/angularjs-performance-large-applications).
{ {
"default": { "default": {
"cacheTimeMs": 300000, "cacheTimeMs": 300000,
"demo": false,
"readonly": false,
"fallbackLanguage": "en", "fallbackLanguage": "en",
"rememberMe": true, "rememberMe": true,
"showUDHistory": false, "showUDHistory": true,
"timeout": 300000, "timeout": 30000,
"timeWarningExpireMembership": 5184000, "timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000, "timeWarningExpire": 7776000,
"keepAuthIlde": 600, "minConsensusPeerCount": 10,
"keepAuthIdle": 600,
"useLocalStorage": true, "useLocalStorage": true,
"useRelative": false, "useRelative": false,
"expertMode": false, "expertMode": false,
"decimalCount": 2, "decimalCount": 2,
"httpsMode": false, "httpsMode": false,
"shareBaseUrl": "https://demo.cesium.app/",
"helptip": { "helptip": {
"enable": true, "enable": true,
"installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" "installDocUrl": {
"fr-FR": "https://duniter.fr/wiki/doc/installer/",
"en": "https://duniter.org/wiki/doc/install/"
}
}, },
"license": { "license": {
"fr-FR": "license/license_g1-fr-FR.txt", "ca": "license/license_g1-ca",
"en": "license/license_g1-en.txt" "de-DE": "license/license_g1-de-DE",
"en": "license/license_g1-en",
"en-GB": "license/license_g1-en",
"eo-EO": "license/license_g1-eo-EO",
"es-ES": "license/license_g1-es-ES",
"fr-FR": "license/license_g1-fr-FR",
"it-IT": "license/license_g1-it-IT",
"pt-PT": "license/license_g1-pt-PT"
}, },
"node": { "feed": {
"host": "g1.duniter.org", "jsonFeed": {
"port": "443" "ca": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-ca.json",
"de-DE": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-de-DE.json",
"en": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-en.json",
"en-GB": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-en-GB.json",
"eo-EO": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-eo-EO.json",
"es-ES": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-es-ES.json",
"fr-FR": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-fr-FR.json",
"it-IT": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-it-IT.json",
"nl-NL": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-nl-NL.json",
"pt-PT": "https://raw.githubusercontent.com/duniter/cesium/master/doc/feed/1.1/feed-pt-PT.json"
},
"maxContentLength": 1300,
"maxAgeInMonths": 3,
"maxCount": 3
}, },
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1.duniter.fr", "host": "g1.e-is.pro",
"port": "443" "port": 443
},
{
"host": "vit.fdn.org",
"port": 443
},
{
"host": "g1.cgeek.fr",
"port": 443
},
{
"host": "g1.mithril.re",
"port": 443
}, },
{ {
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}
],
"plugins":{
"es": {
"enable": true,
"askEnable": false,
"host": "g1.data.duniter.fr",
"port": "443",
"notifications": {
"txSent": true,
"txReceived": true,
"certSent": true,
"certReceived": true
},
"defaultCountry": "France"
}
}
},
"default_fr": {
"cacheTimeMs": 300000,
"fallbackLanguage": "fr",
"rememberMe": true,
"showUDHistory": false,
"timeout": 300000,
"timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000,
"keepAuthIlde": 600,
"useLocalStorage": true,
"useRelative": false,
"expertMode": false,
"decimalCount": 2,
"httpsMode": false,
"helptip": {
"enable": true,
"installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md"
},
"license": {
"fr-FR": "license/license_g1-fr-FR.txt",
"en": "license/license_g1-en.txt"
},
"node": {
"host": "g1.duniter.fr",
"port": "443"
},
"fallbackNodes": [{
"host": "g1.duniter.org",
"port": "443"
}, },
{ {
"host": "g1.duniter.fr", "host": "g1.le-sou.org",
"port": "443" "port": 443
} }
], ],
"developers": [
{"name": "Benoit Lavenier", "pubkey": "38MEAZN68Pz1DTvT3tqgxx4yQP6snJCQhPqEFxbDk4aE"},
{"name": "Cédric Moreau", "pubkey": "2ny7YAdmzReQxAayyJZsyVYwYhVyax2thKcGknmQy5nQ"},
{"name": "Kapis", "pubkey": "24jaf8XhYZyDyUb7hMcy5qsanaHBC11AwPefcCQRBQNA"},
{"name": "Matograine", "pubkey": "CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd"}
],
"plugins":{ "plugins":{
"es": { "es": {
"enable": true, "enable": true,
"askEnable": false, "askEnable": true,
"host": "g1.data.duniter.fr", "useRemoteStorage": true,
"port": "443", "host": "g1.data.e-is.pro",
"port": 443,
"fallbackNodes": [
{
"host": "g1.data.presles.fr",
"port": 443
},
{
"host": "g1.data.le-sou.org",
"port": 443
},
{
"host": "g1.data.brussels.ovh",
"port": 443
},
{
"host": "g1.data.pini.fr",
"port": 443
},
{
"host": "g1.data.mithril.re",
"port": 443
},
{
"host": "g1.data.e-is.pro",
"port": 443
}
],
"notifications": { "notifications": {
"txSent": true, "txSent": true,
"txReceived": true, "txReceived": true,
...@@ -106,18 +130,27 @@ ...@@ -106,18 +130,27 @@
"g1-test": { "g1-test": {
"cacheTimeMs": 300000, "cacheTimeMs": 300000,
"demo": false,
"readonly": false,
"fallbackLanguage": "en", "fallbackLanguage": "en",
"rememberMe": true, "rememberMe": true,
"timeout": 300000, "showUDHistory": true,
"timeout": 30000,
"timeWarningExpireMembership": 5184000, "timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000, "timeWarningExpire": 7776000,
"minConsensusPeerCount": -1,
"useLocalStorage": true, "useLocalStorage": true,
"useRelative": false, "useRelative": false,
"expertMode": true, "expertMode": true,
"decimalCount": 2, "decimalCount": 2,
"httpsMode": false,
"shareBaseUrl": "https://g1-test.cesium.app",
"helptip": { "helptip": {
"enable": false, "enable": false,
"installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" "installDocUrl": {
"fr-FR": "https://duniter.fr/wiki/doc/installer/",
"en": "https://duniter.org/wiki/doc/install/"
}
}, },
"node": { "node": {
"host": "g1-test.duniter.org", "host": "g1-test.duniter.org",
...@@ -125,15 +158,26 @@ ...@@ -125,15 +158,26 @@
}, },
"fallbackNodes": [ "fallbackNodes": [
{ {
"host": "g1-test.cgeek.fr", "host": "gt.moul.re",
"port": 10902
},
{
"host": "g1-test.duniter.org",
"port": 443 "port": 443
} }
], ],
"developers": [
{"name": "Benoit Lavenier", "pubkey": "38MEAZN68Pz1DTvT3tqgxx4yQP6snJCQhPqEFxbDk4aE"},
{"name": "Cédric Moreau", "pubkey": "2ny7YAdmzReQxAayyJZsyVYwYhVyax2thKcGknmQy5nQ"},
{"name": "Kapis", "pubkey": "24jaf8XhYZyDyUb7hMcy5qsanaHBC11AwPefcCQRBQNA"},
{"name": "Matograine", "pubkey": "CmFKubyqbmJWbhyH2eEPVSSs4H4NeXGDfrETzEnRFtPd"}
],
"plugins":{ "plugins":{
"es": { "es": {
"enable": true, "enable": false,
"askEnable": false, "askEnable": false,
"host": "g1-test.data.duniter.fr", "useRemoteStorage": false,
"host": "g1-test.data.e-is.pro",
"port": 443, "port": 443,
"notifications": { "notifications": {
"txSent": true, "txSent": true,
...@@ -148,10 +192,12 @@ ...@@ -148,10 +192,12 @@
"dev": { "dev": {
"cacheTimeMs": 300000, "cacheTimeMs": 300000,
"demo": false,
"readonly": false,
"fallbackLanguage": "fr-FR", "fallbackLanguage": "fr-FR",
"defaultLanguage": "fr-FR", "defaultLanguage": "fr-FR",
"rememberMe": true, "rememberMe": true,
"showUDHistory": false, "showUDHistory": true,
"timeout": 300000, "timeout": 300000,
"timeWarningExpireMembership": 5184000, "timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000, "timeWarningExpire": 7776000,
...@@ -162,25 +208,30 @@ ...@@ -162,25 +208,30 @@
"helptip": { "helptip": {
"enable": false, "enable": false,
"installDocUrl": { "installDocUrl": {
"fr-FR": "http://www.le-sou.org/devenir-noeud/", "fr-FR": "https://duniter.fr/wiki/doc/installer/",
"en": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" "en": "https://duniter.org/en/wiki/duniter/install/"
} }
}, },
"license": { "license": {
"fr-FR": "license/license_g1-fr-FR.txt", "en": "license/license_g1-en",
"en": "license/license_g1-en.txt" "fr-FR": "license/license_g1-fr-FR",
"es-ES": "license/license_g1-es-ES",
"eo-EO": "license/license_g1-eo-EO",
"pt-PT": "license/license_g1-pt-PT",
"it-IT": "license/license_g1-it-IT",
"de-DE": "license/license_g1-de-DE"
}, },
"node": { "node": {
"host": "localhost", "host": "g1.e-is.pro",
"port": 9600 "port": 443
}, },
"fallbackNodes": [{ "fallbackNodes": [{
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
{ {
"host": "g1.duniter.fr", "host": "g1.e-is.pro",
"port": "443" "port": 443
} }
], ],
"plugins":{ "plugins":{
...@@ -190,6 +241,16 @@ ...@@ -190,6 +241,16 @@
"host": "localhost", "host": "localhost",
"port": 9200, "port": 9200,
"wsPort": 9400, "wsPort": 9400,
"fallbackNodes": [
{
"host": "g1.data.le-sou.org",
"port": 443
},
{
"host": "g1.data.e-is.pro",
"port": 443
}
],
"notifications": { "notifications": {
"txSent": true, "txSent": true,
"txReceived": true, "txReceived": true,
...@@ -201,9 +262,6 @@ ...@@ -201,9 +262,6 @@
"graph": { "graph": {
"enable": true "enable": true
}, },
"neo4j": {
"enable": true
},
"rml9": { "rml9": {
"enable": true "enable": true
} }
...@@ -212,9 +270,11 @@ ...@@ -212,9 +270,11 @@
"dev_g1": { "dev_g1": {
"cacheTimeMs": 300000, "cacheTimeMs": 300000,
"demo": false,
"readonly": false,
"fallbackLanguage": "en", "fallbackLanguage": "en",
"rememberMe": true, "rememberMe": true,
"showUDHistory": false, "showUDHistory": true,
"timeout": 300000, "timeout": 300000,
"timeWarningExpireMembership": 5184000, "timeWarningExpireMembership": 5184000,
"timeWarningExpire": 7776000, "timeWarningExpire": 7776000,
...@@ -226,15 +286,23 @@ ...@@ -226,15 +286,23 @@
"httpsMode": false, "httpsMode": false,
"helptip": { "helptip": {
"enable": false, "enable": false,
"installDocUrl": "https://github.com/duniter/duniter/blob/master/doc/install-a-node.md" "installDocUrl": {
"fr-FR": "https://duniter.fr/wiki/doc/installer/",
"en": "https://duniter.org/en/wiki/duniter/install/"
}
}, },
"license": { "license": {
"fr-FR": "license/license_g1-fr-FR.txt", "en": "license/license_g1-en",
"en": "license/license_g1-en.txt" "fr-FR": "license/license_g1-fr-FR",
"es-ES": "license/license_g1-es-ES",
"eo-EO": "license/license_g1-eo-EO",
"pt-PT": "license/license_g1-pt-PT",
"it-IT": "license/license_g1-it-IT",
"de-DE": "license/license_g1-de-DE"
}, },
"node": { "node": {
"host": "g1.duniter.org", "host": "g1.duniter.org",
"port": "443" "port": 443
}, },
"plugins":{ "plugins":{
"es": { "es": {
...@@ -248,9 +316,6 @@ ...@@ -248,9 +316,6 @@
"graph": { "graph": {
"enable": true "enable": true
}, },
"neo4j": {
"enable": true
},
"rml9": { "rml9": {
"enable": true "enable": true
} }
......
{
"name": "cesium",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.3.1",
"ionic-material": "0.4.2"
},
"dependencies": {
"angular-messages": "1.3.13",
"robotodraft": "1.1.0",
"angular-moment": "^0.10.3",
"angular-animate": "1.4.3",
"angular-sanitize": "1.5.3",
"angular": "1.5.3",
"angular-bind-notifier": "^1.1.7",
"angular-image-crop": "^2.0.0",
"ng-idle": "^1.3.2",
"chart.js": "chartjs#^2.6.0",
"Leaflet.awesome-markers": "^2.0.2",
"leaflet-search": "^2.7.2",
"angular-leaflet-directive": "angular-leaflet#^0.10.0",
"Leaflet.EasyButton": "~1.3.2",
"leaflet.loading": "Leaflet.loading#^0.1.24",
"ui-leaflet": "^2.0.0"
},
"resolutions": {
"angular-sanitize": "1.5.3",
"angular-animate": "1.5.3",
"angular": "1.5.3",
"ionic": "1.3.1"
}
}
{
"android": {
},
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "3TH8P5JJ9J",
"automaticProvisioning": true,
"packageType": "development"
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "3TH8P5JJ9J",
"automaticProvisioning": true,
"packageType": "app-store"
}
}
}
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="15200" id="fr.duniter.cesium" version="0.15.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <widget android-versionCode="107140" id="fr.duniter.cesium" ios-CFBundleIdentifier="org.duniter.cesium" version="1.7.14" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Cesium</name> <name>Cesium</name>
<description> <description>
An simple App for Duniter wallet An simple App for Duniter wallet
...@@ -15,30 +15,48 @@ ...@@ -15,30 +15,48 @@
<allow-intent href="sms:*" /> <allow-intent href="sms:*" />
<allow-intent href="mailto:*" /> <allow-intent href="mailto:*" />
<allow-intent href="geo:*" /> <allow-intent href="geo:*" />
<allow-intent href="june:*" />
<allow-intent href="web+june:*" />
<allow-navigation href="http://*/*" /> <allow-navigation href="http://*/*" />
<allow-navigation href="https://*/*" /> <allow-navigation href="https://*/*" />
<allow-navigation href="data:*" /> <allow-navigation href="data:*" />
<allow-navigation href="june:*" />
<allow-navigation href="web+june:*" />
<icon src="www/img/logo_96px.png" /> <icon src="www/img/logo_96px.png" />
<preference name="webviewbounce" value="false" /> <preference name="webviewbounce" value="false" />
<preference name="UIWebViewBounce" value="false" /> <preference name="UIWebViewBounce" value="false" />
<preference name="DisallowOverscroll" value="true" /> <preference name="DisallowOverscroll" value="true" />
<preference name="SplashScreen" value="screen" /> <preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="4000" /> <preference name="SplashScreenDelay" value="4000" />
<preference name="KeyboardDisplayRequiresUserAction" value="false" />
<preference name="KeyboardResizeMode" value="ionic" />
<preference name="xwalkVersion" value="19" /> <preference name="xwalkVersion" value="19" />
<preference name="xwalkMultipleApk" value="false" /> <preference name="xwalkMultipleApk" value="false" />
<preference name="android-minSdkVersion" value="16" /> <preference name="StatusBarOverlaysWebView" value="false" />
<preference name="android-targetSdkVersion" value="25" /> <preference name="StatusBarBackgroundColor" value="#000" />
<allow-navigation href="*" /> <preference name="StatusBarStyle" value="lightcontent" />
<preference name="loadUrlTimeoutValue" value="700000" />
<hook src="scripts/hooks/before_prepare.js" type="before_prepare" />
<hook src="scripts/hooks/after_prepare.js" type="after_prepare" />
<hook src="scripts/hooks/before_compile.js" type="before_compile" />
<feature name="StatusBar"> <feature name="StatusBar">
<param name="ios-package" onload="true" value="CDVStatusBar" /> <param name="ios-package" onload="true" value="CDVStatusBar" />
</feature> </feature>
<feature name="Device"> <feature name="Device">
<param name="android-package" onload="true" value="org.apache.cordova.device.Device" /> <param name="android-package" onload="true" value="org.apache.cordova.device.Device" />
</feature> </feature>
<feature name="MiniSodium"> <feature name="Custom URL scheme">
<param name="android-package" onload="true" value="me.lockate.plugins.MiniSodium" /> <param name="id" value="cordova-plugin-customurlscheme" />
<param name="url" value="https://github.com/EddyVerbruggen/Custom-URL-scheme.git" />
<variable name="URL_SCHEME" value="june" />
</feature> </feature>
<platform name="android"> <platform name="android">
<preference name="AndroidLaunchMode" value="singleTask" />
<preference name="AndroidInsecureFileModeEnabled" value="true" />
<preference name="android-minSdkVersion" value="22" />
<preference name="android-targetSdkVersion" value="33" />
<preference name="android-compileSdkVersion" value="33" />
<preference name="AndroidPersistentFileLocation" value="Compatibility" />
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" /> <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" /> <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" /> <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
...@@ -60,56 +78,84 @@ ...@@ -60,56 +78,84 @@
</platform> </platform>
<platform name="ios"> <platform name="ios">
<preference name="BackupWebStorage" value="local" /> <preference name="BackupWebStorage" value="local" />
<icon height="57" src="resources/ios/icon/icon.png" width="57" /> <preference name="StatusBarOverlaysWebView" value="true" />
<icon height="114" src="resources/ios/icon/icon@2x.png" width="114" /> <preference name="KeyboardShrinksView" value="true" />
<icon height="40" src="resources/ios/icon/icon-40.png" width="40" /> <icon height="20" src="resources/ios/icon/Icon-App-20x20@1x.png" width="20" />
<icon height="80" src="resources/ios/icon/icon-40@2x.png" width="80" /> <icon height="40" src="resources/ios/icon/Icon-App-20x20@2x.png" width="40" />
<icon height="50" src="resources/ios/icon/icon-50.png" width="50" /> <icon height="60" src="resources/ios/icon/Icon-App-20x20@3x.png" width="60" />
<icon height="100" src="resources/ios/icon/icon-50@2x.png" width="100" /> <icon height="29" src="resources/ios/icon/Icon-App-29x29@1x.png" width="29" />
<icon height="60" src="resources/ios/icon/icon-60.png" width="60" /> <icon height="58" src="resources/ios/icon/Icon-App-29x29@2x.png" width="58" />
<icon height="120" src="resources/ios/icon/icon-60@2x.png" width="120" /> <icon height="87" src="resources/ios/icon/Icon-App-29x29@3x.png" width="87" />
<icon height="180" src="resources/ios/icon/icon-60@3x.png" width="180" /> <icon height="40" src="resources/ios/icon/Icon-App-40x40@1x.png" width="40" />
<icon height="72" src="resources/ios/icon/icon-72.png" width="72" /> <icon height="80" src="resources/ios/icon/Icon-App-40x40@2x.png" width="80" />
<icon height="144" src="resources/ios/icon/icon-72@2x.png" width="144" /> <icon height="120" src="resources/ios/icon/Icon-App-40x40@3x.png" width="120" />
<icon height="76" src="resources/ios/icon/icon-76.png" width="76" /> <icon height="50" src="resources/ios/icon/Icon-App-50x50@1x.png" width="50" />
<icon height="152" src="resources/ios/icon/icon-76@2x.png" width="152" /> <icon height="100" src="resources/ios/icon/Icon-App-50x50@2x.png" width="100" />
<icon height="29" src="resources/ios/icon/icon-small.png" width="29" /> <icon height="57" src="resources/ios/icon/Icon-App-57x57@1x.png" width="57" />
<icon height="58" src="resources/ios/icon/icon-small@2x.png" width="58" /> <icon height="114" src="resources/ios/icon/Icon-App-57x57@2x.png" width="114" />
<icon height="87" src="resources/ios/icon/icon-small@3x.png" width="87" /> <icon height="120" src="resources/ios/icon/Icon-App-60x60@2x.png" width="120" />
<icon height="180" src="resources/ios/icon/Icon-App-60x60@3x.png" width="180" />
<icon height="72" src="resources/ios/icon/Icon-App-72x72@1x.png" width="72" />
<icon height="144" src="resources/ios/icon/Icon-App-72x72@2x.png" width="144" />
<icon height="76" src="resources/ios/icon/Icon-App-76x76@1x.png" width="76" />
<icon height="152" src="resources/ios/icon/Icon-App-76x76@2x.png" width="152" />
<icon height="167" src="resources/ios/icon/Icon-App-83.5x83.5@2x.png" width="167" />
<icon height="1024" src="resources/ios/icon/ItunesArtwork@2x.png" width="1024" />
<splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" /> <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" /> <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
<splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" /> <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
<splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" /> <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
<splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" /> <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
<splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" /> <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
<splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" /> <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
<splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" /> <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" /> <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
<splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" /> <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
<splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
<splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
<splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
<edit-config file="*-Info.plist" mode="merge" target="NSCameraUsageDescription">
<string>To scan QRCode</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="NSPhotoLibraryUsageDescription">
<string>To choose a profile picture</string>
</edit-config>
<edit-config file="*-Info.plist" mode="merge" target="CFBundleURLSchemes">
<string>june</string>
</edit-config>
<config-file mode="add" parent="ITSAppUsesNonExemptEncryption" target="*-Info.plist">
<false />
</config-file>
</platform> </platform>
<platform name="firefoxos"> <plugin name="cordova-plugin-camera" spec="^4.1.0">
<icon height="128" src="www/img/logo_128px.png" width="128" /> <variable name="CAMERA_USAGE_DESCRIPTION" value="Add picture to the user profile" />
<icon height="60" src="www/img/logo_60px.png" width="60" /> <variable name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Take a picture for the user profile" />
</platform> <variable name="ANDROID_SUPPORT_V4_VERSION" value="28.+" />
<platform name="ubuntu"> </plugin>
<icon height="57" src="www/img/logo_57px.png" width="57" /> <plugin name="cordova-plugin-ionic-webview" spec="^4.2.1">
</platform> <variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="28.+" />
<engine name="android" spec="^6.2.3" /> </plugin>
<plugin name="cordova-plugin-camera" spec="^2.4.1" /> <plugin name="cordova-plugin-device" spec="^2.1.0" />
<plugin name="cordova-plugin-console" spec="^1.0.7" /> <plugin name="cordova-plugin-dialogs" spec="^2.0.2" />
<plugin name="cordova-plugin-device" spec="^1.1.6" /> <plugin name="cordova-clipboard" spec="^1.3.0" />
<plugin name="cordova-plugin-dialogs" spec="^1.3.3" /> <plugin name="cordova-plugin-splashscreen" spec="^6.0.2" />
<plugin name="cordova-plugin-inappbrowser" spec="^1.7.1" /> <plugin name="cordova-plugin-statusbar" spec="^3.0.0" />
<plugin name="cordova-plugin-minisodium" spec="^1.0.0" /> <plugin name="cordova-plugin-file" spec="^6.0.2" />
<plugin name="cordova-plugin-secure-storage" spec="^2.6.8" /> <plugin name="cordova-plugin-vibration" spec="^3.1.1" />
<plugin name="cordova-plugin-splashscreen" spec="^3.2.2" />
<plugin name="cordova-plugin-statusbar" spec="^2.2.3" />
<plugin name="cordova-plugin-vibration" spec="^2.1.5" />
<plugin name="cordova-plugin-websocket" spec="^0.12.2" /> <plugin name="cordova-plugin-websocket" spec="^0.12.2" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.2" /> <plugin name="cordova-plugin-ionic-keyboard" spec="^2.2.0" />
<plugin name="cordova-plugin-x-toast" spec="^2.6.0" /> <plugin name="cordova-plugin-androidx-adapter" spec="^1.1.3" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" /> <plugin name="cordova-plugin-x-toast" spec="^2.7.3" />
<plugin name="phonegap-plugin-barcodescanner" spec="git+https://github.com/phonegap/phonegap-plugin-barcodescanner.git"> <plugin name="phonegap-plugin-barcodescanner" spec="^8.1.0">
<variable name="CAMERA_USAGE_DESCRIPTION" value=" " /> <variable name="CAMERA_USAGE_DESCRIPTION" value="To scan QRCode" />
<variable name="ANDROID_SUPPORT_V4_VERSION" value="28.+" />
</plugin>
<plugin name="cordova-plugin-customurlscheme" spec="^5.0.2">
<variable name="URL_SCHEME" value="june" />
</plugin> </plugin>
<plugin name="cordova-plugin-network-information" spec="~3.0.0">
</plugin>
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
</widget> </widget>
Subproject commit 17788c85b43b1fa75287a80454349948068cc457
Subproject commit 4b5e3aef13e93c507fbf24c8aef832ada65f64ef
# Build Cesium for Android
Cesium can be build as an Android App.
Cesium use [Ionic Framework v1.7.16](http://ionicframework.com/docs/v1/) with some Apache Cordova plugins.
## Prerequisites
### Install the development environment
Follow all the steps defined in the [Development guide](./development_guide.md).
After that you should be able to start the application using `npm start`, and to test it.
### Install JDK (Java Development Kit)
You can choose to install
- on Linux, install OpenJDK 11:
* ``sudo apt-get install openjdk-11-jdk``
- or Oracle JDK 8 (all platforms supported):
* Download it from [Oracle web site](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
<img src="./fr/img/fef4f4dfe7c2168cb27c9e7f5e399fd547ce774a.png" width="400">
And choose the right version, depending on your platform.
### Install Android Studio
Download Android Studio from the [AndroidStudio-Downloads page](https://developer.android.com/studio/index.html#downloads)
- On MS Windows:
* Download file **without** the Android SDK:
<img src="./fr/img/3b8fa2f5c0465b13ae5ce74d49702e0c9f027866.png" width="690" height="237">
* Then follow installation steps.
- On Linux :
* download the full archive, then uncompress it (e.g in `/opt/android-sdk`).
* open a terminal, run the command:
```bash
./bin/studio.sh
```
At the end of the installation or the first launch, Android Studio will indicate that you do not have an SDK and will propose to install it.
Install the version that it proposes to you.
### Install Android NDK
> The NDK is used for code execution in C ++, need to build the NaCL cryptography library.
- Download NDK from [this page](https://developer.android.com/ndk/downloads/index.html)
* **Warning**: Please use version `r10d` (not tested on newer versions).
- Uncompress the archive (e.g on Linux, in a new directory `/opt/android-ndk`).
- Launch Android-studio, then open the menu `File > Project Structure...`
<img src="./fr/img/04e64b769cbd45b9d275cd5f81002a399a1a7684.png" width="300">
- A window like this should open:
<img src="./fr/img/ceb75301172038e75f5c43b328dd7febd7bedc7e.png" width="450">
- Fill in the installation path of the NDK.
### Install Gradle
- Download [Gradle 4.1](wget https://services.gradle.org/distributions/gradle-4.1-bin.zip)
- Uncompress the archive (e.g in `/opt/gradle`).
## Android configuration
Android need some configuration, to be able to build Cesium.
- First, create a properties file `local.properties` in the directory `platforms/android`:
```properties
# Path to your Android SDK installation
sdk.dir=/opt/android-sdk
# Path to your Android NDK installation
ndk.dir=/opt/android-ndk
```
- In order to sign your Android builds:
* Generate a new keystore file :
```
keytool -genkey -v -keystore Cesium.keystore -alias Cesium -keyalg RSA -keysize 2048 -validity 10000`
```
* Create a file `release-signing.properties` in the directory `platforms/android`:
```properties
storeFile=/path/to/Cesium.keystore
keyAlias=Cesium
storePassword=YourStorePassword
keyPassword=YourKeyPassword
```
- Open Android Studio, then open the menu `File > Settings...`. Set `Gradle Home` to your fresh Gradle installation directory (e.g. `/opt/gradle`).
## Generate APK file
- To build a signed APK file:
```
ionic build android --release
```
- To build an unsigned (debug) APK:
```
ionic build android
```
Generated APK files should be in the directory `platforms/android/build/outputs/apk`.
### Troubleshooting
#### "Cannot run program (...)/aapt"
If you get this error:
```
Cannot run program "/opt/android-sdk/build-tools/21.1.2/aapt": error=2, No such file or folder
```
Then install two additional compatibility libraries (workaround found in [this post](http://stackoverflow.com/questions/22701405/aapt-ioexception-error-2-no-such-file-or-directory-why-cant-i-build-my-grad)):
```bash
sudo apt-get install lib32stdc++6 lib32z1
```