Skip to content

Commit a4caa75

Browse files
authored
Update cache key (#56)
Fix Restart cache for all commands Update podfile Update cache key Update flutter version fix Gradle migration Multiple fixes Update gradel version Fix pipeline Remove dev orb publish Fix pipeline Go back to orb-tools 11 Use gradlew Generate apk Change order Fix Fix Add debug Fix update settings gradle Update project Commit some extra files Update android image Remove rvm check for android Migrate to orb tools 12 fix fix fix
1 parent ac2bd55 commit a4caa75

File tree

91 files changed

+3680
-357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3680
-357
lines changed

.circleci/config.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: 2.1
22
setup: true
33
orbs:
4-
orb-tools: circleci/orb-tools@11.1
5-
shellcheck: circleci/shellcheck@3.1
4+
orb-tools: circleci/orb-tools@12.3.1
5+
shellcheck: circleci/shellcheck@3.4
66

77
filters: &filters
88
tags:
@@ -21,18 +21,10 @@ workflows:
2121
- shellcheck/check:
2222
exclude: SC2148,SC2038,SC2086,SC2002,SC2016
2323
filters: *filters
24-
- orb-tools/publish:
25-
orb-name: circleci/flutter
26-
github-token: GHI_TOKEN
27-
vcs-type: << pipeline.project.type >>
28-
requires:
29-
[orb-tools/lint, orb-tools/review, orb-tools/pack, shellcheck/check]
30-
# Use a context to hold your publishing token.
31-
context: orb-publisher
32-
filters: *filters
3324
# Triggers the next workflow in the Orb Development Kit.
3425
- orb-tools/continue:
35-
pipeline-number: << pipeline.number >>
36-
vcs-type: << pipeline.project.type >>
37-
requires: [orb-tools/publish]
26+
orb_name: flutter
27+
pipeline_number: << pipeline.number >>
28+
vcs_type: << pipeline.project.type >>
29+
requires: [orb-tools/lint, orb-tools/review, orb-tools/pack, shellcheck/check]
3830
filters: *filters

.circleci/test-deploy.yml

Lines changed: 43 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,76 @@
11
version: 2.1
22
orbs:
3-
flutter: circleci/flutter@dev:<<pipeline.git.revision>>
4-
orb-tools: circleci/orb-tools@11.1
5-
android: circleci/android@3.0.1
3+
flutter: {}
4+
orb-tools: circleci/orb-tools@12.3.1
5+
android: circleci/android@3.1.0
6+
parameters:
7+
cache_version:
8+
type: string
9+
default: v1.2
610
filters: &filters
711
tags:
812
only: /.*/
913
jobs:
1014
integration-test-macos:
1115
macos:
12-
xcode: 14.2.0
16+
xcode: 16.3.0
1317
resource_class: macos.m1.large.gen1
1418
steps:
1519
- checkout
1620
- flutter/install_sdk_and_pub:
17-
app-dir: ./sample
21+
cache_version: <<pipeline.parameters.cache_version >>
22+
version: 3.32.7
23+
app_dir: ./sample
1824
- flutter/install_ios_pod:
19-
repo-update: true
20-
app-dir: ./sample
25+
cache_version: <<pipeline.parameters.cache_version >>
26+
repo_update: true
27+
app_dir: ./sample
2128
- flutter/install_ios_gem:
22-
app-dir: ./sample
29+
cache_version: <<pipeline.parameters.cache_version >>
30+
app_dir: ./sample
2331
- run:
2432
name: 'check that the sdk is installed properly'
2533
command: cd sample && flutter doctor && rbenv version
2634
integration-test-channel-beta:
2735
macos:
28-
xcode: 14.2.0
36+
xcode: 16.3.0
2937
resource_class: macos.m1.large.gen1
3038
steps:
3139
- checkout
3240
- flutter/install_sdk_and_pub:
33-
app-dir: ./sample
41+
cache_version: <<pipeline.parameters.cache_version >>
42+
app_dir: ./sample
3443
channel: beta
3544
version: 3.27.0-0.1.pre
3645
- flutter/install_ios_pod:
37-
repo-update: true
38-
app-dir: ./sample
46+
cache_version: <<pipeline.parameters.cache_version >>
47+
repo_update: true
48+
app_dir: ./sample
3949
- flutter/install_ios_gem:
40-
app-dir: ./sample
50+
cache_version: <<pipeline.parameters.cache_version >>
51+
app_dir: ./sample
4152
- run:
4253
name: 'check that the sdk is installed properly from the beta channel'
4354
command: cd sample && flutter doctor && rbenv version
4455
integration-test-linux:
4556
executor:
4657
name: android/android_machine
47-
tag: '2022.12.1'
58+
tag: '2024.11.1'
4859
steps:
4960
- checkout
5061
- flutter/install_sdk_and_pub:
51-
cache-version: v2
52-
app-dir: ./sample
62+
version: 3.32.7
63+
cache_version: <<pipeline.parameters.cache_version >>
64+
app_dir: ./sample
5365
- flutter/install_android_gradle_dependencies:
54-
app-dir: ./sample
66+
cache_version: <<pipeline.parameters.cache_version >>
67+
app_dir: ./sample
5568
- flutter/install_android_gem:
56-
app-dir: ./sample
69+
cache_version: <<pipeline.parameters.cache_version >>
70+
app_dir: ./sample
5771
- run:
5872
name: 'check that the sdk is installed properly'
59-
command: cd sample && flutter doctor && rvm version
73+
command: cd sample && flutter doctor
6074
workflows:
6175
test-deploy:
6276
jobs:
@@ -68,20 +82,22 @@ workflows:
6882
- integration-test-linux:
6983
filters: *filters
7084
- flutter/unit_test:
71-
app-dir: ./sample
72-
registry: "ghcr.io/cirruslabs"
73-
version: "3.7.7"
85+
cache_version: <<pipeline.parameters.cache_version >>
86+
app_dir: ./sample
87+
version: "3.32.7"
7488
filters: *filters
7589
- flutter/lint:
76-
app-dir: ./sample
90+
version: 3.32.7
91+
cache_version: <<pipeline.parameters.cache_version >>
92+
app_dir: ./sample
7793
filters: *filters
7894
- orb-tools/pack:
7995
filters: *filters
8096
- orb-tools/publish:
81-
orb-name: circleci/flutter
82-
vcs-type: << pipeline.project.type >>
83-
github-token: GHI_TOKEN
84-
pub-type: production
97+
orb_name: circleci/flutter
98+
vcs_type: << pipeline.project.type >>
99+
github_token: GHI_TOKEN
100+
pub_type: production
85101
requires:
86102
- orb-tools/pack
87103
- integration-test-macos

sample/.metadata

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,42 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: d79295af24c3ed621c33713ecda14ad196fd9c31
8-
channel: stable
7+
revision: "d7b523b356d15fb81e7d340bbe52b47f93937323"
8+
channel: "stable"
99

1010
project_type: app
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
17+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
18+
- platform: android
19+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
20+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
21+
- platform: ios
22+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
23+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
24+
- platform: linux
25+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
26+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
27+
- platform: macos
28+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
29+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
30+
- platform: web
31+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
32+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
33+
- platform: windows
34+
create_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
35+
base_revision: d7b523b356d15fb81e7d340bbe52b47f93937323
36+
37+
# User provided section
38+
39+
# List of Local paths (relative to this file) that should be
40+
# ignored by the migrate tool.
41+
#
42+
# Files that are not part of the templates will be ignored by default.
43+
unmanaged_files:
44+
- 'lib/main.dart'
45+
- 'ios/Runner.xcodeproj/project.pbxproj'

sample/analysis_options.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file configures the analyzer, which statically analyzes Dart code to
2+
# check for errors, warnings, and lints.
3+
#
4+
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
5+
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
6+
# invoked from the command line by running `flutter analyze`.
7+
8+
# The following line activates a set of recommended lints for Flutter apps,
9+
# packages, and plugins designed to encourage good coding practices.
10+
include: package:flutter_lints/flutter.yaml
11+
12+
linter:
13+
# The lint rules applied to this project can be customized in the
14+
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
15+
# included above or to enable additional rules. A list of all available lints
16+
# and their documentation is published at https://dart.dev/lints.
17+
#
18+
# Instead of disabling a lint rule for the entire project in the
19+
# section below, it can also be suppressed for a single line of code
20+
# or a specific dart file by using the `// ignore: name_of_lint` and
21+
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
22+
# producing the lint.
23+
rules:
24+
# avoid_print: false # Uncomment to disable the `avoid_print` rule
25+
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
26+
27+
# Additional information about this file can be found at
28+
# https://dart.dev/guides/language/analysis-options

sample/android/.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
gradle-wrapper.jar
1+
# gradle-wrapper.jar
22
/.gradle
33
/captures/
4-
/gradlew
5-
/gradlew.bat
4+
# /gradlew
5+
# /gradlew.bat
66
/local.properties
77
GeneratedPluginRegistrant.java
88

sample/android/app/build.gradle

Lines changed: 0 additions & 59 deletions
This file was deleted.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id("com.android.application")
3+
id("kotlin-android")
4+
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
5+
id("dev.flutter.flutter-gradle-plugin")
6+
}
7+
8+
android {
9+
namespace = "com.example.sample"
10+
compileSdk = flutter.compileSdkVersion
11+
ndkVersion = flutter.ndkVersion
12+
13+
compileOptions {
14+
sourceCompatibility = JavaVersion.VERSION_11
15+
targetCompatibility = JavaVersion.VERSION_11
16+
}
17+
18+
kotlinOptions {
19+
jvmTarget = JavaVersion.VERSION_11.toString()
20+
}
21+
22+
defaultConfig {
23+
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
24+
applicationId = "com.example.sample"
25+
// You can update the following values to match your application needs.
26+
// For more information, see: https://flutter.dev/to/review-gradle-config.
27+
minSdk = flutter.minSdkVersion
28+
targetSdk = flutter.targetSdkVersion
29+
versionCode = flutter.versionCode
30+
versionName = flutter.versionName
31+
}
32+
33+
buildTypes {
34+
release {
35+
// TODO: Add your own signing config for the release build.
36+
// Signing with the debug keys for now, so `flutter run --release` works.
37+
signingConfig = signingConfigs.getByName("debug")
38+
}
39+
}
40+
}
41+
42+
flutter {
43+
source = "../.."
44+
}

sample/android/build.gradle

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)