Skip to content

Commit

Permalink
Merge pull request #20 from peaqnetwork/build/1201814544319626_apk-bu…
Browse files Browse the repository at this point in the history
…ild-support

update: flutter based image and dev branch trigger
  • Loading branch information
niazhussain authored Feb 15, 2022
2 parents c0ee6dc + 25a779f commit 9b0e1c4
Show file tree
Hide file tree
Showing 8 changed files with 105 additions and 16 deletions.
55 changes: 55 additions & 0 deletions .lighthouse/jenkins-x/devbranch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
creationTimestamp: null
name: devbranch
spec:
pipelineSpec:
tasks:
- name: from-build-pack
resources: {}
taskSpec:
metadata: {}
stepTemplate:
env:
- name: NPM_CONFIG_USERCONFIG
value: /tekton/home/npm/.npmrc
image: uses:jenkins-x/jx3-pipeline-catalog/tasks/flutter/release.yaml@versionStream
name: ""
resources:
requests:
cpu: 400m
memory: 512Mi
volumeMounts:
- mountPath: /tekton/home/npm
name: npmrc
workingDir: /workspace/source
steps:
- image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
name: ""
resources: {}
- name: next-version
resources: {}
- name: jx-variables
resources: {}
- image: cirrusci/flutter:2.5.3
name: build
resources: {}
script: |
#!/usr/bin/bash
flutter clean
flutter pub upgrade
flutter doctor -v
flutter pub get
flutter build apk
- name: promote-release
resources: {}
volumes:
- name: npmrc
secret:
optional: true
secretName: npmrc
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
status: {}
10 changes: 9 additions & 1 deletion .lighthouse/jenkins-x/pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,16 @@ spec:
resources: {}
- name: jx-variables
resources: {}
- name: build
- image: cirrusci/flutter:2.5.3
name: build
resources: {}
script: |
#!/usr/bin/bash
flutter clean
flutter pub upgrade
flutter doctor -v
flutter pub get
flutter build apk
podTemplate: {}
serviceAccountName: tekton-bot
timeout: 12h0m0s
Expand Down
10 changes: 9 additions & 1 deletion .lighthouse/jenkins-x/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ spec:
resources: {}
- name: jx-variables
resources: {}
- name: build
- image: cirrusci/flutter:2.5.3
name: build
resources: {}
script: |
#!/usr/bin/bash
flutter clean
flutter pub upgrade
flutter doctor -v
flutter pub get
flutter build apk
- name: promote-release
resources: {}
volumes:
Expand Down
8 changes: 8 additions & 0 deletions .lighthouse/jenkins-x/triggers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ spec:
always_run: true
optional: false
source: "pullrequest.yaml"
ignore_changes: "OWNERS"
postsubmits:
- name: devbranch
context: "devbranch"
source: "devbranch.yaml"
ignore_changes: "OWNERS"
branches:
- ^dev$
- name: release
context: "release"
source: "release.yaml"
ignore_changes: "OWNERS"
branches:
- ^main$
- ^master$
11 changes: 10 additions & 1 deletion OWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
approvers:
- Veleslavskiy
- MarynaShevchuk
- niazhussain
- dorloechter
- faisalthaheem
- kosswest
reviewers:
- niazhussain
- faisalthaheem
- irediaes
- johnotu
- NotSoFancyName
- sfffaaa
6 changes: 0 additions & 6 deletions OWNERS_ALIASES

This file was deleted.

4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
compileSdkVersion 30
compileSdkVersion 31

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
Expand All @@ -45,7 +45,7 @@ android {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "network.peaq.charmev"
minSdkVersion 21
targetSdkVersion 30
targetSdkVersion 31
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
}
Expand Down
17 changes: 12 additions & 5 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand Down Expand Up @@ -105,7 +105,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -379,7 +379,14 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.3"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -673,7 +680,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.8"
timing:
dependency: transitive
description:
Expand All @@ -694,7 +701,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
watcher:
dependency: transitive
description:
Expand Down

0 comments on commit 9b0e1c4

Please sign in to comment.