Skip to content
Snippets Groups Projects
Commit 991eebb4 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Translate/update/fix/clean/rename app, set french dictionary, add CI/CD

parent cc150c7b
No related branches found
No related tags found
1 merge request!1Resolve "First commit - initial import"
Pipeline #664 passed
Showing
with 58 additions and 9 deletions
...@@ -160,3 +160,4 @@ app.*.symbols ...@@ -160,3 +160,4 @@ app.*.symbols
# Obfuscation related # Obfuscation related
app.*.map.json app.*.map.json
.glci
image: cirrusci/flutter:latest
stages:
- test
- update
- build
- deploy
tests:
stage: test
script:
- flutter test
interruptible: true
update:
stage: update
script:
- flutter packages get
- flutter packages upgrade
interruptible: true
android:build:
stage: build
script:
# Flutter local configuration
- echo flutter.sdk=$FLUTTER_PATH > android/local.properties
- echo sdk.dir=$ANDROID_SDK_PATH >> android/local.properties
- echo flutter.buildMode=release >> android/local.properties
# Android signing
- ANDROID_KEYSTORE_PATH=my.keystore
- echo $ANDROID_KEYSTORE_FILE | base64 -d > $ANDROID_KEYSTORE_PATH
- echo storePassword=$ANDROID_KEY_STORE_PASSWORD > android/key.properties
- echo keyPassword=$ANDROID_KEY_PASSWORD >> android/key.properties
- echo keyAlias=$ANDROID_KEY_ALIAS >> android/key.properties
- echo storeFile=$ANDROID_KEYSTORE_PATH >> android/key.properties
# build flutter app
- flutter build apk
artifacts:
paths:
- build/app/outputs/apk/release/app-release.apk
expire_in: 1 week
interruptible: true
android:deploy:
stage: deploy
only:
- master
dependencies:
- android:build
script:
- wget ${REPOSITORY_UPDATE_WEBHOOK}?token=${REPOSITORY_TOKEN}
...@@ -3,6 +3,6 @@ Hangman ...@@ -3,6 +3,6 @@ Hangman
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" [<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png"
alt="Get it on F-Droid" alt="Get it on F-Droid"
height="80">](https://f-droid.org/packages/com.hangman/) height="80">](https://f-droid.org/packages/org.benoitharrault.hangman/)
GNU General Public License (GPLv3). GNU General Public License (GPLv3).
gradle-wrapper.jar gradle-wrapper.jar
/.gradle /.gradle
/captures/ /captures/
/gradlew
/gradlew.bat
/local.properties /local.properties
GeneratedPluginRegistrant.java GeneratedPluginRegistrant.java
......
...@@ -33,7 +33,7 @@ android { ...@@ -33,7 +33,7 @@ android {
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.ahorcado" applicationId "org.benoitharrault.hangman"
minSdkVersion 21 minSdkVersion 21
targetSdkVersion 29 targetSdkVersion 29
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ahorcado"> package="org.benoitharrault.hangman">
<!-- Flutter needs it to communicate with the running application <!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc. to allow setting breakpoints, to provide hot reload, etc.
--> -->
......
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ahorcado"> package="org.benoitharrault.hangman">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that <!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method. calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide In most cases you can leave this as-is, but you if you want to provide
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
FlutterApplication and put your custom class here. --> FlutterApplication and put your custom class here. -->
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.INTERNET"/>
<application <application
android:name="io.flutter.app.FlutterApplication" android:label="Hangman"
android:label="Ahorcado"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
......
package com.ahorcado; package org.benoitharrault.hangman;
import io.flutter.embedding.android.FlutterActivity; import io.flutter.embedding.android.FlutterActivity;
......
android/app/src/main/res/mipmap-hdpi/ic_launcher.png

8.36 KiB

android/app/src/main/res/mipmap-hdpi/ic_launcher.webp

932 B

android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png

17.3 KiB

android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp

1.91 KiB

android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png

8.36 KiB

android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp

932 B

android/app/src/main/res/mipmap-mdpi/ic_launcher.png

4.67 KiB

android/app/src/main/res/mipmap-mdpi/ic_launcher.webp

670 B

android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png

9.17 KiB

android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp

1.34 KiB

android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png

4.67 KiB

android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp

670 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment