From 9e3419569efd84217029fd82f3ec9b9f519a825a Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Mon, 5 Aug 2024 14:00:06 -0700 Subject: [PATCH] Update pubspec, boilerplate --- .../Flutter/GeneratedPluginRegistrant.swift | 2 +- packages/diagram_generator/.metadata | 24 ++-- packages/diagram_generator/android/.gitignore | 2 +- .../android/app/build.gradle | 57 +++------ .../android/app/src/debug/AndroidManifest.xml | 4 - .../android/app/src/main/AndroidManifest.xml | 7 +- .../res/drawable-v21/launch_background.xml | 4 - .../main/res/drawable/launch_background.xml | 4 - .../app/src/main/res/values-night/styles.xml | 4 - .../app/src/main/res/values/styles.xml | 4 - .../app/src/profile/AndroidManifest.xml | 4 - .../diagram_generator/android/build.gradle | 8 +- .../android/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../diagram_generator/android/settings.gradle | 13 +-- .../ios/Flutter/AppFrameworkInfo.plist | 2 +- .../ios/Flutter/Debug.xcconfig | 1 - .../ios/Flutter/Release.xcconfig | 1 - packages/diagram_generator/ios/Podfile | 44 ------- .../ios/Runner.xcodeproj/project.pbxproj | 43 ++++--- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- .../ios/Runner/AppDelegate.swift | 4 +- .../macos/Flutter/Flutter-Debug.xcconfig | 1 - .../macos/Flutter/Flutter-Release.xcconfig | 1 - .../Flutter/GeneratedPluginRegistrant.swift | 2 +- packages/diagram_generator/macos/Podfile | 43 ------- .../macos/Runner.xcodeproj/project.pbxproj | 110 ++---------------- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- .../contents.xcworkspacedata | 3 - .../macos/Runner/AppDelegate.swift | 6 +- .../macos/Runner/Configs/AppInfo.xcconfig | 2 +- .../macos/Runner/DebugProfile.entitlements | 2 +- .../macos/Runner/Release.entitlements | 2 +- .../macos/RunnerTests/RunnerTests.swift | 2 +- packages/diagram_viewer/.metadata | 27 +---- packages/diagram_viewer/android/.gitignore | 2 +- .../diagram_viewer/android/app/build.gradle | 57 +++------ .../android/app/src/debug/AndroidManifest.xml | 4 - .../android/app/src/main/AndroidManifest.xml | 7 +- .../res/drawable-v21/launch_background.xml | 4 - .../main/res/drawable/launch_background.xml | 4 - .../app/src/main/res/values-night/styles.xml | 4 - .../app/src/main/res/values/styles.xml | 4 - .../app/src/profile/AndroidManifest.xml | 4 - packages/diagram_viewer/android/build.gradle | 8 +- .../diagram_viewer/android/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../diagram_viewer/android/settings.gradle | 13 +-- .../ios/Flutter/AppFrameworkInfo.plist | 2 +- .../diagram_viewer/ios/Flutter/Debug.xcconfig | 1 - .../ios/Flutter/Release.xcconfig | 1 - packages/diagram_viewer/ios/Podfile | 44 ------- .../ios/Runner.xcodeproj/project.pbxproj | 43 ++++--- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- .../ios/Runner/AppDelegate.swift | 4 +- .../macos/Flutter/Flutter-Debug.xcconfig | 1 - .../macos/Flutter/Flutter-Release.xcconfig | 1 - packages/diagram_viewer/macos/Podfile | 43 ------- .../macos/Runner.xcodeproj/project.pbxproj | 12 +- .../xcshareddata/xcschemes/Runner.xcscheme | 2 +- .../macos/Runner/AppDelegate.swift | 6 +- .../macos/Runner/Configs/AppInfo.xcconfig | 2 +- .../macos/Runner/DebugProfile.entitlements | 2 +- .../macos/Runner/Release.entitlements | 2 +- .../macos/RunnerTests/RunnerTests.swift | 2 +- packages/diagram_viewer/pubspec.yaml | 2 +- packages/diagram_viewer/web/index.html | 23 +--- .../diagram_viewer/windows/runner/Runner.rc | 2 +- .../diagram_viewer/windows/runner/resource.h | 4 - .../windows/runner/runner.exe.manifest | 6 - .../diagram_viewer/windows/runner/utils.cpp | 4 +- 71 files changed, 170 insertions(+), 597 deletions(-) delete mode 100644 packages/diagram_generator/ios/Podfile delete mode 100644 packages/diagram_generator/macos/Podfile delete mode 100644 packages/diagram_viewer/ios/Podfile delete mode 100644 packages/diagram_viewer/macos/Podfile diff --git a/packages/diagram_capture/example/macos/Flutter/GeneratedPluginRegistrant.swift b/packages/diagram_capture/example/macos/Flutter/GeneratedPluginRegistrant.swift index 0d56f519..e777c67d 100644 --- a/packages/diagram_capture/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/packages/diagram_capture/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -5,7 +5,7 @@ import FlutterMacOS import Foundation -import path_provider_macos +import path_provider_foundation func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) diff --git a/packages/diagram_generator/.metadata b/packages/diagram_generator/.metadata index 9491abd8..ec0d9bbf 100644 --- a/packages/diagram_generator/.metadata +++ b/packages/diagram_generator/.metadata @@ -4,8 +4,8 @@ # This file should be version controlled and should not be manually edited. version: - revision: "f808aaa12f3a32d316f0ee476ffc24502f7c3d25" - channel: "main" + revision: "ae21cab10dbc31da261568ef9a814a02c44b1410" + channel: "[user-branch]" project_type: app @@ -13,20 +13,20 @@ project_type: app migration: platforms: - platform: root - create_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 - base_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 + create_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 + base_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 - platform: android - create_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 - base_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 + create_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 + base_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 - platform: ios - create_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 - base_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 + create_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 + base_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 - platform: linux - create_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 - base_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 + create_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 + base_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 - platform: macos - create_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 - base_revision: f808aaa12f3a32d316f0ee476ffc24502f7c3d25 + create_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 + base_revision: ae21cab10dbc31da261568ef9a814a02c44b1410 # User provided section diff --git a/packages/diagram_generator/android/.gitignore b/packages/diagram_generator/android/.gitignore index 6f568019..55afd919 100644 --- a/packages/diagram_generator/android/.gitignore +++ b/packages/diagram_generator/android/.gitignore @@ -7,7 +7,7 @@ gradle-wrapper.jar GeneratedPluginRegistrant.java # Remember to never publicly share your keystore. -# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app +# See https://flutter.dev/to/reference-keystore key.properties **/*.keystore **/*.jks diff --git a/packages/diagram_generator/android/app/build.gradle b/packages/diagram_generator/android/app/build.gradle index b2977df2..225cddad 100644 --- a/packages/diagram_generator/android/app/build.gradle +++ b/packages/diagram_generator/android/app/build.gradle @@ -1,71 +1,44 @@ -// Copyright 2013 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - plugins { id "com.android.application" id "kotlin-android" + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. id "dev.flutter.flutter-gradle-plugin" } -def localProperties = new Properties() -def localPropertiesFile = rootProject.file('local.properties') -if (localPropertiesFile.exists()) { - localPropertiesFile.withReader('UTF-8') { reader -> - localProperties.load(reader) - } -} - -def flutterVersionCode = localProperties.getProperty('flutter.versionCode') -if (flutterVersionCode == null) { - flutterVersionCode = '1' -} - -def flutterVersionName = localProperties.getProperty('flutter.versionName') -if (flutterVersionName == null) { - flutterVersionName = '1.0' -} - android { - namespace "dev.flutter.diagram_generator" - compileSdk flutter.compileSdkVersion - ndkVersion flutter.ndkVersion + namespace = "dev.flutter.diagram_generator" + compileSdk = flutter.compileSdkVersion + ndkVersion = flutter.ndkVersion compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } kotlinOptions { - jvmTarget = '1.8' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' + jvmTarget = JavaVersion.VERSION_1_8 } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId "dev.flutter.diagram_generator" + applicationId = "dev.flutter.diagram_generator" // You can update the following values to match your application needs. - // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration. - minSdkVersion flutter.minSdkVersion - targetSdkVersion flutter.targetSdkVersion - versionCode flutterVersionCode.toInteger() - versionName flutterVersionName + // For more information, see: https://flutter.dev/to/review-gradle-config. + minSdk = flutter.minSdkVersion + targetSdk = flutter.targetSdkVersion + versionCode = flutter.versionCode + versionName = flutter.versionName } buildTypes { release { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. - signingConfig signingConfigs.debug + signingConfig = signingConfigs.debug } } } flutter { - source '../..' + source = "../.." } - -dependencies {} diff --git a/packages/diagram_generator/android/app/src/debug/AndroidManifest.xml b/packages/diagram_generator/android/app/src/debug/AndroidManifest.xml index f400d10d..399f6981 100644 --- a/packages/diagram_generator/android/app/src/debug/AndroidManifest.xml +++ b/packages/diagram_generator/android/app/src/debug/AndroidManifest.xml @@ -1,7 +1,3 @@ - - - android:name=".MainActivity" android:exported="true" android:launchMode="singleTop" + android:taskAffinity="" android:theme="@style/LaunchTheme" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" @@ -35,7 +32,7 @@ found in the LICENSE file. --> android:value="2" /> diff --git a/packages/diagram_generator/android/app/src/main/res/drawable-v21/launch_background.xml b/packages/diagram_generator/android/app/src/main/res/drawable-v21/launch_background.xml index efd5dcbd..f74085f3 100644 --- a/packages/diagram_generator/android/app/src/main/res/drawable-v21/launch_background.xml +++ b/packages/diagram_generator/android/app/src/main/res/drawable-v21/launch_background.xml @@ -1,8 +1,4 @@ - - diff --git a/packages/diagram_generator/android/app/src/main/res/drawable/launch_background.xml b/packages/diagram_generator/android/app/src/main/res/drawable/launch_background.xml index 8ee152fb..304732f8 100644 --- a/packages/diagram_generator/android/app/src/main/res/drawable/launch_background.xml +++ b/packages/diagram_generator/android/app/src/main/res/drawable/launch_background.xml @@ -1,8 +1,4 @@ - - diff --git a/packages/diagram_generator/android/app/src/main/res/values-night/styles.xml b/packages/diagram_generator/android/app/src/main/res/values-night/styles.xml index 1f62f6f9..06952be7 100644 --- a/packages/diagram_generator/android/app/src/main/res/values-night/styles.xml +++ b/packages/diagram_generator/android/app/src/main/res/values-night/styles.xml @@ -1,8 +1,4 @@ - -