Compare commits

...

2 Commits

Author SHA1 Message Date
3816a01fdf jenkinsfile fix
Some checks are pending
gestemps/comptaplanapp/pipeline/head Build queued...
2021-11-27 17:53:53 +01:00
12eba45ff1 Comptaplan config 2021-11-27 17:51:36 +01:00
10 changed files with 26 additions and 21 deletions

12
Jenkinsfile vendored
View File

@ -7,9 +7,9 @@ pipeline {
buildDiscarder(logRotator(numToKeepStr: '10')) buildDiscarder(logRotator(numToKeepStr: '10'))
} }
parameters { parameters {
string(name: 'APP_TITLE', defaultValue: 'Embedded Webview', description: 'Application title') string(name: 'APP_TITLE', defaultValue: 'My Comptaplan', description: 'Application title')
string(name: 'APP_URI', defaultValue: 'https://www.charlyghislain.com', description: 'Application uri') string(name: 'APP_URI', defaultValue: 'https://my.comptaplan.be', description: 'Application uri')
string(name: 'APP_COLOR', defaultValue: 'red', description: 'Application color (blue, teal, ...)') string(name: 'APP_COLOR', defaultValue: 'blue', description: 'Application color (blue, teal, ...)')
string(name: 'BUILD_MODE', defaultValue: 'debug', description: 'Flutter build mode (debug/release)') string(name: 'BUILD_MODE', defaultValue: 'debug', description: 'Flutter build mode (debug/release)')
string(name: 'UPLOAD_TRACK', defaultValue: 'alpha', description: 'Upload track') string(name: 'UPLOAD_TRACK', defaultValue: 'alpha', description: 'Upload track')
string(name: 'RELEASE_MESSAGE', defaultValue: 'Nouvelle version', description: 'A release message') string(name: 'RELEASE_MESSAGE', defaultValue: 'Nouvelle version', description: 'A release message')
@ -63,12 +63,12 @@ pipeline {
sh ''' sh '''
VERSION_CODE=$(./tools/jenkins-increment-buildnumber.sh || echo $?) VERSION_CODE=$(./tools/jenkins-increment-buildnumber.sh || echo $?)
[ "$VERSION_CODE" == "0" ] && exit 1 [ "$VERSION_CODE" == "0" ] && exit 1
git config user.email "jenkins@valuya.be" git config user.email "jenkins@valuya.com"
git config user.name "Jenkins release" git config user.name "Jenkins release"
git add pubspec.yaml git add pubspec.yaml
git remote add ssh "ssh://git@gitea.fteamdev.valuya.be:2022/fiscalteam/nitro-trustee-mobile.git" git remote add ssh "ssh://git@gitea.valuya.com:2022/Valuya/comptaplan_app.git"
git commit -m "Bump to build $VERSION_CODE" git commit -m "Bump to build $VERSION_CODE"
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/var/run/ssh/known_hosts.gitea.fteamdev.valuya.be" export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/var/run/ssh/known_hosts.gitea.valuya.com"
git push ssh HEAD:$GIT_PUSH_BRANCH git push ssh HEAD:$GIT_PUSH_BRANCH
if [ "$SKIP_PUSH_TAG" != "true" ] ; then if [ "$SKIP_PUSH_TAG" != "true" ] ; then
git tag "$GIT_TAG" git tag "$GIT_TAG"

View File

@ -1,4 +1,4 @@
# embedded_webview # comptaplan_app
An embedded webview An embedded webview

View File

@ -42,19 +42,24 @@ android {
} }
defaultConfig { defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "comptaplan.app"
applicationId "com.charlyghislain.embedded_webview"
minSdkVersion 19 minSdkVersion 19
targetSdkVersion 30 targetSdkVersion 30
versionCode flutterVersionCode.toInteger() versionCode flutterVersionCode.toInteger()
versionName flutterVersionName versionName flutterVersionName
} }
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null
storePassword keystoreProperties['storePassword']
}
}
buildTypes { buildTypes {
release { release {
// TODO: Add your own signing config for the release build. signingConfig signingConfigs.release
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
} }
} }
} }

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.charlyghislain.embedded_webview"> package="com.charlyghislain.comptaplan_app">
<!-- 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.
--> -->

View File

@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.charlyghislain.embedded_webview"> package="comptaplan.app">
<application <application
android:label="embedded_webview" android:label="My Comptaplan"
android:icon="@mipmap/ic_launcher"> android:icon="@mipmap/ic_launcher">
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"

View File

@ -1,4 +1,4 @@
package com.charlyghislain.embedded_webview package com.charlyghislain.comptaplan_app
import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.android.FlutterActivity

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.charlyghislain.embedded_webview"> package="com.charlyghislain.comptaplan_app">
<!-- 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.
--> -->

View File

@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>embedded_webview</string> <string>comptaplan_app</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>

View File

@ -1,4 +1,4 @@
name: embedded_webview name: comptaplan_app
description: An embedded webview description: An embedded webview
# The following line prevents the package from being accidentally published to # The following line prevents the package from being accidentally published to
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1 version: 1.0.0+60
environment: environment:
sdk: ">=2.12.0 <3.0.0" sdk: ">=2.12.0 <3.0.0"

View File

@ -8,7 +8,7 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:embedded_webview/main.dart'; import 'package:comptaplan_app/main.dart';
void main() { void main() {
testWidgets('Counter increments smoke test', (WidgetTester tester) async { testWidgets('Counter increments smoke test', (WidgetTester tester) async {