feat: initial Cutdex application
Add the Flutter video editing application with project management, media import, timeline editing, preview, AI assistance, diagnostics and settings. Include shared UI and native host packages, platform runners, application tests and release tooling. Provide usage and contribution guides, the MIT license and third-party notices. Exclude local credentials, build outputs and validation data.
This commit is contained in:
commit
27e77fff39
718 files changed
+183958
No files matched your search
@@ -0,0 +1,38 @@
|
||||
.idea/
|
||||
.vagrant/
|
||||
.sconsign.dblite
|
||||
.svn/
|
||||
|
||||
.DS_Store
|
||||
*.swp
|
||||
profile
|
||||
|
||||
DerivedData/
|
||||
build/
|
||||
GeneratedPluginRegistrant.h
|
||||
GeneratedPluginRegistrant.m
|
||||
|
||||
.generated/
|
||||
|
||||
*.pbxuser
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.perspectivev3
|
||||
|
||||
!default.pbxuser
|
||||
!default.mode1v3
|
||||
!default.mode2v3
|
||||
!default.perspectivev3
|
||||
|
||||
xcuserdata
|
||||
|
||||
*.moved-aside
|
||||
|
||||
*.pyc
|
||||
*sync/
|
||||
Icon?
|
||||
.tags*
|
||||
|
||||
/Flutter/Generated.xcconfig
|
||||
/Flutter/ephemeral/
|
||||
/Flutter/flutter_export_environment.sh
|
||||
@@ -0,0 +1,15 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'cutdex_native'
|
||||
s.version = '0.1.0'
|
||||
s.summary = 'Cutdex native device information.'
|
||||
s.description = 'Native device facts for application layout policy.'
|
||||
s.homepage = 'https://github.com/lingjhf/cutdex'
|
||||
s.license = { :type => 'MIT', :file => '../../../LICENSE' }
|
||||
s.authors = 'Cutdex contributors'
|
||||
s.source = { :path => '.' }
|
||||
s.source_files = 'cutdex_native/Sources/cutdex_native/**/*.swift'
|
||||
s.dependency 'Flutter'
|
||||
s.platform = :ios, '15.0'
|
||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
|
||||
s.swift_version = '5.0'
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
// swift-tools-version: 5.9
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "cutdex_native",
|
||||
platforms: [.iOS("15.0")],
|
||||
products: [.library(name: "cutdex-native", targets: ["cutdex_native"])],
|
||||
dependencies: [.package(name: "FlutterFramework", path: "../FlutterFramework")],
|
||||
targets: [
|
||||
.target(
|
||||
name: "cutdex_native",
|
||||
dependencies: [.product(name: "FlutterFramework", package: "FlutterFramework")]
|
||||
)
|
||||
]
|
||||
)
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
import Flutter
|
||||
import UIKit
|
||||
|
||||
public class CutdexNativePlugin: NSObject, FlutterPlugin {
|
||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let channel = FlutterMethodChannel(
|
||||
name: "cutdex_native/device_info",
|
||||
binaryMessenger: registrar.messenger()
|
||||
)
|
||||
registrar.addMethodCallDelegate(CutdexNativePlugin(), channel: channel)
|
||||
}
|
||||
|
||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
if call.method == "getApplicationInfo" {
|
||||
result(["appVersion": Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "unknown",
|
||||
"appBuild": Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String ?? "unknown"])
|
||||
return
|
||||
}
|
||||
guard call.method == "getDeviceInfo" else {
|
||||
result(FlutterMethodNotImplemented)
|
||||
return
|
||||
}
|
||||
let idiom: String
|
||||
switch UIDevice.current.userInterfaceIdiom {
|
||||
case .pad: idiom = "pad"
|
||||
case .mac: idiom = "mac"
|
||||
default: idiom = "phone"
|
||||
}
|
||||
result(["interfaceIdiom": idiom])
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user