From af86f33c494784201d9dd4e6543d8cb89701020f Mon Sep 17 00:00:00 2001 From: Yaakov Schectman Date: Wed, 30 Oct 2024 15:53:11 -0400 Subject: [PATCH 1/3] Gets example app running on stable --- android/build.gradle | 1 + example/.flutter-plugins-dependencies | 2 +- example/android/app/build.gradle | 3 +- .../android/app/src/debug/AndroidManifest.xml | 3 +- .../android/app/src/main/AndroidManifest.xml | 7 +- .../EmbedderV1Activity.java | 3 - example/android/build.gradle | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 4 +- example/pubspec.lock | 225 ++++++++++-------- example/pubspec.yaml | 4 +- 10 files changed, 144 insertions(+), 112 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index b187a15..727643a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,6 +23,7 @@ apply plugin: 'com.android.library' android { compileSdkVersion 29 + namespace "com.example.fluttershare" defaultConfig { minSdkVersion 16 diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index ad8479f..ece6c78 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.1/","dependencies":[]},{"name":"flutter_share","path":"/Users/britto/dev/projects/flutter_share/","dependencies":[]},{"name":"path_provider","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.1/","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.1/","dependencies":[]},{"name":"flutter_share","path":"/Users/britto/dev/projects/flutter_share/","dependencies":[]},{"name":"path_provider","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.0/","dependencies":[]}],"web":[{"name":"file_picker","path":"/Users/britto/flutter/.pub-cache/hosted/pub.dartlang.org/file_picker-3.0.1/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_share","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2021-04-08 12:20:00.830702","version":"2.0.4"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/schectman/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.18/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_android-2.2.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]}],"web":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_share","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-10-30 15:51:56.473547","version":"3.13.3"} \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index c0a4ee6..47dc18f 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -15,7 +15,8 @@ apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 29 + compileSdkVersion 31 + namespace "com.example.fluttershareexample" lintOptions { disable 'InvalidPackage' diff --git a/example/android/app/src/debug/AndroidManifest.xml b/example/android/app/src/debug/AndroidManifest.xml index c208884..f880684 100644 --- a/example/android/app/src/debug/AndroidManifest.xml +++ b/example/android/app/src/debug/AndroidManifest.xml @@ -1,5 +1,4 @@ - + diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index d751c37..15bcdaf 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -1,5 +1,4 @@ - + =2.12.0 <3.0.0" - flutter: ">=1.20.0" + dart: ">=3.1.0 <4.0.0" + flutter: ">=3.13.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 253d713..20b4097 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,8 +10,8 @@ dependencies: sdk: flutter cupertino_icons: ^1.0.2 - screenshot: ^1.0.0-nullsafety.1 - file_picker: ^3.0.1 + screenshot: ^2.5.0 + file_picker: ^8.0.0+1 path_provider: ^2.0.1 flutter_share: From 4ae2b2f45a68c780dfa8a41e84f6544f5e35f6f7 Mon Sep 17 00:00:00 2001 From: Yaakov Schectman Date: Wed, 30 Oct 2024 15:57:12 -0400 Subject: [PATCH 2/3] Everything before removing v1 embedding --- example/.flutter-plugins-dependencies | 2 +- example/android/app/build.gradle | 4 +- example/pubspec.lock | 126 +++++++++++++++----------- example/pubspec.yaml | 2 +- 4 files changed, 79 insertions(+), 55 deletions(-) diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index ece6c78..7b97bf7 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/schectman/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.18/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_android-2.2.3/","native_build":true,"dependencies":[]}],"macos":[{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.3.2/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_windows-2.2.1/","native_build":false,"dependencies":[]}],"web":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.0.0+1/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_share","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-10-30 15:51:56.473547","version":"3.13.3"} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/schectman/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/","native_build":true,"dependencies":[]}],"macos":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]}],"web":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_share","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-10-30 15:56:52.356262","version":"3.27.0-1.0.pre.268","swift_package_manager_enabled":false} \ No newline at end of file diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 47dc18f..6f7c4e4 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -15,7 +15,7 @@ apply plugin: 'com.android.application' apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" android { - compileSdkVersion 31 + compileSdkVersion 34 namespace "com.example.fluttershareexample" lintOptions { @@ -25,7 +25,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.example.fluttershareexample" - minSdkVersion 17 + minSdkVersion flutter.minSdkVersion targetSdkVersion 29 versionCode 1 versionName "1.0" diff --git a/example/pubspec.lock b/example/pubspec.lock index 40a16b2..5beb1bb 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -37,18 +37,18 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.19.0" cross_file: dependency: transitive description: name: cross_file - sha256: "2f9d2cbccb76127ba28528cb3ae2c2326a122446a83de5a056aaa3880d3882c5" + sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670" url: "https://pub.dev" source: hosted - version: "0.3.3+7" + version: "0.3.4+2" cupertino_icons: dependency: "direct main" description: @@ -69,18 +69,18 @@ packages: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "16ed7b077ef01ad6170a3d0c57caa4a112a38d7a2ed5602e0aca9ca6f3d98da6" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.3" file_picker: dependency: "direct main" description: name: file_picker - sha256: d1d0ac3966b36dc3e66eeefb40280c17feb87fa2099c6e22e6a1fc959327bd03 + sha256: aac85f20436608e01a6ffd1fdd4e746a7f33c93a2c83752e626bdfaea139b877 url: "https://pub.dev" source: hosted - version: "8.0.0+1" + version: "8.1.3" flutter: dependency: "direct main" description: flutter @@ -90,10 +90,10 @@ packages: dependency: transitive description: name: flutter_plugin_android_lifecycle - sha256: "592dc01a18961a51c24ae5d963b724b2b7fa4a95c100fe8eb6ca8a5a4732cadf" + sha256: "9b78450b89f059e96c9ebb355fa6b3df1d6b330436e0b885fb49594c41721398" url: "https://pub.dev" source: hosted - version: "2.0.18" + version: "2.0.23" flutter_share: dependency: "direct main" description: @@ -111,70 +111,86 @@ packages: description: flutter source: sdk version: "0.0.0" - js: + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec + url: "https://pub.dev" + source: hosted + version: "10.0.8" + leak_tracker_flutter_testing: dependency: transitive description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + name: leak_tracker_flutter_testing + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 url: "https://pub.dev" source: hosted - version: "0.6.7" + version: "3.0.9" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.15.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" url: "https://pub.dev" source: hosted - version: "2.1.3" + version: "2.1.5" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "51f0d2c554cfbc9d6a312ab35152fc77e2f0b758ce9f1a444a3a1e5b8f3c6b7f" + sha256: c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a url: "https://pub.dev" source: hosted - version: "2.2.3" + version: "2.2.12" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.0" path_provider_linux: dependency: transitive description: @@ -195,18 +211,18 @@ packages: dependency: transitive description: name: path_provider_windows - sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + sha256: bd6f00dbd873bfb70d0761682da2b3a2c2fccc2b9e84c495821639601d81afe7 url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.3.0" platform: dependency: transitive description: name: platform - sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + sha256: "5d6b1b0036a5f331ebc77c850ebc8506cbc1e9416c27e59b439f917a902a4984" url: "https://pub.dev" source: hosted - version: "3.1.4" + version: "3.1.6" plugin_platform_interface: dependency: transitive description: @@ -219,15 +235,15 @@ packages: dependency: "direct main" description: name: screenshot - sha256: d448f43130f49bc7eead1b267b3ea0291cb2450f037bb0a0ecce7aa4c65e2aee + sha256: "63817697a7835e6ce82add4228e15d233b74d42975c143ad8cfe07009fab866b" url: "https://pub.dev" source: hosted - version: "2.5.0" + version: "3.0.0" sky_engine: dependency: transitive description: flutter source: sdk - version: "0.0.99" + version: "0.0.0" source_span: dependency: transitive description: @@ -240,26 +256,26 @@ packages: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377" url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.12.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.3.0" term_glyph: dependency: transitive description: @@ -272,10 +288,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.7.3" vector_math: dependency: transitive description: @@ -284,30 +300,38 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b + url: "https://pub.dev" + source: hosted + version: "14.3.0" web: dependency: transitive description: name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.1.4-beta" + version: "1.1.0" win32: dependency: transitive description: name: win32 - sha256: b0f37db61ba2f2e9b7a78a1caece0052564d1bc70668156cf3a29d676fe4e574 + sha256: "10169d3934549017f0ae278ccb07f828f9d6ea21573bab0fb77b0e1ef0fce454" url: "https://pub.dev" source: hosted - version: "5.1.1" + version: "5.7.2" xdg_directories: dependency: transitive description: name: xdg_directories - sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d + sha256: "7a3f37b05d989967cdddcbb571f1ea834867ae2faa29725fd085180e0883aa15" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.1.0" sdks: - dart: ">=3.1.0 <4.0.0" - flutter: ">=3.13.0" + dart: ">=3.5.0 <4.0.0" + flutter: ">=3.24.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 20b4097..33f19de 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: sdk: flutter cupertino_icons: ^1.0.2 - screenshot: ^2.5.0 + screenshot: ^3.0.0 file_picker: ^8.0.0+1 path_provider: ^2.0.1 From a76f10664ce6fda112cda706298ea334c9b1e660 Mon Sep 17 00:00:00 2001 From: Yaakov Schectman Date: Wed, 30 Oct 2024 16:01:52 -0400 Subject: [PATCH 3/3] Removes references to Flutter v1 embedding, bumps version --- CHANGELOG.md | 4 ++++ .../fluttershare/FlutterSharePlugin.java | 8 -------- example/.flutter-plugins-dependencies | 2 +- .../android/app/src/main/AndroidManifest.xml | 1 - .../fluttershareexample/EmbedderV1Activity.java | 17 ----------------- pubspec.yaml | 4 ++-- 6 files changed, 7 insertions(+), 29 deletions(-) delete mode 100644 example/android/app/src/main/java/com/example/fluttershareexample/EmbedderV1Activity.java diff --git a/CHANGELOG.md b/CHANGELOG.md index ea4e96c..66aa191 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 2.0.1 + +* Removes references to Flutter v1 android embedding classes. + ## 2.0.0 * Fix iPad bug * Add the [fileType] (only for Android) diff --git a/android/src/main/java/com/example/fluttershare/FlutterSharePlugin.java b/android/src/main/java/com/example/fluttershare/FlutterSharePlugin.java index 3184385..5e4ad80 100644 --- a/android/src/main/java/com/example/fluttershare/FlutterSharePlugin.java +++ b/android/src/main/java/com/example/fluttershare/FlutterSharePlugin.java @@ -18,7 +18,6 @@ import io.flutter.plugin.common.MethodChannel; import io.flutter.plugin.common.MethodChannel.MethodCallHandler; import io.flutter.plugin.common.MethodChannel.Result; -import io.flutter.plugin.common.PluginRegistry.Registrar; /** FlutterSharePlugin */ @@ -28,13 +27,6 @@ public class FlutterSharePlugin implements FlutterPlugin, MethodCallHandler { public FlutterSharePlugin() {} - /** Plugin registration. */ - @SuppressWarnings("deprecation") - public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) { - final FlutterSharePlugin instance = new FlutterSharePlugin(); - instance.onAttachedToEngine(registrar.context(), registrar.messenger()); - } - @Override public void onAttachedToEngine(FlutterPluginBinding binding) { onAttachedToEngine(binding.getApplicationContext(), binding.getBinaryMessenger()); diff --git a/example/.flutter-plugins-dependencies b/example/.flutter-plugins-dependencies index 7b97bf7..1a2e9bd 100644 --- a/example/.flutter-plugins-dependencies +++ b/example/.flutter-plugins-dependencies @@ -1 +1 @@ -{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/schectman/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/","native_build":true,"dependencies":[]}],"macos":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]}],"web":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_share","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-10-30 15:56:52.356262","version":"3.27.0-1.0.pre.268","swift_package_manager_enabled":false} \ No newline at end of file +{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"android":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":true,"dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","path":"/Users/schectman/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.23/","native_build":true,"dependencies":[]},{"name":"flutter_share","path":"/Users/schectman/src/v1er/flutter_share/","native_build":true,"dependencies":[]},{"name":"path_provider_android","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_android-2.2.12/","native_build":true,"dependencies":[]}],"macos":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_foundation","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_foundation-2.4.0/","shared_darwin_source":true,"native_build":true,"dependencies":[]}],"linux":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_linux","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/","native_build":false,"dependencies":[]}],"windows":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","native_build":false,"dependencies":[]},{"name":"path_provider_windows","path":"/Users/schectman/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/","native_build":false,"dependencies":[]}],"web":[{"name":"file_picker","path":"/Users/schectman/.pub-cache/hosted/pub.dev/file_picker-8.1.3/","dependencies":[]}]},"dependencyGraph":[{"name":"file_picker","dependencies":["flutter_plugin_android_lifecycle"]},{"name":"flutter_plugin_android_lifecycle","dependencies":[]},{"name":"flutter_share","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_android","path_provider_foundation","path_provider_linux","path_provider_windows"]},{"name":"path_provider_android","dependencies":[]},{"name":"path_provider_foundation","dependencies":[]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_windows","dependencies":[]}],"date_created":"2024-10-30 16:00:16.381943","version":"3.27.0-1.0.pre.268","swift_package_manager_enabled":false} \ No newline at end of file diff --git a/example/android/app/src/main/AndroidManifest.xml b/example/android/app/src/main/AndroidManifest.xml index 15bcdaf..958cdac 100644 --- a/example/android/app/src/main/AndroidManifest.xml +++ b/example/android/app/src/main/AndroidManifest.xml @@ -12,7 +12,6 @@ additional functionality it is fine to subclass or reimplement FlutterApplication and put your custom class here. --> =2.12.0 <3.0.0' - flutter: '>=1.10.0' \ No newline at end of file + flutter: '>=1.10.0'