This commit is contained in:
2024-11-17 16:01:34 +08:00
commit 7d68ed0f6c
250 changed files with 8930 additions and 0 deletions

43
.gitignore vendored Normal file
View File

@ -0,0 +1,43 @@
# 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
**/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

187
CHANGELOG.md Normal file
View File

@ -0,0 +1,187 @@
## 0.8.11
- feat: 增加PlatformService::getAssetPath方法
- enhance: CGSize增加创建方法
- enhance: 新增FluttifyBroadcastEventChannel, 一律返回Intent
- enhance: Intent增加获取bundle
## 0.8.10
- feat: 增加UIImageView的创建
- enhance: UIView增加setAnchorPoint
- enhance: CGRect增加属性获取方法
## 0.8.9
- fix: objc application的回调不再传输NSDictionary类型的参数, 防止崩溃
## 0.8.8
- enhance: CGSize增加width和height
## 0.8.7
- enhance: 增加ImageProviderX
## 0.8.6
- enhance: 增加java_lang_Throwable
## 0.8.5
- enhance: 接口类增加sbInstance方法
## 0.8.4
- enhance: 增加android_view_SurfaceHolder_Callback
## 0.8.3
- enhance: 增加android_view_SurfaceView
## 0.8.2
- feat: android_location_Location增加setter
## 0.8.1
- feat: 增加startActivityForResult方法
- feat: 增加uri2ImageData
- feat: UIViewController::get
- feat: android_location_Location增加创建方法
## 0.8.0
- fix: UIImage scale问题处理
## 0.7.3
- feat: 增加java.io.File
## 0.7.2
- feat: 增加java_io_Closeable
## 0.7.1
- feat: Bundle增加getString和putString
- enhance: ios使用static_framework
- enhance: 适配1.17
## 0.7.0
- enhance: [breaking change] 去除CoreLocation相关逻辑, 计划分离到core_location_fluttiy插件中去
- feat: 增加android_view_View_OnTouchListener类; 增加ui_view.widget
- feat: 增加av_audio_session_category_options
- feat: CGRect增加create方法
- feat: android.graphics.Bitmap和UIImage各自增加从原生素材创建Image的方法
## 0.6.1
- enhance: android: *Handler的args参数使用Any类型, 内部再做转换
- feat: 增加批处理方法
## 0.6.0
- enhance: [breaking change] Ref类内的方法和属性都加上__后缀, 防止和子类冲突
## 0.5.1
- feat: NSError增加获取code和description的方法
## 0.5.0
- enhance: [breaking change] tag -> tag__
## 0.4.18
- feat: 增加UIViewController
## 0.4.17
- feat: 使用System.identityHashCode代替hashCode方法
- feat: 增加android.view.View.OnClickListener类
- feat: 增加startActivity/presentViewController方法
## 0.4.16
- feat: 增加NSValue类
## 0.4.15
- enhance: 简化platform方法
- enhance: 补上漏掉的log开关
- enhance: 迁移创建方法到对应类的handler里去
- feat: 增加android.app.Notification类
## 0.4.14
- enhance: CLLocationCoordinate2D增加批量创建方法
## 0.4.13
- enhance: 优化批量释放日志
- feat: UIView增加hidden和setHidden
## 0.4.12
- enhance: 优化platform方法里的释放逻辑
## 0.4.11
- enhance: Ref增加批处理释放对象方法
## 0.4.10
- feat: 增加org_json_JSONObject类
## 0.4.9
- feat: 增加android_view_View_OnApplyWindowInsetsListener类
## 0.4.8
- feat: Bitmap增加批量创建方法
## 0.4.7
- refactor: PlatformFactory统一为PlatformService
- feat: 增加ns_operation类
## 0.4.6
- feat: 增加一些通用的typedef
## 0.4.5+1
- fix: onAttachedToEngine中的Plugin对象应该使用this
## 0.4.5
- fix: PlatformFactory的activity是可选类型;
- enhance: android_util_Pair获取first和second都返回Object
## 0.4.4
- enhance: 适配新版embedding
- refactor: method channel放到objects文件里
## 0.4.3
- feat: 增加为对象动态添加属性的方法(目前仅限ios端, android理论上可以再加全局Map实现但是目前没有碰到此类需求)
## 0.4.2
- feat: 增加java_io_Serializable
## 0.4.1
- feat: 增加android_os_Binder
## 0.4.0
- refactor: 可以放进类的静态方法替换全局函数
## 0.3.0
- refactor: 函数代替类
- chore: 提升gradle相关版本
## 0.2.7
- feat: 增加pending_intent类
## 0.2.6
- feat: android端增加BroadcastReceiver统一接收广播
## 0.2.5
- feat: CLHeading实现magneticHeadingtrueHeadingheadingAccuracy
## 0.2.4
- feat: android_location_Location增加bearing, altitude, accuracy, speed
## 0.2.3
- feat: 增加android_content_ContentProvider
## 0.2.2
- feat: 实现UIEdgeInsets的属性
## 0.2.1
- fix: [objc] 每个.h文件都import <Flutter/Flutter.h>
## 0.2.0
- [breaking change] 整理工厂方法
## 0.1.5
- feat: 增加cgpoint的创建支持获取x和y
## 0.1.4
- feat: 增加android_graphics_Point的创建, getX, getY的支持
## 0.1.3
feat: 增加NSData
## 0.1.2
- 新增android.app.Activity#getIntent()
- feat: android端的Intent处理容器
## 0.1.1
- 增加android.content.Intent

13
LICENSE Normal file
View File

@ -0,0 +1,13 @@
Copyright 2020 yohom
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# `Fluttify`基础设施
所有基于`Fluttify`的插件公共的部分, 当然不基于`Fluttify`的插件理论上也可以使用.
主要实现一些基础设施和系统类的实现.

7
analysis_options.yaml Normal file
View File

@ -0,0 +1,7 @@
include: package:pedantic/analysis_options.yaml
linter:
rules:
camel_case_types: false
camel_case_extensions: false
omit_local_variable_types: false

70
android/build.gradle Normal file
View File

@ -0,0 +1,70 @@
group 'me.yohom.foundation_fluttify'
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")
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
if (project.android.hasProperty("namespace")) {
namespace = "me.yohom.foundation_fluttify"
}
compileSdk = 34
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
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
}
}
}
}

View File

@ -0,0 +1,4 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true

1
android/settings.gradle Normal file
View File

@ -0,0 +1 @@
rootProject.name = 'foundation_fluttify'

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.yohom.foundation_fluttify">
<application>
<receiver android:name=".FluttifyBroadcastReceiver" />
</application>
</manifest>

View File

