adding packages

This commit is contained in:
2026-01-15 14:38:46 -08:00
parent ef86e3ab6a
commit 6869cf47e5
5253 changed files with 726695 additions and 34 deletions
+31
View File
@@ -0,0 +1,31 @@
.idea/
.vagrant/
.sconsign.dblite
.svn/
.DS_Store
*.swp
profile
DerivedData/
build/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
!default.pbxuser
!default.mode1v3
!default.mode2v3
!default.perspectivev3
xcuserdata
*.moved-aside
*.pyc
*sync/
Icon?
.tags*
View File
+4
View File
@@ -0,0 +1,4 @@
#import <Flutter/Flutter.h>
@interface GetVersionPlugin : NSObject<FlutterPlugin>
@end
+8
View File
@@ -0,0 +1,8 @@
#import "GetVersionPlugin.h"
#import <get_version/get_version-Swift.h>
@implementation GetVersionPlugin
+ (void)registerWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar {
[SwiftGetVersionPlugin registerWithRegistrar:registrar];
}
@end
@@ -0,0 +1,30 @@
import Flutter
import UIKit
public class SwiftGetVersionPlugin: NSObject, FlutterPlugin {
public static func register(with registrar: FlutterPluginRegistrar) {
let channel = FlutterMethodChannel(name: "get_version", binaryMessenger: registrar.messenger())
let instance = SwiftGetVersionPlugin()
registrar.addMethodCallDelegate(instance, channel: channel)
}
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
switch (call.method) {
case "getPlatformVersion":
result("iOS " + UIDevice.current.systemVersion);
default:
result(FlutterMethodNotImplemented)
}
}
}
extension Bundle {
var releaseVersionNumber: String? {
return infoDictionary?["CFBundleShortVersionString"] as? String
}
var buildVersionNumber: String? {
return infoDictionary?["CFBundleVersion"] as? String
}
}
+21
View File
@@ -0,0 +1,21 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'get_version'
s.version = '0.0.1'
s.summary = 'Get the Version Name and Version Code on iOS and Android.'
s.description = <<-DESC
Get the Version Name and Version Code on iOS and Android.
DESC
s.homepage = 'http://example.com'
s.license = { :file => '../LICENSE' }
s.author = { 'Your Company' => 'email@example.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.ios.deployment_target = '8.0'
end