Skip to content

Commit

Permalink
Fix export on web
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Dec 9, 2024
1 parent 0398a60 commit 630770c
Show file tree
Hide file tree
Showing 14 changed files with 59 additions and 51 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
java-version: "17"
distribution: "temurin"
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: 📦 Get dependencies
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
uses: actions/checkout@v4
- name: Make yq tool available on Windows runners
run: choco install yq
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: ✅ Enable platforms
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
libsecret-1-dev \
libjsoncpp-dev \
rpm
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: ✅ Enable platforms
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
alien \
libsecret-1-dev \
libjsoncpp-dev
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: ✅ Enable platforms
Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
steps:
- name: ⬆️ Checkout
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -388,7 +388,7 @@ jobs:
steps:
- name: ⬆️ Checkout
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: 📦 Get dependencies
Expand Down Expand Up @@ -645,7 +645,7 @@ jobs:
with:
java-version: "17"
distribution: "temurin"
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: 📦 Get dependencies
Expand All @@ -654,7 +654,7 @@ jobs:
- name: Setup Fastlane
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3.5"
ruby-version: "3.3.6"
bundler-cache: true
working-directory: app/android
- name: 🚀 Deploy to Play Store
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: ⬆️ Checkout
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
- name: ⬆️ Checkout
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
token: ${{ secrets.CI_PAT }}
fetch-depth: 0
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: Setup git
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
token: ${{ secrets.CI_PAT }}
ref: ${{ github.ref }}
fetch-depth: 0
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: Setup git
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
with:
token: ${{ secrets.CI_PAT }}
fetch-depth: 0
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: Setup git
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
echo "BUTTERFLY_BUILD_NUMBER=${BUTTERFLY_BUILD_NUMBER}" >> $GITHUB_ENV
git config --global user.email "[email protected]"
git config --global user.name "Linwood CI"
- uses: subosito/flutter-action@v2.17.0
- uses: subosito/flutter-action@v2.18.0
with:
flutter-version-file: app/pubspec.yaml
- name: Bump version
Expand Down
16 changes: 8 additions & 8 deletions api/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ packages:
dependency: transitive
description:
name: coverage
sha256: "4b03e11f6d5b8f6e5bb5e9f7889a56fe6c5cbe942da5378ea4d4d7f73ef9dfe5"
sha256: e3493833ea012784c740e341952298f1cc77f1f01b1bbc3eb4eecf6984fb7f43
url: "https://pub.dev"
source: hosted
version: "1.11.0"
version: "1.11.1"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -547,10 +547,10 @@ packages:
dependency: "direct dev"
description:
name: test
sha256: f2a018e2baa6fce7c8daa55b8bdf4b3d7d165f82caac269e4cbe5edd666c0e4c
sha256: "22eb7769bee38c7e032d532e8daa2e1cc901b799f603550a4db8f3a5f5173ea2"
url: "https://pub.dev"
source: hosted
version: "1.25.9"
version: "1.25.12"
test_api:
dependency: transitive
description:
Expand All @@ -563,10 +563,10 @@ packages:
dependency: transitive
description:
name: test_core
sha256: "60ff490bb383858015df7b7a0d883301a426edf9033989f55f091d91efb9dfaf"
sha256: "84d17c3486c8dfdbe5e12a50c8ae176d15e2a771b96909a9442b40173649ccaa"
url: "https://pub.dev"
source: hosted
version: "0.6.6"
version: "0.6.8"
timing:
dependency: transitive
description:
Expand Down Expand Up @@ -603,10 +603,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
url: "https://pub.dev"
source: hosted
version: "14.3.1"
version: "15.0.0"
watcher:
dependency: transitive
description:
Expand Down
20 changes: 11 additions & 9 deletions app/android/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.1015.0)
aws-partitions (1.1018.0)
aws-sdk-core (3.214.0)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.992.0)
Expand All @@ -19,7 +19,7 @@ GEM
aws-sdk-kms (1.96.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sigv4 (~> 1.5)
aws-sdk-s3 (1.175.0)
aws-sdk-s3 (1.176.0)
aws-sdk-core (~> 3, >= 3.210.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.5)
Expand Down Expand Up @@ -109,7 +109,7 @@ GEM
xcpretty (~> 0.3.0)
xcpretty-travis-formatter (>= 0.0.3)
gh_inspector (1.1.3)
google-apis-androidpublisher_v3 (0.74.0)
google-apis-androidpublisher_v3 (0.75.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-core (0.15.1)
addressable (~> 2.5, >= 2.5.1)
Expand All @@ -123,15 +123,15 @@ GEM
google-apis-core (>= 0.15.0, < 2.a)
google-apis-playcustomapp_v1 (0.16.0)
google-apis-core (>= 0.15.0, < 2.a)
google-apis-storage_v1 (0.47.0)
google-apis-storage_v1 (0.48.0)
google-apis-core (>= 0.15.0, < 2.a)
google-cloud-core (1.7.1)
google-cloud-env (>= 1.0, < 3.a)
google-cloud-errors (~> 1.0)
google-cloud-env (2.2.1)
faraday (>= 1.0, < 3.a)
google-cloud-errors (1.4.0)
google-cloud-storage (1.52.0)
google-cloud-storage (1.53.0)
addressable (~> 2.8)
digest-crc (~> 0.4)
google-apis-core (~> 0.13)
Expand All @@ -140,19 +140,21 @@ GEM
google-cloud-core (~> 1.6)
googleauth (~> 1.9)
mini_mime (~> 1.0)
googleauth (1.11.2)
google-logging-utils (0.1.0)
googleauth (1.12.0)
faraday (>= 1.0, < 3.a)
google-cloud-env (~> 2.1)
google-cloud-env (~> 2.2)
google-logging-utils (~> 0.1)
jwt (>= 1.4, < 3.0)
multi_json (~> 1.11)
os (>= 0.9, < 2.0)
signet (>= 0.16, < 2.a)
highline (2.0.3)
http-cookie (1.0.7)
http-cookie (1.0.8)
domain_name (~> 0.5)
httpclient (2.8.3)
jmespath (1.6.2)
json (2.8.2)
json (2.9.0)
jwt (2.9.3)
base64
mini_magick (4.13.2)
Expand Down
4 changes: 2 additions & 2 deletions app/android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionSha256Sum=57dafb5c2622c6cc08b993c85b7c06956a2f53536432a30ead46166dbca0f1e9
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionSha256Sum=f397b287023acdba1e9f6fc5ea72d22dd63669d59ed4a289a29b1a76eee151c6
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions app/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pluginManagement {

plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '8.7.2' apply false
id "org.jetbrains.kotlin.android" version "2.0.21" apply false
id "com.android.application" version '8.7.3' apply false
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
}

include ":app"
11 changes: 7 additions & 4 deletions app/lib/dialogs/template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -445,12 +445,15 @@ class _TemplateItem extends StatelessWidget {
child: Text(AppLocalizations.of(context).duplicate),
onPressed: () async {
final result = await showDialog<String>(
context: context, builder: (ctx) => NameDialog(
value: template.name,
));
context: context,
builder: (ctx) => NameDialog(
value: template.name,
));
if (result == null) return;
if (context.mounted) {
await fileSystem.createFileWithName(template.setMetadata(metadata.copyWith(name: result)), name: result);
await fileSystem.createFileWithName(
template.setMetadata(metadata.copyWith(name: result)),
name: result);
onChanged();
}
},
Expand Down
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,8 @@ packages:
dependency: "direct main"
description:
path: "packages/lw_sysapi"
ref: "21808e89bb6239f0b39367d0c00b0b14f5273992"
resolved-ref: "21808e89bb6239f0b39367d0c00b0b14f5273992"
ref: ebf47114a4d63fc06a6be0dbbfd5594ed82e7ee5
resolved-ref: ebf47114a4d63fc06a6be0dbbfd5594ed82e7ee5
url: "https://github.com/LinwoodDev/dart_pkgs"
source: git
version: "0.0.1"
Expand Down
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ dependencies:
lw_sysapi:
git:
url: https://github.com/LinwoodDev/dart_pkgs
ref: 21808e89bb6239f0b39367d0c00b0b14f5273992
ref: ebf47114a4d63fc06a6be0dbbfd5594ed82e7ee5
path: packages/lw_sysapi
networker:
git:
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@astrojs/starlight": "^0.29.2",
"@phosphor-icons/react": "^2.1.7",
"@types/react": "^18.3.14",
"@types/react-dom": "^18.3.2",
"@types/react-dom": "^18.3.3",
"astro": "^4.16.17",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
18 changes: 10 additions & 8 deletions docs/pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions metadata/en-US/changelogs/124.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Change create template button to save icon
* Improve thumbnail display to have rounded corners
* Change zoom dependent to false by default
* Fix export on web
* Fix zoom dependent not working correctly with the label tool ([#765](https://github.com/LinwoodDev/Butterfly/issues/765))

Read more here: https://linwood.dev/butterfly/2.2.3-rc.1

0 comments on commit 630770c

Please sign in to comment.