@ -0,0 +1,82 @@
package me.yohom.foundation_fluttify.core;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import io.flutter.plugin.common.StandardMessageCodec;
import me.yohom.foundation_fluttify.FoundationFluttifyPluginKt;
import java.io.ByteArrayOutputStream;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.*;
public class FluttifyMessageCodec extends StandardMessageCodec {
private static final Charset UTF8 = Charset.forName("UTF8");
// 总体逻辑, 先尝试使用标准编解码进行处理, 如果发生异常再使用自定义的编解码处理, 再不行就只能抛异常了
private static final byte ARRAY = 125;
private static final byte ENUM = 126;
private static final byte REF = 127;
@Override
protected void writeValue(@NonNull ByteArrayOutputStream stream, @NonNull Object value) {
try {
super.writeValue(stream, value);
} catch (IllegalArgumentException e) {
// 对象数组转换
if (value instanceof Object[]) {
stream.write(ARRAY);
Object[] array = (Object[]) value;
writeSize(stream, array.length);
for (Object item : array) {
writeValue(stream, item);
}
}
// 枚举值传索引
else if (value instanceof Enum) {
stream.write(ENUM);
writeInt(stream, ((Enum<?>) value).ordinal());
} else {
final String refId = value.getClass().getName() + ":" + System.identityHashCode(value);
// 放入HEAP
FoundationFluttifyPluginKt.getHEAP().put(refId, value);
stream.write(REF);
writeBytes(stream, refId.getBytes(UTF8));
}
}
}
@Nullable
protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) {
Object result;
try {
result = super.readValueOfType(type, buffer);
} catch (IllegalArgumentException e) {
switch (type) {
case ARRAY:
final int size = readSize(buffer);
final List<Object> list = new ArrayList<>(size);
int i = 0;
while (i < size) {
list.add(readValue(buffer));
i++;
}
result = list.toArray();
break;
case ENUM:
result = buffer.getInt();
break;
case REF:
final byte[] bytes = readBytes(buffer);
result = FoundationFluttifyPluginKt.getHEAP().get(new String(bytes, UTF8));
break;
default:
result = null;
}
}
return result;
}
}

View File

@ -0,0 +1,157 @@
package me.yohom.foundation_fluttify
import android.app.Activity
import android.content.Context
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
import io.flutter.plugin.common.BinaryMessenger
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
import io.flutter.plugin.common.StandardMethodCodec
import io.flutter.plugin.platform.PlatformViewRegistry
import me.yohom.foundation_fluttify.android.app.ActivityHandler
import me.yohom.foundation_fluttify.android.app.ApplicationHandler
import me.yohom.foundation_fluttify.android.app.NotificationHandler
import me.yohom.foundation_fluttify.android.app.PendingIntentHandler
import me.yohom.foundation_fluttify.android.content.BroadcastReceiverHandler
import me.yohom.foundation_fluttify.android.content.ContextHandler
import me.yohom.foundation_fluttify.android.content.IntentFilterHandler
import me.yohom.foundation_fluttify.android.content.IntentHandler
import me.yohom.foundation_fluttify.android.graphics.BitmapHandler
import me.yohom.foundation_fluttify.android.graphics.PointHandler
import me.yohom.foundation_fluttify.android.location.LocationHandler
import me.yohom.foundation_fluttify.android.os.BundleHandler
import me.yohom.foundation_fluttify.android.util.PairHandler
import me.yohom.foundation_fluttify.android.view.SurfaceHolderHandler
import me.yohom.foundation_fluttify.android.view.SurfaceViewHandler
import me.yohom.foundation_fluttify.android.view.ViewGroupHandler
import me.yohom.foundation_fluttify.android.view.ViewHandler
import me.yohom.foundation_fluttify.android.widget.ImageViewHandler
import me.yohom.foundation_fluttify.core.FluttifyMessageCodec
import me.yohom.foundation_fluttify.core.PlatformService
import me.yohom.foundation_fluttify.java.io.FileHandler
import me.yohom.foundation_fluttify.platform_view.android_opengl_GLSurfaceViewFactory
import me.yohom.foundation_fluttify.platform_view.android_view_SurfaceViewFactory
import me.yohom.foundation_fluttify.platform_view.android_widget_FrameLayoutFactory
// The stack that exists on the Dart side for a method call is enabled only when the MethodChannel passing parameters are limited
val STACK = mutableMapOf<String, Any>()
// Container for Dart side random access objects
val HEAP = mutableMapOf<String, Any>()
// whether enable log or not
var enableLog: Boolean = true
// method channel for foundation
lateinit var gMethodChannel: MethodChannel
class FoundationFluttifyPlugin : FlutterPlugin, ActivityAware, MethodCallHandler {
private var applicationContext: Context? = null
private var activity: Activity? = null
private var activityBinding: ActivityPluginBinding? = null
private var pluginBinding: FlutterPlugin.FlutterPluginBinding? = null
private var registrar: Registrar? = null
private var platformViewRegistry: PlatformViewRegistry? = null
private var binaryMessenger: BinaryMessenger? = null
companion object {
@JvmStatic
fun registerWith(registrar: Registrar) {
val plugin = FoundationFluttifyPlugin()
plugin.registrar = registrar
plugin.platformViewRegistry = registrar.platformViewRegistry()
plugin.binaryMessenger = registrar.messenger()
plugin.activity = registrar.activity()
plugin.applicationContext = registrar.activity()?.applicationContext
plugin.platformViewRegistry?.registerViewFactory("me.yohom/foundation_fluttify/android.view.SurfaceView", android_view_SurfaceViewFactory(registrar.messenger()))
plugin.platformViewRegistry?.registerViewFactory("me.yohom/foundation_fluttify/android.widget.FrameLayout", android_widget_FrameLayoutFactory())
plugin.platformViewRegistry?.registerViewFactory("me.yohom/foundation_fluttify/android.opengl.GLSurfaceView", android_opengl_GLSurfaceViewFactory())
gMethodChannel = MethodChannel(
registrar.messenger(),
"com.fluttify/foundation_method",
StandardMethodCodec(FluttifyMessageCodec())
)
gMethodChannel.setMethodCallHandler(plugin)
}
}
override fun onMethodCall(methodCall: MethodCall, methodResult: Result) {
val rawArgs = methodCall.arguments ?: mapOf<String, Any>()
methodCall.method.run {
when {
startsWith("android.app.Application::") -> ApplicationHandler(methodCall.method, rawArgs, methodResult, applicationContext)
startsWith("android.app.Activity::") -> ActivityHandler(methodCall.method, rawArgs, methodResult, activity)
startsWith("android.app.PendingIntent::") -> PendingIntentHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.app.Notification::") -> NotificationHandler(methodCall.method, rawArgs, methodResult, activity)
startsWith("android.os.Bundle::") -> BundleHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.content.Intent::") -> IntentHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.content.Context::") -> ContextHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.content.BroadcastReceiver::") -> BroadcastReceiverHandler(methodCall.method, rawArgs, registrar?.messenger(), methodResult)
startsWith("android.content.IntentFilter::") -> IntentFilterHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.graphics.Bitmap::") -> BitmapHandler(methodCall.method, rawArgs, methodResult, activity)
startsWith("android.graphics.Point::") -> PointHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.location.Location::") -> LocationHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.util.Pair::") -> PairHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.view.View::") -> ViewHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.view.SurfaceView::") -> SurfaceViewHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.view.SurfaceHolder::") -> SurfaceHolderHandler(binaryMessenger, methodCall.method, rawArgs, methodResult)
startsWith("android.view.ViewGroup::") -> ViewGroupHandler(methodCall.method, rawArgs, methodResult)
startsWith("android.widget.ImageView::") -> ImageViewHandler(methodCall.method, rawArgs, methodResult, activity)
startsWith("java.io.File::") -> FileHandler(methodCall.method, rawArgs, methodResult)
startsWith("PlatformService::") -> PlatformService(methodCall.method, rawArgs as Map<String, Any>, methodResult, activityBinding, pluginBinding, registrar)
else -> methodResult.notImplemented()
}
}
}
override fun onAttachedToEngine(binding: FlutterPlugin.FlutterPluginBinding) {
applicationContext = binding.applicationContext
pluginBinding = binding
platformViewRegistry = binding.platformViewRegistry
binaryMessenger = binding.binaryMessenger
gMethodChannel = MethodChannel(
binding.binaryMessenger,
"com.fluttify/foundation_method",
StandardMethodCodec(FluttifyMessageCodec())
)
gMethodChannel.setMethodCallHandler(this)
}
override fun onDetachedFromEngine(binding: FlutterPlugin.FlutterPluginBinding) {
pluginBinding = null
activity = null
activityBinding = null
}
override fun onAttachedToActivity(binding: ActivityPluginBinding) {
activity = binding.activity
activityBinding = binding
platformViewRegistry?.registerViewFactory("me.yohom/foundation_fluttify/android.view.SurfaceView", android_view_SurfaceViewFactory(binaryMessenger))
platformViewRegistry?.registerViewFactory("me.yohom/foundation_fluttify/android.widget.FrameLayout", android_widget_FrameLayoutFactory())
platformViewRegistry?.registerViewFactory("me.yohom/foundation_fluttify/android.opengl.GLSurfaceView", android_opengl_GLSurfaceViewFactory())
}
override fun onDetachedFromActivity() {
activity = null
activityBinding = null
}
override fun onReattachedToActivityForConfigChanges(binding: ActivityPluginBinding) {
activity = binding.activity
activityBinding = binding
}
override fun onDetachedFromActivityForConfigChanges() {
activity = null
activityBinding = null
}
}

