Project template

This commit is contained in:
Ryan Heise 2019-11-26 01:50:21 +11:00
commit 64dcdc8e9c
84 changed files with 2057 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ryanheise.audio_player">
</manifest>

View file

@ -0,0 +1,25 @@
package com.ryanheise.audio_player;
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;
import io.flutter.plugin.common.PluginRegistry.Registrar;
/** AudioPlayerPlugin */
public class AudioPlayerPlugin implements MethodCallHandler {
/** Plugin registration. */
public static void registerWith(Registrar registrar) {
final MethodChannel channel = new MethodChannel(registrar.messenger(), "audio_player");
channel.setMethodCallHandler(new AudioPlayerPlugin());
}
@Override
public void onMethodCall(MethodCall call, Result result) {
if (call.method.equals("getPlatformVersion")) {
result.success("Android " + android.os.Build.VERSION.RELEASE);
} else {
result.notImplemented();
}
}
}