add viewer/windows files

This commit is contained in:
Nick Fisher
2022-01-30 14:52:19 +08:00
parent d31b1eb09b
commit 97eca4a418
127 changed files with 4028 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
group 'com.example.polyvox_filament'
group 'app.polyvox.filament'
version '1.0-SNAPSHOT'
buildscript {

View File

@@ -1 +1 @@
rootProject.name = 'polyvox_filament'
rootProject.name = 'filament'

View File

@@ -1,3 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.polyvox_filament">
package="app.polyvox.filament">
</manifest>

View File

@@ -1,4 +1,4 @@
package com.example.polyvox_filament
package app.polyvox.filament
import androidx.annotation.NonNull

View File

@@ -0,0 +1,35 @@
package app.polyvox.polyvox_filament
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
/** PolyvoxFilamentPlugin */
class PolyvoxFilamentPlugin: 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(@NonNull flutterPluginBinding: FlutterPlugin.FlutterPluginBinding) {
channel = MethodChannel(flutterPluginBinding.binaryMessenger, "polyvox_filament")
channel.setMethodCallHandler(this)
}
override fun onMethodCall(@NonNull call: MethodCall, @NonNull result: Result) {
if (call.method == "getPlatformVersion") {
result.success("Android ${android.os.Build.VERSION.RELEASE}")
} else {
result.notImplemented()
}
}
override fun onDetachedFromEngine(@NonNull binding: FlutterPlugin.FlutterPluginBinding) {
channel.setMethodCallHandler(null)
}
}