3.1.0+1
This commit is contained in:
4
ios/Classes/IsarFlutterLibsPlugin.h
Normal file
4
ios/Classes/IsarFlutterLibsPlugin.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#import <Flutter/Flutter.h>
|
||||
|
||||
@interface IsarFlutterLibsPlugin : NSObject<FlutterPlugin>
|
||||
@end
|
||||
15
ios/Classes/IsarFlutterLibsPlugin.m
Normal file
15
ios/Classes/IsarFlutterLibsPlugin.m
Normal file
@@ -0,0 +1,15 @@
|
||||
#import "IsarFlutterLibsPlugin.h"
|
||||
#if __has_include(<isar_flutter_libs/isar_flutter_libs-Swift.h>)
|
||||
#import <isar_flutter_libs/isar_flutter_libs-Swift.h>
|
||||
#else
|
||||
// Support project import fallback if the generated compatibility header
|
||||
// is not copied when this plugin is created as a library.
|
||||
// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816
|
||||
#import "isar_flutter_libs-Swift.h"
|
||||
#endif
|
||||
|
||||
@implementation IsarFlutterLibsPlugin
|
||||
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
|
||||
[SwiftIsarFlutterLibsPlugin registerWithRegistrar:registrar];
|
||||
}
|
||||
@end
|
||||
16
ios/Classes/SwiftIsarFlutterLibsPlugin.swift
Normal file
16
ios/Classes/SwiftIsarFlutterLibsPlugin.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
import Flutter
|
||||
import UIKit
|
||||
|
||||
public class SwiftIsarFlutterLibsPlugin: NSObject, FlutterPlugin {
|
||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
||||
}
|
||||
|
||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
result(nil)
|
||||
}
|
||||
|
||||
public func dummyMethodToEnforceBundling() {
|
||||
// dummy calls to prevent tree shaking
|
||||
isar_get_error(0)
|
||||
}
|
||||
}
|
||||
6
ios/Classes/binding.h
Normal file
6
ios/Classes/binding.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char* isar_get_error(uint32_t err);
|
||||
40
ios/isar.xcframework/Info.plist
Normal file
40
ios/isar.xcframework/Info.plist
Normal file
@@ -0,0 +1,40 @@
|
||||
<?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>AvailableLibraries</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>libisar.a</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>LibraryIdentifier</key>
|
||||
<string>ios-arm64_x86_64-simulator</string>
|
||||
<key>LibraryPath</key>
|
||||
<string>libisar.a</string>
|
||||
<key>SupportedArchitectures</key>
|
||||
<array>
|
||||
<string>arm64</string>
|
||||
<string>x86_64</string>
|
||||
</array>
|
||||
<key>SupportedPlatform</key>
|
||||
<string>ios</string>
|
||||
<key>SupportedPlatformVariant</key>
|
||||
<string>simulator</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>XFWK</string>
|
||||
<key>XCFrameworkFormatVersion</key>
|
||||
<string>1.0</string>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
ios/isar.xcframework/ios-arm64/libisar.a
Normal file
BIN
ios/isar.xcframework/ios-arm64/libisar.a
Normal file
Binary file not shown.
BIN
ios/isar.xcframework/ios-arm64_x86_64-simulator/libisar.a
Normal file
BIN
ios/isar.xcframework/ios-arm64_x86_64-simulator/libisar.a
Normal file
Binary file not shown.
17
ios/isar_flutter_libs.podspec
Normal file
17
ios/isar_flutter_libs.podspec
Normal file
@@ -0,0 +1,17 @@
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'isar_flutter_libs'
|
||||
s.version = '1.0.0'
|
||||
s.summary = 'Flutter binaries for the Isar Database. Needs to be included for Flutter apps.'
|
||||
s.homepage = 'https://isar.dev'
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'Isar' => 'hello@isar.dev' }
|
||||
|
||||
s.source = { :path => '.' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.public_header_files = 'Classes/**/*.h'
|
||||
|
||||
s.dependency 'Flutter'
|
||||
s.platform = :ios, '11.0'
|
||||
s.swift_version = '5.3'
|
||||
s.vendored_frameworks = 'isar.xcframework'
|
||||
end
|
||||
Reference in New Issue
Block a user