Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
644c1c3ab7
16 changed files with 2 additions and 286 deletions
|
@ -134,14 +134,14 @@ flutter {
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url 'https://jitpack.io'
|
url = 'https://jitpack.io'
|
||||||
content {
|
content {
|
||||||
includeGroup "com.github.deckerst"
|
includeGroup "com.github.deckerst"
|
||||||
includeGroup "com.github.deckerst.mp4parser"
|
includeGroup "com.github.deckerst.mp4parser"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
url 'https://s3.amazonaws.com/repo.commonsware.com'
|
url = 'https://s3.amazonaws.com/repo.commonsware.com'
|
||||||
content {
|
content {
|
||||||
excludeGroupByRegex "com\\.github\\.deckerst.*"
|
excludeGroupByRegex "com\\.github\\.deckerst.*"
|
||||||
}
|
}
|
||||||
|
|
45
plugins/aves_platform_meta/.gitignore
vendored
45
plugins/aves_platform_meta/.gitignore
vendored
|
@ -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
|
|
|
@ -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'
|
|
|
@ -1 +0,0 @@
|
||||||
include: ../../analysis_options.yaml
|
|
15
plugins/aves_platform_meta/android/.gitignore
vendored
15
plugins/aves_platform_meta/android/.gitignore
vendored
|
@ -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
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
|
|
@ -1 +0,0 @@
|
||||||
rootProject.name = 'aves_platform_meta'
|
|
|
@ -1 +0,0 @@
|
||||||
<manifest />
|
|
|
@ -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<String>("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)
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
import 'aves_platform_meta_platform_interface.dart';
|
|
||||||
|
|
||||||
class AvesPlatformMeta {
|
|
||||||
Future<String?> getMetadata(String key) {
|
|
||||||
return AvesPlatformMetaPlatform.instance.getMetadata(key);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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<String?> getMetadata(String key) {
|
|
||||||
return methodChannel.invokeMethod<String>('getMetadata', <String, dynamic>{
|
|
||||||
'key': key,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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<String?> getMetadata(String key) {
|
|
||||||
throw UnimplementedError('platformVersion() has not been implemented.');
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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
|
|
|
@ -19,7 +19,6 @@ workspace:
|
||||||
- plugins/aves_magnifier
|
- plugins/aves_magnifier
|
||||||
- plugins/aves_map
|
- plugins/aves_map
|
||||||
- plugins/aves_model
|
- plugins/aves_model
|
||||||
- plugins/aves_platform_meta
|
|
||||||
- plugins/aves_report
|
- plugins/aves_report
|
||||||
- plugins/aves_report_crashlytics
|
- plugins/aves_report_crashlytics
|
||||||
- plugins/aves_screen_state
|
- plugins/aves_screen_state
|
||||||
|
|
Loading…
Reference in a new issue