refactor: Rename src to packages
This commit is contained in:
30
packages/moxplatform_linux/.gitignore
vendored
Normal file
30
packages/moxplatform_linux/.gitignore
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
# Miscellaneous
|
||||
*.class
|
||||
*.log
|
||||
*.pyc
|
||||
*.swp
|
||||
.DS_Store
|
||||
.atom/
|
||||
.buildlog/
|
||||
.history
|
||||
.svn/
|
||||
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/
|
||||
.packages
|
||||
build/
|
||||
10
packages/moxplatform_linux/.metadata
Normal file
10
packages/moxplatform_linux/.metadata
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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: 13a2fb10b838971ce211230f8ffdd094c14af02c
|
||||
channel: beta
|
||||
|
||||
project_type: package
|
||||
3
packages/moxplatform_linux/CHANGELOG.md
Normal file
3
packages/moxplatform_linux/CHANGELOG.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## 0.0.1
|
||||
|
||||
* TODO: Describe initial release.
|
||||
1
packages/moxplatform_linux/LICENSE
Normal file
1
packages/moxplatform_linux/LICENSE
Normal file
@@ -0,0 +1 @@
|
||||
TODO: Add your license here.
|
||||
4
packages/moxplatform_linux/analysis_options.yaml
Normal file
4
packages/moxplatform_linux/analysis_options.yaml
Normal file
@@ -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
|
||||
13
packages/moxplatform_linux/lib/moxplatform_linux.dart
Normal file
13
packages/moxplatform_linux/lib/moxplatform_linux.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
import "package:moxplatform_generic/isolate_generic.dart";
|
||||
|
||||
import "package:moxplatform_platform_interface/moxplatform_platform_interface.dart";
|
||||
|
||||
class MoxplatformLinuxPlugin extends MoxplatformInterface {
|
||||
static void registerWith() {
|
||||
print("MoxplatformLinuxPlugin: Registering implementation");
|
||||
MoxplatformInterface.handler = GenericIsolateHandler();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<String> getPlatformName() async => "Linux";
|
||||
}
|
||||
32
packages/moxplatform_linux/pubspec.yaml
Normal file
32
packages/moxplatform_linux/pubspec.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: moxplatform_linux
|
||||
description: Linux-specific implementation of moxplatform
|
||||
version: 0.1.11
|
||||
homepage: https://codeberg.org/moxxy/moxplatform
|
||||
|
||||
environment:
|
||||
sdk: ">=2.17.0-266.1.beta <3.0.0"
|
||||
flutter: ">=1.17.0"
|
||||
|
||||
dependencies:
|
||||
flutter:
|
||||
sdk: flutter
|
||||
|
||||
moxplatform:
|
||||
path: ../moxplatform
|
||||
#hosted: https://git.polynom.me/api/packages/Moxxy/pub
|
||||
#version: 0.1.11
|
||||
moxplatform_generic:
|
||||
path: ../moxplatform_generic
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
sdk: flutter
|
||||
flutter_lints: ^2.0.0
|
||||
|
||||
flutter:
|
||||
plugin:
|
||||
implements: moxplatform
|
||||
platforms:
|
||||
linux:
|
||||
dartPluginClass: MoxplatformLinuxPlugin
|
||||
|
||||
Reference in New Issue
Block a user