diff --git a/android/app/build.gradle b/android/app/build.gradle index 27989b52b..bb6a533fb 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -134,14 +134,14 @@ flutter { repositories { maven { - url 'https://jitpack.io' + url = 'https://jitpack.io' content { includeGroup "com.github.deckerst" includeGroup "com.github.deckerst.mp4parser" } } maven { - url 'https://s3.amazonaws.com/repo.commonsware.com' + url = 'https://s3.amazonaws.com/repo.commonsware.com' content { excludeGroupByRegex "com\\.github\\.deckerst.*" } diff --git a/plugins/aves_platform_meta/.gitignore b/plugins/aves_platform_meta/.gitignore deleted file mode 100644 index 79c113f9b..000000000 --- a/plugins/aves_platform_meta/.gitignore +++ /dev/null @@ -1,45 +0,0 @@ -# Miscellaneous -*.class -*.log -*.pyc -*.swp -.DS_Store -.atom/ -.build/ -.buildlog/ -.history -.svn/ -.swiftpm/ -migrate_working_dir/ - -# IntelliJ related -*.iml -*.ipr -*.iws -.idea/ - -# The .vscode folder contains launch configuration and tasks you configure in -# VS Code which you may wish to be included in version control, so this line -# is commented out by default. -#.vscode/ - -# Flutter/Dart/Pub related -**/doc/api/ -**/ios/Flutter/.last_build_id -.dart_tool/ -.flutter-plugins -.flutter-plugins-dependencies -.pub-cache/ -.pub/ -/build/ - -# Symbolication related -app.*.symbols - -# Obfuscation related -app.*.map.json - -# Android Studio will place build artifacts here -/android/app/debug -/android/app/profile -/android/app/release diff --git a/plugins/aves_platform_meta/.metadata b/plugins/aves_platform_meta/.metadata deleted file mode 100644 index 93fddf202..000000000 --- a/plugins/aves_platform_meta/.metadata +++ /dev/null @@ -1,30 +0,0 @@ -# This file tracks properties of this Flutter project. -# Used by Flutter tool to assess capabilities and perform upgrades etc. -# -# This file should be version controlled. - -version: - revision: 85684f9300908116a78138ea4c6036c35c9a1236 - channel: stable - -project_type: plugin - -# Tracks metadata for the flutter migrate command -migration: - platforms: - - platform: root - create_revision: 85684f9300908116a78138ea4c6036c35c9a1236 - base_revision: 85684f9300908116a78138ea4c6036c35c9a1236 - - platform: android - create_revision: 85684f9300908116a78138ea4c6036c35c9a1236 - base_revision: 85684f9300908116a78138ea4c6036c35c9a1236 - - # User provided section - - # List of Local paths (relative to this file) that should be - # ignored by the migrate tool. - # - # Files that are not part of the templates will be ignored by default. - unmanaged_files: - - 'lib/main.dart' - - 'ios/Runner.xcodeproj/project.pbxproj' diff --git a/plugins/aves_platform_meta/analysis_options.yaml b/plugins/aves_platform_meta/analysis_options.yaml deleted file mode 100644 index f04c6cf0f..000000000 --- a/plugins/aves_platform_meta/analysis_options.yaml +++ /dev/null @@ -1 +0,0 @@ -include: ../../analysis_options.yaml diff --git a/plugins/aves_platform_meta/android/.gitignore b/plugins/aves_platform_meta/android/.gitignore deleted file mode 100644 index 82677b89f..000000000 --- a/plugins/aves_platform_meta/android/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -gradle-wrapper.jar -/.gradle -/captures/ -/gradlew -/gradlew.bat -/local.properties -GeneratedPluginRegistrant.java -.cxx/ -.kotlin/ - -# Remember to never publicly share your keystore. -# See https://flutter.dev/to/reference-keystore -key.properties -**/*.keystore -**/*.jks diff --git a/plugins/aves_platform_meta/android/build.gradle b/plugins/aves_platform_meta/android/build.gradle deleted file mode 100644 index ce435aea5..000000000 --- a/plugins/aves_platform_meta/android/build.gradle +++ /dev/null @@ -1,52 +0,0 @@ -group 'deckers.thibault.aves.aves_platform_meta' -version '1.0-SNAPSHOT' - -buildscript { - ext { - kotlin_version = '2.1.10' - agp_version = '8.8.0' - } - - repositories { - google() - mavenCentral() - } - - dependencies { - classpath "com.android.tools.build:gradle:$agp_version" - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" - } -} - -allprojects { - repositories { - google() - mavenCentral() - } -} - -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' - -kotlin { - jvmToolchain 17 -} - -android { - namespace 'deckers.thibault.aves.aves_platform_meta' - compileSdk 35 - - lintOptions { - checkAllWarnings true - warningsAsErrors true - disable 'InvalidPackage' - } - - sourceSets { - main.java.srcDirs += 'src/main/kotlin' - } - - defaultConfig { - minSdk 21 - } -} diff --git a/plugins/aves_platform_meta/android/gradle/wrapper/gradle-wrapper.properties b/plugins/aves_platform_meta/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index 849633dd6..000000000 --- a/plugins/aves_platform_meta/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,5 +0,0 @@ -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip \ No newline at end of file diff --git a/plugins/aves_platform_meta/android/settings.gradle b/plugins/aves_platform_meta/android/settings.gradle deleted file mode 100644 index d69766b76..000000000 --- a/plugins/aves_platform_meta/android/settings.gradle +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = 'aves_platform_meta' diff --git a/plugins/aves_platform_meta/android/src/main/AndroidManifest.xml b/plugins/aves_platform_meta/android/src/main/AndroidManifest.xml deleted file mode 100644 index cc947c567..000000000 --- a/plugins/aves_platform_meta/android/src/main/AndroidManifest.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/plugins/aves_platform_meta/android/src/main/kotlin/deckers/thibault/aves/aves_platform_meta/AvesPlatformMetaPlugin.kt b/plugins/aves_platform_meta/android/src/main/kotlin/deckers/thibault/aves/aves_platform_meta/AvesPlatformMetaPlugin.kt deleted file mode 100644 index 55aca1e2b..000000000 --- a/plugins/aves_platform_meta/android/src/main/kotlin/deckers/thibault/aves/aves_platform_meta/AvesPlatformMetaPlugin.kt +++ /dev/null @@ -1,52 +0,0 @@ -package deckers.thibault.aves.aves_platform_meta - -import android.content.Context -import android.content.pm.PackageManager -import androidx.annotation.NonNull -import io.flutter.embedding.engine.plugins.FlutterPlugin -import io.flutter.plugin.common.MethodCall -import io.flutter.plugin.common.MethodChannel -import io.flutter.plugin.common.MethodChannel.MethodCallHandler - -class AvesPlatformMetaPlugin : FlutterPlugin, MethodCallHandler { - private var context: Context? = null - private lateinit var channel: MethodChannel - - override fun onAttachedToEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) { - context = binding.applicationContext - channel = MethodChannel(binding.binaryMessenger, "deckers.thibault/aves/aves_platform_meta") - channel.setMethodCallHandler(this) - } - - override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) { - context = null - channel.setMethodCallHandler(null) - } - - override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: MethodChannel.Result) { - if (call.method == "getMetadata") { - getMetadata(call, result) - } else { - result.notImplemented() - } - } - - - private fun getMetadata(@NonNull call: MethodCall, @NonNull result: MethodChannel.Result) { - val key = call.argument("key") - if (key == null) { - result.error("getMetadata-args", "missing arguments", null) - return - } - - val ctx = context - if (ctx == null) { - result.error("getMetadata-context", "no context", null) - return - } - - val metadata = ctx.packageManager.getApplicationInfoCompat(ctx.packageName, PackageManager.GET_META_DATA).metaData - val value = metadata.getString(key) - result.success(value) - } -} diff --git a/plugins/aves_platform_meta/android/src/main/kotlin/deckers/thibault/aves/aves_platform_meta/Compat.kt b/plugins/aves_platform_meta/android/src/main/kotlin/deckers/thibault/aves/aves_platform_meta/Compat.kt deleted file mode 100644 index 499c0d1ce..000000000 --- a/plugins/aves_platform_meta/android/src/main/kotlin/deckers/thibault/aves/aves_platform_meta/Compat.kt +++ /dev/null @@ -1,14 +0,0 @@ -package deckers.thibault.aves.aves_platform_meta - -import android.content.pm.ApplicationInfo -import android.content.pm.PackageManager -import android.os.Build - -fun PackageManager.getApplicationInfoCompat(packageName: String, flags: Int): ApplicationInfo { - return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) { - getApplicationInfo(packageName, PackageManager.ApplicationInfoFlags.of(flags.toLong())) - } else { - @Suppress("deprecation") - getApplicationInfo(packageName, flags) - } -} diff --git a/plugins/aves_platform_meta/lib/aves_platform_meta.dart b/plugins/aves_platform_meta/lib/aves_platform_meta.dart deleted file mode 100644 index e086a65d5..000000000 --- a/plugins/aves_platform_meta/lib/aves_platform_meta.dart +++ /dev/null @@ -1,7 +0,0 @@ -import 'aves_platform_meta_platform_interface.dart'; - -class AvesPlatformMeta { - Future getMetadata(String key) { - return AvesPlatformMetaPlatform.instance.getMetadata(key); - } -} diff --git a/plugins/aves_platform_meta/lib/aves_platform_meta_method_channel.dart b/plugins/aves_platform_meta/lib/aves_platform_meta_method_channel.dart deleted file mode 100644 index 6cabfa2e8..000000000 --- a/plugins/aves_platform_meta/lib/aves_platform_meta_method_channel.dart +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:flutter/foundation.dart'; -import 'package:flutter/services.dart'; - -import 'aves_platform_meta_platform_interface.dart'; - -class MethodChannelAvesPlatformMeta extends AvesPlatformMetaPlatform { - @visibleForTesting - final methodChannel = const MethodChannel('deckers.thibault/aves/aves_platform_meta'); - - @override - Future getMetadata(String key) { - return methodChannel.invokeMethod('getMetadata', { - 'key': key, - }); - } -} diff --git a/plugins/aves_platform_meta/lib/aves_platform_meta_platform_interface.dart b/plugins/aves_platform_meta/lib/aves_platform_meta_platform_interface.dart deleted file mode 100644 index 89438ca2f..000000000 --- a/plugins/aves_platform_meta/lib/aves_platform_meta_platform_interface.dart +++ /dev/null @@ -1,22 +0,0 @@ -import 'package:plugin_platform_interface/plugin_platform_interface.dart'; - -import 'aves_platform_meta_method_channel.dart'; - -abstract class AvesPlatformMetaPlatform extends PlatformInterface { - AvesPlatformMetaPlatform() : super(token: _token); - - static final Object _token = Object(); - - static AvesPlatformMetaPlatform _instance = MethodChannelAvesPlatformMeta(); - - static AvesPlatformMetaPlatform get instance => _instance; - - static set instance(AvesPlatformMetaPlatform instance) { - PlatformInterface.verifyToken(instance, _token); - _instance = instance; - } - - Future getMetadata(String key) { - throw UnimplementedError('platformVersion() has not been implemented.'); - } -} diff --git a/plugins/aves_platform_meta/pubspec.yaml b/plugins/aves_platform_meta/pubspec.yaml deleted file mode 100644 index 7b5fadc0b..000000000 --- a/plugins/aves_platform_meta/pubspec.yaml +++ /dev/null @@ -1,22 +0,0 @@ -name: aves_platform_meta -version: 0.0.1 -publish_to: none - -environment: - sdk: ">=3.6.0 <4.0.0" # incoherent dartfmt from 3.7.0 -resolution: workspace - -dependencies: - flutter: - sdk: flutter - plugin_platform_interface: - -dev_dependencies: - flutter_lints: - -flutter: - plugin: - platforms: - android: - package: deckers.thibault.aves.aves_platform_meta - pluginClass: AvesPlatformMetaPlugin diff --git a/pubspec.yaml b/pubspec.yaml index ac4488215..fc3a659fe 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,7 +19,6 @@ workspace: - plugins/aves_magnifier - plugins/aves_map - plugins/aves_model - - plugins/aves_platform_meta - plugins/aves_report - plugins/aves_report_crashlytics - plugins/aves_screen_state