From f3ff75c43723704a0f3a3e2d969ec76fec553459 Mon Sep 17 00:00:00 2001 From: "guangfei.zhao" Date: Sat, 27 Sep 2025 21:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Eplugin=20flutter=5Fvosk=5Fwak?= =?UTF-8?q?eword?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/basic_intl/pubspec.yaml | 2 - packages/flutter_vosk_wakeword/.gitignore | 33 +++++++++ packages/flutter_vosk_wakeword/.metadata | 33 +++++++++ packages/flutter_vosk_wakeword/CHANGELOG.md | 3 + packages/flutter_vosk_wakeword/LICENSE | 1 + packages/flutter_vosk_wakeword/README.md | 15 ++++ .../analysis_options.yaml | 4 ++ .../flutter_vosk_wakeword/android/.gitignore | 9 +++ .../android/build.gradle | 66 +++++++++++++++++ .../android/settings.gradle | 1 + .../android/src/main/AndroidManifest.xml | 3 + .../FlutterVoskWakewordPlugin.kt | 35 +++++++++ .../FlutterVoskWakewordPluginTest.kt | 27 +++++++ packages/flutter_vosk_wakeword/ios/.gitignore | 38 ++++++++++ .../flutter_vosk_wakeword/ios/Assets/.gitkeep | 0 .../Classes/FlutterVoskWakewordPlugin.swift | 19 +++++ .../ios/Resources/PrivacyInfo.xcprivacy | 14 ++++ .../ios/flutter_vosk_wakeword.podspec | 29 ++++++++ .../lib/flutter_vosk_wakeword.dart | 8 +++ .../flutter_vosk_wakeword_method_channel.dart | 19 +++++ ...tter_vosk_wakeword_platform_interface.dart | 29 ++++++++ packages/flutter_vosk_wakeword/pubspec.yaml | 72 +++++++++++++++++++ pubspec.yaml | 2 +- 23 files changed, 459 insertions(+), 3 deletions(-) create mode 100644 packages/flutter_vosk_wakeword/.gitignore create mode 100644 packages/flutter_vosk_wakeword/.metadata create mode 100644 packages/flutter_vosk_wakeword/CHANGELOG.md create mode 100644 packages/flutter_vosk_wakeword/LICENSE create mode 100644 packages/flutter_vosk_wakeword/README.md create mode 100644 packages/flutter_vosk_wakeword/analysis_options.yaml create mode 100644 packages/flutter_vosk_wakeword/android/.gitignore create mode 100644 packages/flutter_vosk_wakeword/android/build.gradle create mode 100644 packages/flutter_vosk_wakeword/android/settings.gradle create mode 100644 packages/flutter_vosk_wakeword/android/src/main/AndroidManifest.xml create mode 100644 packages/flutter_vosk_wakeword/android/src/main/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPlugin.kt create mode 100644 packages/flutter_vosk_wakeword/android/src/test/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPluginTest.kt create mode 100644 packages/flutter_vosk_wakeword/ios/.gitignore create mode 100644 packages/flutter_vosk_wakeword/ios/Assets/.gitkeep create mode 100644 packages/flutter_vosk_wakeword/ios/Classes/FlutterVoskWakewordPlugin.swift create mode 100644 packages/flutter_vosk_wakeword/ios/Resources/PrivacyInfo.xcprivacy create mode 100644 packages/flutter_vosk_wakeword/ios/flutter_vosk_wakeword.podspec create mode 100644 packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword.dart create mode 100644 packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_method_channel.dart create mode 100644 packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_platform_interface.dart create mode 100644 packages/flutter_vosk_wakeword/pubspec.yaml diff --git a/packages/basic_intl/pubspec.yaml b/packages/basic_intl/pubspec.yaml index 3122e48..bb48e8d 100644 --- a/packages/basic_intl/pubspec.yaml +++ b/packages/basic_intl/pubspec.yaml @@ -12,5 +12,3 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - -flutter: diff --git a/packages/flutter_vosk_wakeword/.gitignore b/packages/flutter_vosk_wakeword/.gitignore new file mode 100644 index 0000000..e7d347d --- /dev/null +++ b/packages/flutter_vosk_wakeword/.gitignore @@ -0,0 +1,33 @@ +# 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 +# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. +/pubspec.lock +**/doc/api/ +.dart_tool/ +.flutter-plugins +.flutter-plugins-dependencies +build/ diff --git a/packages/flutter_vosk_wakeword/.metadata b/packages/flutter_vosk_wakeword/.metadata new file mode 100644 index 0000000..b09d708 --- /dev/null +++ b/packages/flutter_vosk_wakeword/.metadata @@ -0,0 +1,33 @@ +# 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 and should not be manually edited. + +version: + revision: "d8a9f9a52e5af486f80d932e838ee93861ffd863" + channel: "stable" + +project_type: plugin + +# Tracks metadata for the flutter migrate command +migration: + platforms: + - platform: root + create_revision: d8a9f9a52e5af486f80d932e838ee93861ffd863 + base_revision: d8a9f9a52e5af486f80d932e838ee93861ffd863 + - platform: android + create_revision: d8a9f9a52e5af486f80d932e838ee93861ffd863 + base_revision: d8a9f9a52e5af486f80d932e838ee93861ffd863 + - platform: ios + create_revision: d8a9f9a52e5af486f80d932e838ee93861ffd863 + base_revision: d8a9f9a52e5af486f80d932e838ee93861ffd863 + + # 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/packages/flutter_vosk_wakeword/CHANGELOG.md b/packages/flutter_vosk_wakeword/CHANGELOG.md new file mode 100644 index 0000000..41cc7d8 --- /dev/null +++ b/packages/flutter_vosk_wakeword/CHANGELOG.md @@ -0,0 +1,3 @@ +## 0.0.1 + +* TODO: Describe initial release. diff --git a/packages/flutter_vosk_wakeword/LICENSE b/packages/flutter_vosk_wakeword/LICENSE new file mode 100644 index 0000000..ba75c69 --- /dev/null +++ b/packages/flutter_vosk_wakeword/LICENSE @@ -0,0 +1 @@ +TODO: Add your license here. diff --git a/packages/flutter_vosk_wakeword/README.md b/packages/flutter_vosk_wakeword/README.md new file mode 100644 index 0000000..18ceab1 --- /dev/null +++ b/packages/flutter_vosk_wakeword/README.md @@ -0,0 +1,15 @@ +# flutter_vosk_wakeword + +A new Flutter plugin project. + +## Getting Started + +This project is a starting point for a Flutter +[plug-in package](https://flutter.dev/to/develop-plugins), +a specialized package that includes platform-specific implementation code for +Android and/or iOS. + +For help getting started with Flutter development, view the +[online documentation](https://docs.flutter.dev), which offers tutorials, +samples, guidance on mobile development, and a full API reference. + diff --git a/packages/flutter_vosk_wakeword/analysis_options.yaml b/packages/flutter_vosk_wakeword/analysis_options.yaml new file mode 100644 index 0000000..a5744c1 --- /dev/null +++ b/packages/flutter_vosk_wakeword/analysis_options.yaml @@ -0,0 +1,4 @@ +include: package:flutter_lints/flutter.yaml + +# Additional information about this file can be found at +# https://dart.dev/guides/language/analysis-options diff --git a/packages/flutter_vosk_wakeword/android/.gitignore b/packages/flutter_vosk_wakeword/android/.gitignore new file mode 100644 index 0000000..161bdcd --- /dev/null +++ b/packages/flutter_vosk_wakeword/android/.gitignore @@ -0,0 +1,9 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures +.cxx diff --git a/packages/flutter_vosk_wakeword/android/build.gradle b/packages/flutter_vosk_wakeword/android/build.gradle new file mode 100644 index 0000000..7a071eb --- /dev/null +++ b/packages/flutter_vosk_wakeword/android/build.gradle @@ -0,0 +1,66 @@ +group = "com.tsystems.flutter_vosk_wakeword" +version = "1.0-SNAPSHOT" + +buildscript { + ext.kotlin_version = "1.8.22" + repositories { + google() + mavenCentral() + } + + dependencies { + classpath("com.android.tools.build:gradle:8.1.0") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version") + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +apply plugin: "com.android.library" +apply plugin: "kotlin-android" + +android { + namespace = "com.tsystems.flutter_vosk_wakeword" + + compileSdk = 35 + + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + + kotlinOptions { + jvmTarget = JavaVersion.VERSION_11 + } + + sourceSets { + main.java.srcDirs += "src/main/kotlin" + test.java.srcDirs += "src/test/kotlin" + } + + defaultConfig { + minSdk = 21 + } + + dependencies { + testImplementation("org.jetbrains.kotlin:kotlin-test") + testImplementation("org.mockito:mockito-core:5.0.0") + } + + testOptions { + unitTests.all { + useJUnitPlatform() + + testLogging { + events "passed", "skipped", "failed", "standardOut", "standardError" + outputs.upToDateWhen {false} + showStandardStreams = true + } + } + } +} diff --git a/packages/flutter_vosk_wakeword/android/settings.gradle b/packages/flutter_vosk_wakeword/android/settings.gradle new file mode 100644 index 0000000..6c342ba --- /dev/null +++ b/packages/flutter_vosk_wakeword/android/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'flutter_vosk_wakeword' diff --git a/packages/flutter_vosk_wakeword/android/src/main/AndroidManifest.xml b/packages/flutter_vosk_wakeword/android/src/main/AndroidManifest.xml new file mode 100644 index 0000000..5bdcd4d --- /dev/null +++ b/packages/flutter_vosk_wakeword/android/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + diff --git a/packages/flutter_vosk_wakeword/android/src/main/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPlugin.kt b/packages/flutter_vosk_wakeword/android/src/main/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPlugin.kt new file mode 100644 index 0000000..59cb517 --- /dev/null +++ b/packages/flutter_vosk_wakeword/android/src/main/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPlugin.kt @@ -0,0 +1,35 @@ +package com.tsystems.flutter_vosk_wakeword + +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 +import io.flutter.plugin.common.MethodChannel.Result + +/** FlutterVoskWakewordPlugin */ +class FlutterVoskWakewordPlugin: FlutterPlugin, MethodCallHandler { + /// The MethodChannel that will the communication between Flutter and native Android + /// + /// This local reference serves to register the plugin with the Flutter Engine and unregister it + /// when the Flutter Engine is detached from the Activity + private lateinit var channel : MethodChannel + + override fun onAttachedToEngine(flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) { + channel = MethodChannel(flutterPluginBinding.binaryMessenger, "flutter_vosk_wakeword") + channel.setMethodCallHandler(this) + } + + override fun onMethodCall(call: MethodCall, result: Result) { + if (call.method == "getPlatformVersion") { + result.success("Android ${android.os.Build.VERSION.RELEASE}") + } else { + result.notImplemented() + } + } + + override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) { + channel.setMethodCallHandler(null) + } +} diff --git a/packages/flutter_vosk_wakeword/android/src/test/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPluginTest.kt b/packages/flutter_vosk_wakeword/android/src/test/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPluginTest.kt new file mode 100644 index 0000000..659e1e6 --- /dev/null +++ b/packages/flutter_vosk_wakeword/android/src/test/kotlin/com/tsystems/flutter_vosk_wakeword/FlutterVoskWakewordPluginTest.kt @@ -0,0 +1,27 @@ +package com.tsystems.flutter_vosk_wakeword + +import io.flutter.plugin.common.MethodCall +import io.flutter.plugin.common.MethodChannel +import kotlin.test.Test +import org.mockito.Mockito + +/* + * This demonstrates a simple unit test of the Kotlin portion of this plugin's implementation. + * + * Once you have built the plugin's example app, you can run these tests from the command + * line by running `./gradlew testDebugUnitTest` in the `example/android/` directory, or + * you can run them directly from IDEs that support JUnit such as Android Studio. + */ + +internal class FlutterVoskWakewordPluginTest { + @Test + fun onMethodCall_getPlatformVersion_returnsExpectedValue() { + val plugin = FlutterVoskWakewordPlugin() + + val call = MethodCall("getPlatformVersion", null) + val mockResult: MethodChannel.Result = Mockito.mock(MethodChannel.Result::class.java) + plugin.onMethodCall(call, mockResult) + + Mockito.verify(mockResult).success("Android " + android.os.Build.VERSION.RELEASE) + } +} diff --git a/packages/flutter_vosk_wakeword/ios/.gitignore b/packages/flutter_vosk_wakeword/ios/.gitignore new file mode 100644 index 0000000..034771f --- /dev/null +++ b/packages/flutter_vosk_wakeword/ios/.gitignore @@ -0,0 +1,38 @@ +.idea/ +.vagrant/ +.sconsign.dblite +.svn/ + +.DS_Store +*.swp +profile + +DerivedData/ +build/ +GeneratedPluginRegistrant.h +GeneratedPluginRegistrant.m + +.generated/ + +*.pbxuser +*.mode1v3 +*.mode2v3 +*.perspectivev3 + +!default.pbxuser +!default.mode1v3 +!default.mode2v3 +!default.perspectivev3 + +xcuserdata + +*.moved-aside + +*.pyc +*sync/ +Icon? +.tags* + +/Flutter/Generated.xcconfig +/Flutter/ephemeral/ +/Flutter/flutter_export_environment.sh diff --git a/packages/flutter_vosk_wakeword/ios/Assets/.gitkeep b/packages/flutter_vosk_wakeword/ios/Assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/packages/flutter_vosk_wakeword/ios/Classes/FlutterVoskWakewordPlugin.swift b/packages/flutter_vosk_wakeword/ios/Classes/FlutterVoskWakewordPlugin.swift new file mode 100644 index 0000000..a804a71 --- /dev/null +++ b/packages/flutter_vosk_wakeword/ios/Classes/FlutterVoskWakewordPlugin.swift @@ -0,0 +1,19 @@ +import Flutter +import UIKit + +public class FlutterVoskWakewordPlugin: NSObject, FlutterPlugin { + public static func register(with registrar: FlutterPluginRegistrar) { + let channel = FlutterMethodChannel(name: "flutter_vosk_wakeword", binaryMessenger: registrar.messenger()) + let instance = FlutterVoskWakewordPlugin() + registrar.addMethodCallDelegate(instance, channel: channel) + } + + public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { + switch call.method { + case "getPlatformVersion": + result("iOS " + UIDevice.current.systemVersion) + default: + result(FlutterMethodNotImplemented) + } + } +} diff --git a/packages/flutter_vosk_wakeword/ios/Resources/PrivacyInfo.xcprivacy b/packages/flutter_vosk_wakeword/ios/Resources/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..a34b7e2 --- /dev/null +++ b/packages/flutter_vosk_wakeword/ios/Resources/PrivacyInfo.xcprivacy @@ -0,0 +1,14 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyAccessedAPITypes + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/flutter_vosk_wakeword/ios/flutter_vosk_wakeword.podspec b/packages/flutter_vosk_wakeword/ios/flutter_vosk_wakeword.podspec new file mode 100644 index 0000000..31a4842 --- /dev/null +++ b/packages/flutter_vosk_wakeword/ios/flutter_vosk_wakeword.podspec @@ -0,0 +1,29 @@ +# +# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html. +# Run `pod lib lint flutter_vosk_wakeword.podspec` to validate before publishing. +# +Pod::Spec.new do |s| + s.name = 'flutter_vosk_wakeword' + s.version = '0.0.1' + s.summary = 'A new Flutter plugin project.' + s.description = <<-DESC +A new Flutter plugin project. + DESC + s.homepage = 'http://example.com' + s.license = { :file => '../LICENSE' } + s.author = { 'Your Company' => 'email@example.com' } + s.source = { :path => '.' } + s.source_files = 'Classes/**/*' + s.dependency 'Flutter' + s.platform = :ios, '12.0' + + # Flutter.framework does not contain a i386 slice. + s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } + s.swift_version = '5.0' + + # If your plugin requires a privacy manifest, for example if it uses any + # required reason APIs, update the PrivacyInfo.xcprivacy file to describe your + # plugin's privacy impact, and then uncomment this line. For more information, + # see https://developer.apple.com/documentation/bundleresources/privacy_manifest_files + # s.resource_bundles = {'flutter_vosk_wakeword_privacy' => ['Resources/PrivacyInfo.xcprivacy']} +end diff --git a/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword.dart b/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword.dart new file mode 100644 index 0000000..56de5df --- /dev/null +++ b/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword.dart @@ -0,0 +1,8 @@ + +import 'flutter_vosk_wakeword_platform_interface.dart'; + +class FlutterVoskWakeword { + Future getPlatformVersion() { + return FlutterVoskWakewordPlatform.instance.getPlatformVersion(); + } +} diff --git a/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_method_channel.dart b/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_method_channel.dart new file mode 100644 index 0000000..be35643 --- /dev/null +++ b/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_method_channel.dart @@ -0,0 +1,19 @@ +import 'package:flutter/foundation.dart'; +import 'package:flutter/services.dart'; + +import 'flutter_vosk_wakeword_platform_interface.dart'; + +/// An implementation of [FlutterVoskWakewordPlatform] that uses method channels. +class MethodChannelFlutterVoskWakeword extends FlutterVoskWakewordPlatform { + /// The method channel used to interact with the native platform. + @visibleForTesting + final methodChannel = const MethodChannel('flutter_vosk_wakeword'); + + @override + Future getPlatformVersion() async { + final version = await methodChannel.invokeMethod('getPlatformVersion'); + return version; + } +} + + diff --git a/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_platform_interface.dart b/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_platform_interface.dart new file mode 100644 index 0000000..6d852da --- /dev/null +++ b/packages/flutter_vosk_wakeword/lib/flutter_vosk_wakeword_platform_interface.dart @@ -0,0 +1,29 @@ +import 'package:plugin_platform_interface/plugin_platform_interface.dart'; + +import 'flutter_vosk_wakeword_method_channel.dart'; + +abstract class FlutterVoskWakewordPlatform extends PlatformInterface { + /// Constructs a FlutterVoskWakewordPlatform. + FlutterVoskWakewordPlatform() : super(token: _token); + + static final Object _token = Object(); + + static FlutterVoskWakewordPlatform _instance = MethodChannelFlutterVoskWakeword(); + + /// The default instance of [FlutterVoskWakewordPlatform] to use. + /// + /// Defaults to [MethodChannelFlutterVoskWakeword]. + static FlutterVoskWakewordPlatform get instance => _instance; + + /// Platform-specific implementations should set this with their own + /// platform-specific class that extends [FlutterVoskWakewordPlatform] when + /// they register themselves. + static set instance(FlutterVoskWakewordPlatform instance) { + PlatformInterface.verifyToken(instance, _token); + _instance = instance; + } + + Future getPlatformVersion() { + throw UnimplementedError('platformVersion() has not been implemented.'); + } +} diff --git a/packages/flutter_vosk_wakeword/pubspec.yaml b/packages/flutter_vosk_wakeword/pubspec.yaml new file mode 100644 index 0000000..8bdd656 --- /dev/null +++ b/packages/flutter_vosk_wakeword/pubspec.yaml @@ -0,0 +1,72 @@ +name: flutter_vosk_wakeword +description: "A new Flutter plugin project." +version: 0.0.1 +homepage: https://code.deep-pilot.chat + +environment: + sdk: ^3.6.2 + flutter: '>=3.3.0' + +dependencies: + flutter: + sdk: flutter + plugin_platform_interface: ^2.0.2 + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_lints: ^5.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + # This section identifies this Flutter project as a plugin project. + # The 'pluginClass' specifies the class (in Java, Kotlin, Swift, Objective-C, etc.) + # which should be registered in the plugin registry. This is required for + # using method channels. + # The Android 'package' specifies package in which the registered class is. + # This is required for using method channels on Android. + # The 'ffiPlugin' specifies that native code should be built and bundled. + # This is required for using `dart:ffi`. + # All these are used by the tooling to maintain consistency when + # adding or updating assets for this project. + plugin: + platforms: + android: + package: com.tsystems.flutter_vosk_wakeword + pluginClass: FlutterVoskWakewordPlugin + ios: + pluginClass: FlutterVoskWakewordPlugin + + # To add assets to your plugin package, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + # + # For details regarding assets in packages, see + # https://flutter.dev/to/asset-from-package + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/to/resolution-aware-images + + # To add custom fonts to your plugin package, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts in packages, see + # https://flutter.dev/to/font-from-package diff --git a/pubspec.yaml b/pubspec.yaml index 2d78a38..a6a464f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -40,7 +40,7 @@ flutter: plugin: platforms: android: - package: com.example.ai_assistant_plugin + package: com.tsystems.ai_assistant_plugin pluginClass: AiAssistantPlugin fonts: - family: VWHead_Bold