View File

@ -0,0 +1,17 @@
package me.yohom.foundation_fluttify.android.app
import android.app.Activity
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
fun ActivityHandler(method: String, args: Any, methodResult: MethodChannel.Result, context: Activity?) {
when (method) {
"android.app.Activity::getIntent" -> {
methodResult.success(args.__this__<Activity>().intent)
}
"android.app.Activity::get" -> {
methodResult.success(context)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,13 @@
package me.yohom.foundation_fluttify.android.app
import android.content.Context
import io.flutter.plugin.common.MethodChannel
fun ApplicationHandler(method: String, args: Any, methodResult: MethodChannel.Result, context: Context?) {
when (method) {
"android.app.Application::get" -> {
methodResult.success(context)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,65 @@
package me.yohom.foundation_fluttify.android.app
import android.app.Activity
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.graphics.Color
import android.os.Build
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.HEAP
import me.yohom.foundation_fluttify.enableLog
fun NotificationHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result, activity: Activity?) {
when (method) {
"android.app.Notification::create" -> {
val args = rawArgs as Map<String, Any>
if (activity == null) {
methodResult.error("activity cannot be null", "activity cannot be null", "activity cannot be null")
} else {
val contentTitle = args["contentTitle"] as String
val contentText = args["contentText"] as String
val `when` = args["when"] as Long
val channelId = args["channelId"] as String
val channelName = args["channelName"] as String
val enableLights = args["enableLights"] as Boolean
val showBadge = args["showBadge"] as Boolean
if (enableLog) {
android.util.Log.d("Notification create: ", "contentTitle: $contentTitle, contentText: $contentText, when: $`when`, channelId: $channelId, channelName: $channelName, enableLights: $enableLights, showBadge: $showBadge")
}
val notificationManager: NotificationManager = activity.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
// Android O上对Notification进行了修改如果设置的targetSDKVersion>=26建议使用此种方式创建通知栏
val builder: Notification.Builder = if (Build.VERSION.SDK_INT >= 26) {
val notificationChannel = NotificationChannel(channelId, channelName, NotificationManager.IMPORTANCE_DEFAULT)
.apply {
enableLights(enableLights) //是否在桌面icon右上角展示小圆点
lightColor = Color.BLUE //小圆点颜色
setShowBadge(showBadge) //是否在久按桌面图标时显示此渠道的通知
}
notificationManager.createNotificationChannel(notificationChannel)
Notification.Builder(activity.applicationContext, channelId)
} else {
Notification.Builder(activity.applicationContext)
}
// TODO: 从flutter传icon数据过来
val iconId = activity.resources.getIdentifier("ic_launcher", "mipmap", activity.packageName)
builder.setSmallIcon(iconId)
.setContentTitle(contentTitle)
.setContentText(contentText)
.setWhen(`when`)
val notification = builder.build()
methodResult.success(notification)
}
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,9 @@
package me.yohom.foundation_fluttify.android.app
import io.flutter.plugin.common.MethodChannel
fun PendingIntentHandler(method: String, args: Any, methodResult: MethodChannel.Result) {
when (method) {
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,29 @@
package me.yohom.foundation_fluttify.android.content
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.HEAP
fun BroadcastReceiverHandler(method: String, rawArgs: Any, binaryMessenger: BinaryMessenger?, methodResult: MethodChannel.Result) {
when (method) {
"android.content.BroadcastReceiver::create" -> {
val receiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
if (binaryMessenger != null) {
MethodChannel(binaryMessenger, "android.content.BroadcastReceiver::create::Callback")
.invokeMethod(
"Callback::android.content.BroadcastReceiver::onReceive",
mapOf("intent" to intent)
)
}
}
}
methodResult.success(receiver)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,24 @@
package me.yohom.foundation_fluttify.android.content
import android.content.BroadcastReceiver
import android.content.Context
import android.content.IntentFilter
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
fun ContextHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.content.Context::registerReceiver" -> {
val broadcastReceiver = rawArgs["broadcastReceiver"] as BroadcastReceiver
val intentFilter = rawArgs["intentFilter"] as IntentFilter
val context: Context = rawArgs.__this__()
val intent = context.registerReceiver(broadcastReceiver, intentFilter)
methodResult.success(intent)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,18 @@
package me.yohom.foundation_fluttify.android.content
import android.content.IntentFilter
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.get
fun IntentFilterHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.content.IntentFilter::create" -> {
val action = rawArgs["action"] as String
val intentFilter = IntentFilter(action)
methodResult.success(intentFilter)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,31 @@
package me.yohom.foundation_fluttify.android.content
import android.content.Intent
import android.os.Bundle
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
fun IntentHandler(method: String, args: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.content.Intent::getBundle" -> {
val intent: Intent = args.__this__()
val bundle = intent.extras ?: Bundle.EMPTY
val result: MutableMap<String, java.io.Serializable?> = mutableMapOf()
for (key in bundle.keySet()) {
result[key] = bundle.getSerializable(key)
}
methodResult.success(result)
}
"android.content.Intent::getAction" -> {
val intent: Intent = args.__this__()
val action = intent.action
methodResult.success(action)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,57 @@
package me.yohom.foundation_fluttify.android.graphics
import android.app.Activity
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
import java.io.ByteArrayOutputStream
fun BitmapHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result, activity: Activity?) {
when (method) {
"android.graphics.Bitmap::create" -> {
val bitmapBytes = rawArgs["bitmapBytes"] as ByteArray
val bitmap = BitmapFactory.decodeByteArray(bitmapBytes, 0, bitmapBytes.size)
methodResult.success(bitmap)
}
"android.graphics.Bitmap::createWithDrawable" -> {
val drawableId = rawArgs["drawableId"] as Int
if (activity != null) {
val bitmap = BitmapFactory.decodeResource(activity.resources, drawableId)
methodResult.success(bitmap)
} else {
methodResult.error("Activity不能为null", "Activity不能为null", "Activity不能为null")
}
}
"android.graphics.Bitmap::create_batch" -> {
val typedArgs = rawArgs as List<Map<String, ByteArray>>
val bitmapBytesBatch = typedArgs.map { it["bitmapBytes"] as ByteArray }
val resultBatch = bitmapBytesBatch
.map { BitmapFactory.decodeByteArray(it, 0, it.size) }
methodResult.success(resultBatch)
}
"android.graphics.Bitmap::getData" -> {
val bitmap = rawArgs["__this__"] as Bitmap
val outputStream = ByteArrayOutputStream()
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream)
methodResult.success(outputStream.toByteArray())
}
"android.graphics.Bitmap::recycle" -> {
val bitmap: Bitmap = rawArgs.__this__()
bitmap.recycle()
methodResult.success("success")
}
"android.graphics.Bitmap::isRecycled" -> {
val bitmap: Bitmap = rawArgs.__this__()
methodResult.success(bitmap.isRecycled)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,29 @@
package me.yohom.foundation_fluttify.android.graphics
import android.graphics.Point
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
fun PointHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.graphics.Point::create" -> {
val x = rawArgs["x"] as Int
val y = rawArgs["y"] as Int
val point = Point(x, y)
methodResult.success(point)
}
"android.graphics.Point::getX" -> {
val point: Point = rawArgs.__this__()
methodResult.success(point.x)
}
"android.graphics.Point::getY" -> {
val point: Point = rawArgs.__this__()
methodResult.success(point.y)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,102 @@
package me.yohom.foundation_fluttify.android.location
import android.location.Location
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
fun LocationHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.location.Location::create" -> {
val provider = rawArgs["provider"] as String
val location = Location(provider)
methodResult.success(location)
}
"android.location.Location::getLatitude" -> {
val location: Location = rawArgs.__this__()
methodResult.success(location.latitude)
}
"android.location.Location::getLongitude" -> {
val location: Location = rawArgs.__this__()
methodResult.success(location.longitude)
}
"android.location.Location::getBearing" -> {
val location: Location = rawArgs.__this__()
methodResult.success(location.bearing)
}
"android.location.Location::getAltitude" -> {
val location: Location = rawArgs.__this__()
methodResult.success(location.altitude)
}
"android.location.Location::getAccuracy" -> {
val location: Location = rawArgs.__this__()
methodResult.success(location.accuracy)
}
"android.location.Location::getSpeed" -> {
val location: Location = rawArgs.__this__()
methodResult.success(location.speed)
}
"android.location.Location::setLatitude" -> {
val latitude = rawArgs["latitude"] as Double
val location: Location = rawArgs.__this__()
location.latitude = latitude
methodResult.success("success")
}
"android.location.Location::setLongitude" -> {
val longitude = rawArgs["longitude"] as Double
val location: Location = rawArgs.__this__()
location.longitude = longitude
methodResult.success("success")
}
"android.location.Location::setBearing" -> {
val bearing = rawArgs["bearing"] as Double
val location: Location = rawArgs.__this__()
location.bearing = bearing.toFloat()
methodResult.success("success")
}
"android.location.Location::setAltitude" -> {
val altitude = rawArgs["altitude"] as Double
val location: Location = rawArgs.__this__()
location.altitude = altitude
methodResult.success("success")
}
"android.location.Location::setAccuracy" -> {
val accuracy = rawArgs["accuracy"] as Double
val location: Location = rawArgs.__this__()
location.accuracy = accuracy.toFloat()
methodResult.success("success")
}
"android.location.Location::setSpeed" -> {
val speed = rawArgs["speed"] as Double
val location: Location = rawArgs.__this__()
location.speed = speed.toFloat()
methodResult.success("success")
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,75 @@
package me.yohom.foundation_fluttify.android.os
import android.os.Bundle
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
fun BundleHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.os.Bundle::create" -> {
val target = Bundle()
methodResult.success(target)
}
"android.os.Bundle::putString" -> {
val key = rawArgs["key"] as String
val value = rawArgs["value"] as String
val bundle: Bundle = rawArgs.__this__()
bundle.putString(key, value)
methodResult.success("success")
}
"android.os.Bundle::putInt" -> {
val key = rawArgs["key"] as String
val value = rawArgs["value"] as Int
val bundle: Bundle = rawArgs.__this__()
bundle.putInt(key, value)
methodResult.success("success")
}
"android.os.Bundle::getString" -> {
val key = rawArgs["key"] as String
val bundle: Bundle = rawArgs.__this__()
methodResult.success(bundle.getString(key))
}
"android.os.Bundle::getInt" -> {
val key = rawArgs["key"] as String
val bundle: Bundle = rawArgs.__this__()
methodResult.success(bundle.getInt(key))
}
"android.os.Bundle::getFloat" -> {
val key = rawArgs["key"] as String
val bundle: Bundle = rawArgs.__this__()
methodResult.success(bundle.getFloat(key))
}
"android.os.Bundle::getDouble" -> {
val key = rawArgs["key"] as String
val bundle: Bundle = rawArgs.__this__()
methodResult.success(bundle.getDouble(key))
}
"android.os.Bundle::getAll" -> {
val bundle: Bundle = rawArgs.__this__()
val result: MutableMap<String, Any?> = mutableMapOf()
for (item in bundle.keySet()) {
result[item] = bundle.get(item)
}
methodResult.success(result)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,21 @@
package me.yohom.foundation_fluttify.android.util
import android.util.Pair
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
fun PairHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.util.Pair::getFirst" -> {
val pair: Pair<*, *> = rawArgs.__this__()
methodResult.success(pair.first)
}
"android.util.Pair::getSecond" -> {
val pair: Pair<*, *> = rawArgs.__this__()
methodResult.success(pair.second)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,75 @@
package me.yohom.foundation_fluttify.android.view
import android.view.SurfaceHolder
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.get
fun SurfaceHolderHandler(
messenger: BinaryMessenger?,
method: String,
rawArgs: Any,
methodResult: MethodChannel.Result
) {
when (method) {
"android.view.SurfaceHolder::addCallback" -> {
val __this__ = rawArgs["__this__"] as SurfaceHolder
__this__.addCallback(object : SurfaceHolder.Callback {
private val channel =
MethodChannel(messenger!!, "android.view.SurfaceHolder::addCallback::Callback")
override fun surfaceCreated(p0: SurfaceHolder) {
print("kotlin: onSurfaceCreated")
channel.invokeMethod(
"Callback::android.view.SurfaceHolder.Callback::surfaceCreated",
mapOf("var1" to p0)
)
}
override fun surfaceChanged(p0: SurfaceHolder, p1: Int, p2: Int, p3: Int) {
print("kotlin: surfaceChanged")
channel.invokeMethod(
"Callback::android.view.SurfaceHolder.Callback::surfaceChanged",
mapOf("var1" to p0, "var2" to p1, "var3" to p2, "var4" to p3)
)
}
override fun surfaceDestroyed(p0: SurfaceHolder) {
print("kotlin: surfaceDestroyed")
channel.invokeMethod(
"Callback::android.view.SurfaceHolder.Callback::surfaceDestroyed",
mapOf("var1" to p0)
)
}
// override fun surfaceCreated(p0: SurfaceHolder) {
// print("kotlin: onSurfaceCreated")
// channel.invokeMethod(
// "Callback::android.view.SurfaceHolder.Callback::surfaceCreated",
// mapOf("var1" to p0)
// )
// }
//
// override fun surfaceChanged(p0: SurfaceHolder, p1: Int, p2: Int, p3: Int) {
// print("kotlin: surfaceChanged")
// channel.invokeMethod(
// "Callback::android.view.SurfaceHolder.Callback::surfaceChanged",
// mapOf("var1" to p0, "var2" to p1, "var3" to p2, "var4" to p3)
// )
// }
//
// override fun surfaceDestroyed(p0: SurfaceHolder) {
// print("kotlin: surfaceDestroyed")
// channel.invokeMethod(
// "Callback::android.view.SurfaceHolder.Callback::surfaceDestroyed",
// mapOf("var1" to p0)
// )
// }
})
methodResult.success("success")
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,25 @@
package me.yohom.foundation_fluttify.android.view
import android.view.SurfaceView
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.get
fun SurfaceViewHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.view.SurfaceView::getHolder" -> {
val __this__ = rawArgs["__this__"] as SurfaceView
methodResult.success(__this__.holder)
}
"android.view.SurfaceView::setZOrderOnTop" -> {
val __this__ = rawArgs["__this__"] as SurfaceView
__this__.setZOrderOnTop(rawArgs["onTop"] as Boolean)
methodResult.success("success")
}
"android.view.SurfaceView::setZOrderMediaOverlay" -> {
val __this__ = rawArgs["__this__"] as SurfaceView
__this__.setZOrderMediaOverlay(rawArgs["isMediaOverlay"] as Boolean)
methodResult.success("success")
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,28 @@
package me.yohom.foundation_fluttify.android.view
import android.view.View
import android.view.ViewGroup
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
fun ViewGroupHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"android.view.ViewGroup::addView" -> {
val viewGroup: ViewGroup = rawArgs.__this__()
val child: View = rawArgs["child"] as View
viewGroup.addView(child)
methodResult.success("success")
}
"android.view.ViewGroup::removeAllViews" -> {
val viewGroup: ViewGroup = rawArgs.__this__()
viewGroup.removeAllViews()
methodResult.success("success")
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,9 @@
package me.yohom.foundation_fluttify.android.view
import io.flutter.plugin.common.MethodChannel
fun ViewHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,32 @@
package me.yohom.foundation_fluttify.android.widget
import android.app.Activity
import android.graphics.Bitmap
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.__this__
import me.yohom.foundation_fluttify.core.get
fun ImageViewHandler(
method: String,
rawArgs: Any,
methodResult: MethodChannel.Result,
context: Activity?
) {
when (method) {
"android.widget.ImageView::createWithBitmap" -> {
if (context == null) {
methodResult.error("activity cannot be null", "activity cannot be null", "activity cannot be null")
} else {
val bitmap = rawArgs["bitmap"] as Bitmap
val imageView = ImageView(context)
imageView.setImageBitmap(bitmap)
methodResult.success(imageView)
}
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,11 @@
@file:Suppress("ObjectPropertyName", "FunctionName")
package me.yohom.foundation_fluttify.core
fun <T> Any.__this__(): T {
return (this as Map<String, Any>)["__this__"] as T
}
operator fun Any.get(key: String): Any? {
return (this as Map<String, Any>)[key]
}

View File

@ -0,0 +1,181 @@
@file:Suppress("LocalVariableName", "FunctionName")
package me.yohom.foundation_fluttify.core
import android.app.Activity
import android.content.Intent
import android.util.Log
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.PluginRegistry
import me.yohom.foundation_fluttify.HEAP
import me.yohom.foundation_fluttify.STACK
import me.yohom.foundation_fluttify.enableLog
fun PlatformService(
method: String,
args: Map<String, Any>,
methodResult: MethodChannel.Result,
activityBinding: ActivityPluginBinding?,
pluginBinding: FlutterPlugin.FlutterPluginBinding?,
registrar: PluginRegistry.Registrar?
) {
when (method) {
"PlatformService::enableLog" -> {
enableLog = args["enable"] as Boolean
methodResult.success("success")
}
"PlatformService::release" -> {
if (enableLog) Log.d("PlatformService", "size: ${HEAP.size}, 释放对象: ${args["__this__"]}")
HEAP.remove(args["__this__"])
methodResult.success("success")
// print current HEAP
if (enableLog) Log.d("PlatformService", "size: ${HEAP.size}, HEAP: $HEAP")
}
"PlatformService::isNull" -> {
methodResult.success(args["__this__"] == null)
}
"PlatformService::release_batch" -> {
if (enableLog) Log.d("PlatformService", "size: ${HEAP.size}, 批量释放对象: __this_batch__: ${args["__this_batch__"]}")
(args["__this_batch__"] as List<*>).forEach { HEAP.remove(it) }
methodResult.success("success")
// print current HEAP
if (enableLog) Log.d("PlatformService", "size: ${HEAP.size}, HEAP: $HEAP")
}
"PlatformService::clearHeap" -> {
if (enableLog) Log.d("PlatformService", "size: ${HEAP.size}, CLEAR HEAP")
HEAP.clear()
methodResult.success("success")
// print current HEAP
if (enableLog) Log.d("PlatformService", "size: ${HEAP.size}, HEAP: $HEAP")
}
"PlatformService::pushStack" -> {
val name = args["name"] as String
val __this__ = args["__this__"] as Any
if (enableLog) Log.d("PlatformService", "PUSH OBJECT: $__this__")
STACK[name] = __this__
methodResult.success("success")
// print current STACK
if (enableLog) Log.d("PlatformService", "size: ${STACK.size}, STACK: $STACK")
}
"PlatformService::pushStackJsonable" -> {
val name = args["name"] as String
val data = args["data"]
if (enableLog) Log.d("PlatformService", "压入jsonable: ${data?.javaClass}@${data}")
STACK[name] = data!!
methodResult.success("success")
// 打印当前STACK
if (enableLog) Log.d("PlatformService", "size: ${STACK.size}, STACK: $STACK")
}
"PlatformService::clearStack" -> {
STACK.clear()
methodResult.success("success")
// print current STACK
if (enableLog) Log.d("PlatformService", "size: ${STACK.size}, STACK: $STACK")
}
"PlatformService::startActivity" -> {
val activity = activityBinding?.activity
if (activity != null) {
val activityClass = args["activityClass"] as String
val extras = args["extras"] as Map<String, Any>
val intent = Intent(activity, Class.forName(activityClass))
extras.forEach {
when (it.value) {
is String -> intent.putExtra(it.key, it.value as String)
is Int -> intent.putExtra(it.key, it.value as Int)
is Long -> intent.putExtra(it.key, it.value as Long)
is Double -> intent.putExtra(it.key, it.value as Double)
}
}
activity.startActivity(intent)
methodResult.success("success")
} else {
methodResult.error("当前Activity为null", "当前Activity为null", "当前Activity为null")
}
}
"PlatformService::startActivityForResult" -> {
val activity = activityBinding?.activity
if (activity != null) {
val activityClass = args["activityClass"] as String
val requestCode = args["requestCode"] as Int
val extras = args["extras"] as Map<String, Any>
val intent = Intent(activity, Class.forName(activityClass))
extras.forEach {
when (it.value) {
is String -> intent.putExtra(it.key, it.value as String)
is Int -> intent.putExtra(it.key, it.value as Int)
is Long -> intent.putExtra(it.key, it.value as Long)
is Double -> intent.putExtra(it.key, it.value as Double)
}
}
activity.startActivityForResult(intent, requestCode)
activityBinding.addActivityResultListener { reqCode, resultCode, data ->
if (reqCode == requestCode) {
if (resultCode == Activity.RESULT_OK) {
methodResult.success(data)
} else {
methodResult.error("获取Activity结果失败", "获取Activity结果失败", "获取Activity结果失败")
}
} else {
methodResult.error("非当前请求的响应", "非当前请求的响应", "非当前请求的响应")
}
true
}
methodResult.success("success")
} else {
methodResult.error("当前Activity为null", "当前Activity为null", "当前Activity为null")
}
}
"PlatformService::getAssetPath" -> {
val activity = activityBinding?.activity
val flutterAssetPath = args["flutterAssetPath"] as String
if (activity != null) {
val path = registrar?.lookupKeyForAsset(flutterAssetPath)
?: pluginBinding?.flutterAssets?.getAssetFilePathByName(flutterAssetPath)
methodResult.success(path)
} else {
methodResult.error("非当前请求的响应", "非当前请求的响应", "非当前请求的响应")
}
}
"PlatformService::viewId2RefId" -> {
val viewId = args["viewId"] as String
if (HEAP.containsKey(viewId)) {
methodResult.success(System.identityHashCode(HEAP[viewId]).toString())
// 转换后删除viewId
HEAP.remove(viewId)
} else {
methodResult.error("viewId无对应对象", "viewId无对应对象", "viewId无对应对象")
}
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,17 @@
package me.yohom.foundation_fluttify.java.io
import io.flutter.plugin.common.MethodChannel
import me.yohom.foundation_fluttify.core.get
import java.io.File
fun FileHandler(method: String, rawArgs: Any, methodResult: MethodChannel.Result) {
when (method) {
"java.io.File::create" -> {
val path = rawArgs["path"] as String
val file = File(path)
methodResult.success(file)
}
else -> methodResult.notImplemented()
}
}

View File

@ -0,0 +1,27 @@
package me.yohom.foundation_fluttify.platform_view
import android.content.Context
import android.opengl.GLSurfaceView
import android.view.View
import io.flutter.plugin.common.StandardMessageCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory
import me.yohom.foundation_fluttify.HEAP
@Suppress("ClassName")
class android_opengl_GLSurfaceViewFactory : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
override fun create(context: Context?, id: Int, params: Any?): PlatformView {
val view = GLSurfaceView(context)
// 同时存放viewId和refId的对象, 供后续viewId转refId使用
HEAP[(Int.MAX_VALUE - id).toString()] = view
HEAP["android.opengl.GLSurfaceView:${System.identityHashCode(view)}"] = view
return object : PlatformView {
override fun getView(): View {
return view
}
override fun dispose() {}
}
}
}

View File

@ -0,0 +1,61 @@
package me.yohom.foundation_fluttify.platform_view
import android.content.Context
import android.view.SurfaceHolder
import android.view.SurfaceView
import android.view.View
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.StandardMethodCodec
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory
import me.yohom.foundation_fluttify.HEAP
import me.yohom.foundation_fluttify.core.FluttifyMessageCodec
@Suppress("ClassName")
class android_view_SurfaceViewFactory(private val binaryMessenger: BinaryMessenger?)
: PlatformViewFactory(FluttifyMessageCodec()) {
override fun create(context: Context?, id: Int, params: Any?): PlatformView {
val view = SurfaceView(context)
view.holder.addCallback(object : SurfaceHolder.Callback {
private val channel = MethodChannel(
binaryMessenger!!,
"android.view.SurfaceHolder::addCallback::Callback",
StandardMethodCodec(FluttifyMessageCodec())
)
override fun surfaceCreated(holder: SurfaceHolder) {
channel.invokeMethod(
"Callback::android.view.SurfaceHolder.Callback::surfaceCreated",
mapOf("holder" to holder)
)
}
override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) {
channel.invokeMethod(
"Callback::android.view.SurfaceHolder.Callback::surfaceChanged",
mapOf("holder" to holder, "format" to format, "width" to width, "height" to height)
)
}
override fun surfaceDestroyed(holder: SurfaceHolder) {
channel.invokeMethod(
"Callback::android.view.SurfaceHolder.Callback::surfaceDestroyed",
mapOf("holder" to holder)
)
}
})
// 同时存放viewId和refId的对象, 供后续viewId转refId使用
HEAP[(Int.MAX_VALUE - id).toString()] = view
HEAP["android.view.SurfaceView:${System.identityHashCode(view)}"] = view
return object : PlatformView {
override fun getView(): View {
return view
}
override fun dispose() {}
}
}
}

View File

@ -0,0 +1,27 @@
package me.yohom.foundation_fluttify.platform_view
import android.content.Context
import android.view.View
import android.widget.FrameLayout
import io.flutter.plugin.platform.PlatformView
import io.flutter.plugin.platform.PlatformViewFactory
import me.yohom.foundation_fluttify.HEAP
import me.yohom.foundation_fluttify.core.FluttifyMessageCodec
@Suppress("ClassName")
class android_widget_FrameLayoutFactory : PlatformViewFactory(FluttifyMessageCodec()) {
override fun create(context: Context?, id: Int, params: Any?): PlatformView {
val view = FrameLayout(context!!)
// 同时存放viewId和refId的对象, 供后续viewId转refId使用
HEAP[(Int.MAX_VALUE - id).toString()] = view
HEAP["android.widget.FrameLayout:${System.identityHashCode(view)}"] = view
return object : PlatformView {
override fun getView(): View {
return view
}
override fun dispose() {}
}
}
}

43
example/.gitignore vendored Normal file
View File

@ -0,0 +1,43 @@
# 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
**/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

16
example/README.md Normal file
View File

@ -0,0 +1,16 @@
# foundation_fluttify_example
Demonstrates how to use the foundation_fluttify plugin.
## Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)
For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,2 @@
#Sun Nov 17 00:00:14 CST 2024
gradle.version=8.7

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,43 @@
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
android {
namespace = "me.yohom.foundation_fluttify_example"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "me.yohom.foundation_fluttify_example"
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source = "../.."
}

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.yohom.foundation_fluttify_example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -0,0 +1,35 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.yohom.foundation_fluttify_example">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="${applicationName}"
android:label="foundation_fluttify_example"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:exported="true"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- This keeps the window background of the activity showing
until Flutter renders its first frame. It can be removed if
there is no splash screen (such as the default splash screen
defined in @style/LaunchTheme). -->
<meta-data
android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"
android:value="true" />
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
<meta-data android:name="flutterEmbedding" android:value="2"/>
</manifest>

View File

@ -0,0 +1,24 @@
package io.flutter.plugins;
import androidx.annotation.Keep;
import androidx.annotation.NonNull;
import io.flutter.Log;
import io.flutter.embedding.engine.FlutterEngine;
/**
* Generated file. Do not edit.
* This file is generated by the Flutter tool based on the
* plugins that support the Android platform.
*/
@Keep
public final class GeneratedPluginRegistrant {
private static final String TAG = "GeneratedPluginRegistrant";
public static void registerWith(@NonNull FlutterEngine flutterEngine) {
try {
flutterEngine.getPlugins().add(new me.yohom.foundation_fluttify.FoundationFluttifyPlugin());
} catch (Exception e) {
Log.e(TAG, "Error registering plugin foundation_fluttify, me.yohom.foundation_fluttify.FoundationFluttifyPlugin", e);
}
}
}

View File

@ -0,0 +1,5 @@
package me.yohom.foundation_fluttify_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
</style>
</resources>

View File

@ -0,0 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.yohom.foundation_fluttify_example">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>

View File

@ -0,0 +1,18 @@
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register("clean", Delete) {
delete rootProject.buildDir
}

View File

@ -0,0 +1,5 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
android.useAndroidX=true
android.enableJetifier=true

Binary file not shown.

View File

@ -0,0 +1,6 @@
#Mon Nov 04 23:28:03 CST 2024
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

160
example/android/gradlew vendored Normal file
View File

@ -0,0 +1,160 @@
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
echo "$*"
}
die ( ) {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

90
example/android/gradlew.bat vendored Normal file
View File

@ -0,0 +1,90 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:init
@rem Get command-line arguments, handling Windowz variants
if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2
:win9xME_args_slurp
if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%*
goto execute
:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

View File

@ -0,0 +1,3 @@
sdk.dir=C:\\Users\\Administrator\\AppData\\Local\\Android\\sdk
flutter.sdk=D:\\futter\\flutter
flutter.buildMode=debug

View File

@ -0,0 +1,25 @@
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version '8.6.1' apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}
include ":app"

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>App</string>
<key>CFBundleIdentifier</key>
<string>io.flutter.flutter.app</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>App</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
</dict>
</plist>

View File

@ -0,0 +1,2 @@
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"

View File

@ -0,0 +1,14 @@
// This is a generated file; do not edit or check into version control.
FLUTTER_ROOT=D:\futter\flutter
FLUTTER_APPLICATION_PATH=D:\FlutterProjects\foundation_fluttify\example
COCOAPODS_PARALLEL_CODE_SIGN=true
FLUTTER_TARGET=lib\main.dart
FLUTTER_BUILD_DIR=build
FLUTTER_BUILD_NAME=1.0.0
FLUTTER_BUILD_NUMBER=1
EXCLUDED_ARCHS[sdk=iphonesimulator*]=i386
EXCLUDED_ARCHS[sdk=iphoneos*]=armv7
DART_OBFUSCATION=false
TRACK_WIDGET_CREATION=true
TREE_SHAKE_ICONS=false
PACKAGE_CONFIG=.dart_tool/package_config.json

View File

@ -0,0 +1,2 @@
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"

View File

@ -0,0 +1,13 @@
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=D:\futter\flutter"
export "FLUTTER_APPLICATION_PATH=D:\FlutterProjects\foundation_fluttify\example"
export "COCOAPODS_PARALLEL_CODE_SIGN=true"
export "FLUTTER_TARGET=lib\main.dart"
export "FLUTTER_BUILD_DIR=build"
export "FLUTTER_BUILD_NAME=1.0.0"
export "FLUTTER_BUILD_NUMBER=1"
export "DART_OBFUSCATION=false"
export "TRACK_WIDGET_CREATION=true"
export "TREE_SHAKE_ICONS=false"
export "PACKAGE_CONFIG=.dart_tool/package_config.json"

38
example/ios/Podfile Normal file
View File

@ -0,0 +1,38 @@
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
project 'Runner', {
'Debug' => :debug,
'Profile' => :release,
'Release' => :release,
}
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
end
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_ios_podfile_setup
target 'Runner' do
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end

22
example/ios/Podfile.lock Normal file
View File

@ -0,0 +1,22 @@
PODS:
- Flutter (1.0.0)
- foundation_fluttify (0.0.1):
- Flutter
DEPENDENCIES:
- Flutter (from `Flutter`)
- foundation_fluttify (from `.symlinks/plugins/foundation_fluttify/ios`)
EXTERNAL SOURCES:
Flutter:
:path: Flutter
foundation_fluttify:
:path: ".symlinks/plugins/foundation_fluttify/ios"
SPEC CHECKSUMS:
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
foundation_fluttify: 0c45145e3fad1fb99188e4979daed5b24cd9b278
PODFILE CHECKSUM: b1f7a399522c118a74b177b13c01eca692aa7e6d
COCOAPODS: 1.11.3

View File

@ -0,0 +1,548 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
83F82D8B4BC87070FC6F6086 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 04A2AE97B31701B40C7E2282 /* libPods-Runner.a */; };
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
/* End PBXBuildFile section */
/* Begin PBXCopyFilesBuildPhase section */
9705A1C41CF9048500538489 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
04A2AE97B31701B40C7E2282 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
82B765490BCE9380D3436B41 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E4E500B2ACB8A3E22A041874 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
FB55EDC5E0BAFFD80DB75218 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
97C146EB1CF9000F007C117D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
83F82D8B4BC87070FC6F6086 /* libPods-Runner.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
8AAC1AA9A447384D56FB12A0 /* Frameworks */ = {
isa = PBXGroup;
children = (
04A2AE97B31701B40C7E2282 /* libPods-Runner.a */,
);
name = Frameworks;
sourceTree = "<group>";
};
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
9740EEB31CF90195004384FC /* Generated.xcconfig */,
);
name = Flutter;
sourceTree = "<group>";
};
97C146E51CF9000F007C117D = {
isa = PBXGroup;
children = (
9740EEB11CF90186004384FC /* Flutter */,
97C146F01CF9000F007C117D /* Runner */,
97C146EF1CF9000F007C117D /* Products */,
D0DD03BDC642C8B12B3EBAC4 /* Pods */,
8AAC1AA9A447384D56FB12A0 /* Frameworks */,
);
sourceTree = "<group>";
};
97C146EF1CF9000F007C117D /* Products */ = {
isa = PBXGroup;
children = (
97C146EE1CF9000F007C117D /* Runner.app */,
);
name = Products;
sourceTree = "<group>";
};
97C146F01CF9000F007C117D /* Runner */ = {
isa = PBXGroup;
children = (
7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
97C146F11CF9000F007C117D /* Supporting Files */,
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
);
path = Runner;
sourceTree = "<group>";
};
97C146F11CF9000F007C117D /* Supporting Files */ = {
isa = PBXGroup;
children = (
97C146F21CF9000F007C117D /* main.m */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
D0DD03BDC642C8B12B3EBAC4 /* Pods */ = {
isa = PBXGroup;
children = (
82B765490BCE9380D3436B41 /* Pods-Runner.debug.xcconfig */,
E4E500B2ACB8A3E22A041874 /* Pods-Runner.release.xcconfig */,
FB55EDC5E0BAFFD80DB75218 /* Pods-Runner.profile.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
97C146ED1CF9000F007C117D /* Runner */ = {
isa = PBXNativeTarget;
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
buildPhases = (
497EC7AEF0CDF08A93D3B46C /* [CP] Check Pods Manifest.lock */,
9740EEB61CF901F6004384FC /* Run Script */,
97C146EA1CF9000F007C117D /* Sources */,
97C146EB1CF9000F007C117D /* Frameworks */,
97C146EC1CF9000F007C117D /* Resources */,
9705A1C41CF9048500538489 /* Embed Frameworks */,
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
);
buildRules = (
);
dependencies = (
);
name = Runner;
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "The Chromium Authors";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
CreatedOnToolsVersion = 7.3.1;
DevelopmentTeam = X5P24RK5QW;
};
};
};
buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
97C146ED1CF9000F007C117D /* Runner */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
97C146EC1CF9000F007C117D /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Thin Binary";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
};
497EC7AEF0CDF08A93D3B46C /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
9740EEB61CF901F6004384FC /* Run Script */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "Run Script";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
97C146EA1CF9000F007C117D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
97C146F31CF9000F007C117D /* main.m in Sources */,
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
97C146FA1CF9000F007C117D /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C146FB1CF9000F007C117D /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
97C147001CF9000F007C117D /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
249021D3217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Profile;
};
249021D4217E4FDB00AE95B9 /* Profile */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = X5P24RK5QW;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = me.yohom.foundationFluttifyExample;
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
};
name = Profile;
};
97C147031CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
97C147041CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
97C147061CF9000F007C117D /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = X5P24RK5QW;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = me.yohom.foundationFluttifyExample;
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
};
name = Debug;
};
97C147071CF9000F007C117D /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = X5P24RK5QW;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
INFOPLIST_FILE = Runner/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = me.yohom.foundationFluttifyExample;
PRODUCT_NAME = "$(TARGET_NAME)";
VERSIONING_SYSTEM = "apple-generic";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147031CF9000F007C117D /* Debug */,
97C147041CF9000F007C117D /* Release */,
249021D3217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
isa = XCConfigurationList;
buildConfigurations = (
97C147061CF9000F007C117D /* Debug */,
97C147071CF9000F007C117D /* Release */,
249021D4217E4FDB00AE95B9 /* Profile */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Profile"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "97C146ED1CF9000F007C117D"
BuildableName = "Runner.app"
BlueprintName = "Runner"
ReferencedContainer = "container:Runner.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Runner.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>

View File

@ -0,0 +1,6 @@
#import <Flutter/Flutter.h>
#import <UIKit/UIKit.h>
@interface AppDelegate : FlutterAppDelegate
@end

View File

@ -0,0 +1,13 @@
#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[GeneratedPluginRegistrant registerWithRegistry:self];
// Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
@end

View File

@ -0,0 +1,122 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-App-20x20@3x.png",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "Icon-App-29x29@3x.png",
"scale" : "3x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "iphone",
"filename" : "Icon-App-40x40@3x.png",
"scale" : "3x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@2x.png",
"scale" : "2x"
},
{
"size" : "60x60",
"idiom" : "iphone",
"filename" : "Icon-App-60x60@3x.png",
"scale" : "3x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@1x.png",
"scale" : "1x"
},
{
"size" : "20x20",
"idiom" : "ipad",
"filename" : "Icon-App-20x20@2x.png",
"scale" : "2x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@1x.png",
"scale" : "1x"
},
{
"size" : "29x29",
"idiom" : "ipad",
"filename" : "Icon-App-29x29@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@1x.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "Icon-App-40x40@2x.png",
"scale" : "2x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@1x.png",
"scale" : "1x"
},
{
"size" : "76x76",
"idiom" : "ipad",
"filename" : "Icon-App-76x76@2x.png",
"scale" : "2x"
},
{
"size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-App-83.5x83.5@2x.png",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "Icon-App-1024x1024@1x.png",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Some files were not shown because too many files have changed in this diff Show More