Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
fix: Fastlane scripts.
Browse files Browse the repository at this point in the history
Update screenshots.
Update changelog.
Update README.

close #62
  • Loading branch information
Moncef AOUDIA authored and aoudiamoncef committed Apr 27, 2018
1 parent 46d935b commit b873d3e
Show file tree
Hide file tree
Showing 39 changed files with 83 additions and 29 deletions.
10 changes: 0 additions & 10 deletions .idea/kotlinc.xml

This file was deleted.

7 changes: 6 additions & 1 deletion .idea/misc.xml

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

2 changes: 1 addition & 1 deletion .idea/modules.xml

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

1 change: 0 additions & 1 deletion .idea/vcs.xml

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

11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,16 @@ script:
- curl -i -XPOST http://127.0.0.1:8086/query --data-urlencode "q=CREATE DATABASE test"
- ./gradlew clean test build
before_deploy:
- bundle install && bundle update fastlane
- cd app/build/outputs/apk/release
- ls -all
- bundle exec fastlane supply --apk Apolline*.apk
- mv Apolline*.apk Apolline.apk
- export APK_PATH_TEMP="$(pwd)/Apolline*.apk" && export APK_PATH=$(echo ${APK_PATH_TEMP}) && echo $APK_PATH
- cd ${TRAVIS_BUILD_DIR}
- bundle install && bundle update fastlane
- bundle exec fastlane beta
- bundle exec fastlane deploy
deploy:
provider: releases
skip_cleanup: true
file: Apolline.apk
file: ${APK_PATH}
api_key: $GH_TOKEN
on:
repo: Apolline-Lille/apolline-android
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Supported sensors:
* [RxBluetooth](https://github.com/IvBaranov/RxBluetooth) - Android reactive bluetooth library. Basically, RxBluetooth is just wrapper around android BluetoothAdapter.
* [Android-CircleMenu](https://github.com/szugyi/Android-CircleMenu) - Simple implementation of a circle menu for Android applications.
* [Android Ripple Background](https://github.com/skyfishjy/android-ripple-background) - A beautiful ripple animation. Gives ability to easily change its color, speed of wave, one ripple or multiple ripples.

* [Fastlane](https://github.com/fastlane/fastlane) - Fastlane is a tool for iOS and Android developers to automate tedious tasks like generating screenshots, dealing with provisioning profiles, and releasing your application..
## Download (Unreleased)

<a href="https://play.google.com/store/apps/details?id=science.apolline"> <img src="https://storage.googleapis.com/support-kms-prod/9DB3D190FD6DC8155EEDBCDEB4942128BE6B" alt="Play Store" width="200" height="60"></a>
Expand Down
3 changes: 2 additions & 1 deletion fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
json_key_file("${secret_credentials}")
json_key_file("play_store_credentials.json")
#json_key_file("${secret_credentials}")
package_name("science.apolline")
21 changes: 13 additions & 8 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,21 @@ platform :android do

desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")
crashlytics

# sh "your_script.sh"
# You can also use other beta testing services here
end
crashlytics(
api_token: ENV["FABRIC_API_TOKEN"],
build_secret: ENV["FABRIC_BUILD_SECRET"],
apk_path: ENV["APK_PATH"]
)

end
desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean assembleRelease")
upload_to_play_store
begin
supply(track: "production",
package_name: "science.apolline",
apk: ENV["APK_PATH"])
rescue => exception
on_error(exception)
end
end
end
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Add basic user preferences.
- Add stop and start service button.
- Improve user interface.
- Fix some bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Fix CSV format.
- Fix pmX_above unit.
- Fix some bugs.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Add longitude and latitude to CSV export.
- Display current application version.
- Add clean UUID generator.
- Fix some bugs.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Add user activity detection.
- Add chart settings.
- Adjust landscape IOIO view from 3x2 to 2x3.
- Fix some bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/16.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add synchronisation policies.
- Add export to multiple CSVs (file/day) => (added in v2.3.4) .
- Fix some bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Add splash screen.
- Add embedded Bluetooth management.
- Fix some bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/en-US/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Apolline is an indoor / outdoor air pollution monitoring application that uses a dedicated sensor to collect particulate readings (PM1 / PM2.5 / PM10) from the ambient air.

Apolline is developed by Inria and the University of Lille for research purposes.
Binary file added fastlane/metadata/android/en-US/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Application for air pollution monitoring
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-US/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Apolline
Empty file.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Ajout des préférences utilisateur basiques.
- Ajout des fonction "arrêt" et "démarrer" du service.
- Amélioration de l'interface utilisateur.
- Correction de quelques bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Correction du format CSV.
- Correction de l'unité pmX_above.
- Correction de quelques bugs.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/13.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Ajout de la longitude et la latitude à l'exportation CSV.
- Affichage la version actuelle de l'application.
- Ajout d'un générateur UUID propre.
- Correction de quelques bugs.
4 changes: 4 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/14.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Ajout de la détection de l'activité de l'utilisateur.
- Ajout des paramètres du graphe.
- Ajustement de la vue IOIO paysage de 3x2 à 2x3.
- Correction de quelques bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/16.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Ajout des politiques de synchronisation.
- Ajout de l'exportation en plusieurs fichiers CSV (fichier / jour) => (ajoutée dans la version 2.3.4).
- Correction de quelques bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/fr-FR/changelogs/17.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Ajout d'un écran d'accueil.
- Ajout de la gestion du Bluetooth intégrée.
- Correction de quelques bugs.
3 changes: 3 additions & 0 deletions fastlane/metadata/android/fr-FR/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Apolline est une application de suivi de la pollution de l'air intérieur/extérieur qui utilise un capteur dédié pour collecter les relevés de particules (PM1/PM2.5/PM10) dans l'air ambiant.

Apolline est développée par Inria et l'Université de Lille à des fins de recherche.
Binary file added fastlane/metadata/android/fr-FR/images/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr-FR/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Application de suivi de la pollution de l'air
1 change: 1 addition & 0 deletions fastlane/metadata/android/fr-FR/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Apolline
Empty file.
3 changes: 2 additions & 1 deletion scripts/writeEnvVariables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function copyEnvVarsToManifest {
export ANDROID_MANIFEST
echo "AndroidManifest should exist at $ANDROID_MANIFEST"
sed -i -e "s/\"\${google_map_api_key}\"/"\"$GOOGLE_MAP_API_KEY\""/g" $ANDROID_MANIFEST
sed -i -e "s/\"\${fabric_api_key}\"/"\"$FABRIC_API_KEY\""/g" $ANDROID_MANIFEST
sed -i -e "s/\"\${fabric_api_key}\"/"\"$FABRIC_API_TOKEN\""/g" $ANDROID_MANIFEST
}

function copyEnvVarsToSigningProperties {
Expand All @@ -20,6 +20,7 @@ function copyEnvVarsToSigningProperties {

function copyEnvVarsToFastlaneConfiguration {
FASTLANE_CREDENTIAL=${TRAVIS_BUILD_DIR}"/fastlane/Appfile"

export FASTLANE_CREDENTIAL
echo "Appfile should exist at $FASTLANE_CREDENTIAL"
sed -i -e "s/\"\${secret_credentials}\"/"\"$FASTLANE_FILE\""/g" $FASTLANE_CREDENTIAL
Expand Down

0 comments on commit b873d3e

Please sign in to comment.