Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weihan-plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wei Han
weihan-plugin
Commits
de578d80
Commit
de578d80
authored
Sep 30, 2025
by
Wei Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working code
parent
885ee38a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
12 additions
and
111 deletions
+12
-111
QmsPlugin.podspec
QmsPlugin.podspec
+0
-0
QmsPluginReact.mm
ios/QmsPlugin/QmsPluginReact.mm
+12
-19
QmsPluginFramework.h
...QmsPluginFramework.framework/Headers/QmsPluginFramework.h
+0
-18
module.modulemap
...m64/QmsPluginFramework.framework/Modules/module.modulemap
+0
-6
QmsPluginFramework
...ios-arm64/QmsPluginFramework.framework/QmsPluginFramework
+0
-0
CodeResources
...QmsPluginFramework.framework/_CodeSignature/CodeResources
+0
-22
QmsPluginFramework.h
...QmsPluginFramework.framework/Headers/QmsPluginFramework.h
+0
-18
module.modulemap
...tor/QmsPluginFramework.framework/Modules/module.modulemap
+0
-6
QmsPluginFramework
...simulator/QmsPluginFramework.framework/QmsPluginFramework
+0
-0
CodeResources
...QmsPluginFramework.framework/_CodeSignature/CodeResources
+0
-22
No files found.
QmsPlugin.podspec
View file @
de578d80
ios/QmsPlugin/QmsPluginReact.mm
View file @
de578d80
#import <React/RCTBridgeModule.h>
#import <React/RCTBridge+Private.h>
#import <ReactCommon/RCTTurboModule.h>
#import <QmsPluginSpec/QmsPluginSpec.h>
#import <QmsPluginFramework/QmsPlugin.h>
#import "QmsPluginSpec.h"
@interface QmsPlugin
React
: NSObject <NativeQmsPluginSpec>
@interface QmsPlugin : NSObject <NativeQmsPluginSpec>
@end
@implementation QmsPlugin
React
@implementation QmsPlugin
RCT_EXPORT_MODULE(QmsPlugin);
+ (BOOL)requiresMainQueueSetup {
NSLog(@"[QmsPlugin] QmsPluginReact loaded ✅");
return YES;
}
// RCT_EXPORT_METHOD(multiplyAsync:(double)a b:(double)b resolver:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
// {
// NSNumber *r = QmsPluginMultiply(a, b);
// resolve(r);
// }
RCT_EXPORT_MODULE()
// Implement multiply using the xcframework
- (NSNumber *)multiply:(double)a b:(double)b {
NSLog(@"[QmsPlugin] multiply called with a=%f b=%f", a, b);
return QmsPluginMultiply(a, b);
NSLog(@"[QmsPlugin] multiply called with a=%f, b=%f", a, b);
NSNumber *result = QmsPluginMultiply(a, b);
NSLog(@"[QmsPlugin] multiply result = %@", result);
return result;
}
// TurboModule boilerplate
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params
{
NSLog(@"[QmsPlugin] getTurboModule called");
return std::make_shared<facebook::react::NativeQmsPluginSpecJSI>(params);
}
@end
ios/QmsPluginFramework.xcframework/ios-arm64/QmsPluginFramework.framework/Headers/QmsPluginFramework.h
deleted
100644 → 0
View file @
885ee38a
//
// QmsPluginFramework.h
// QmsPluginFramework
//
// Created by Wei Han Ng on 26/09/2025.
//
#import <Foundation/Foundation.h>
//! Project version number for QmsPluginFramework.
FOUNDATION_EXPORT
double
QmsPluginFrameworkVersionNumber
;
//! Project version string for QmsPluginFramework.
FOUNDATION_EXPORT
const
unsigned
char
QmsPluginFrameworkVersionString
[];
// In this header, you should import all the public headers of your framework using statements like #import <QmsPluginFramework/PublicHeader.h>
#import<QmsPluginFramework/QmsPlugin.h>
ios/QmsPluginFramework.xcframework/ios-arm64/QmsPluginFramework.framework/Modules/module.modulemap
deleted
100644 → 0
View file @
885ee38a
framework module QmsPluginFramework {
umbrella header "QmsPluginFramework.h"
export *
module * { export * }
}
ios/QmsPluginFramework.xcframework/ios-arm64/QmsPluginFramework.framework/QmsPluginFramework
View file @
de578d80
No preview for this file type
ios/QmsPluginFramework.xcframework/ios-arm64/QmsPluginFramework.framework/_CodeSignature/CodeResources
View file @
de578d80
...
...
@@ -8,18 +8,10 @@
<data>
T0w73SfaKmay5cfzE/KHplzhWis=
</data>
<key>
Headers/QmsPluginFramework.h
</key>
<data>
Ac2nFon9nyl4ocnIjmBCQRCrHPo=
</data>
<key>
Info.plist
</key>
<data>
QvWHhX2X4hW9mXAFtK1rMMulanM=
</data>
<key>
Modules/module.modulemap
</key>
<data>
BD9YnWBkeFmDcuOl4cAjALd/7yw=
</data>
</dict>
<key>
files2
</key>
<dict>
...
...
@@ -30,20 +22,6 @@
U05V7l0WqfmXhNjNLDaPBAUgwRfBgPpUE5n7pvQshgg=
</data>
</dict>
<key>
Headers/QmsPluginFramework.h
</key>
<dict>
<key>
hash2
</key>
<data>
QS0NoHGZP72x4rQ9X9dKwp+s41xEUsBy01aUhw7JxAo=
</data>
</dict>
<key>
Modules/module.modulemap
</key>
<dict>
<key>
hash2
</key>
<data>
e+P6RtiuicqWfZ3H2B43r960DPkFwUWqXKWU+w7OVD0=
</data>
</dict>
</dict>
<key>
rules
</key>
<dict>
...
...
ios/QmsPluginFramework.xcframework/ios-arm64_x86_64-simulator/QmsPluginFramework.framework/Headers/QmsPluginFramework.h
deleted
100644 → 0
View file @
885ee38a
//
// QmsPluginFramework.h
// QmsPluginFramework
//
// Created by Wei Han Ng on 26/09/2025.
//
#import <Foundation/Foundation.h>
//! Project version number for QmsPluginFramework.
FOUNDATION_EXPORT
double
QmsPluginFrameworkVersionNumber
;
//! Project version string for QmsPluginFramework.
FOUNDATION_EXPORT
const
unsigned
char
QmsPluginFrameworkVersionString
[];
// In this header, you should import all the public headers of your framework using statements like #import <QmsPluginFramework/PublicHeader.h>
#import<QmsPluginFramework/QmsPlugin.h>
ios/QmsPluginFramework.xcframework/ios-arm64_x86_64-simulator/QmsPluginFramework.framework/Modules/module.modulemap
deleted
100644 → 0
View file @
885ee38a
framework module QmsPluginFramework {
umbrella header "QmsPluginFramework.h"
export *
module * { export * }
}
ios/QmsPluginFramework.xcframework/ios-arm64_x86_64-simulator/QmsPluginFramework.framework/QmsPluginFramework
View file @
de578d80
No preview for this file type
ios/QmsPluginFramework.xcframework/ios-arm64_x86_64-simulator/QmsPluginFramework.framework/_CodeSignature/CodeResources
View file @
de578d80
...
...
@@ -8,18 +8,10 @@
<data>
T0w73SfaKmay5cfzE/KHplzhWis=
</data>
<key>
Headers/QmsPluginFramework.h
</key>
<data>
Ac2nFon9nyl4ocnIjmBCQRCrHPo=
</data>
<key>
Info.plist
</key>
<data>
mHHohDKLbelgffJEne6sKFR+cnQ=
</data>
<key>
Modules/module.modulemap
</key>
<data>
BD9YnWBkeFmDcuOl4cAjALd/7yw=
</data>
</dict>
<key>
files2
</key>
<dict>
...
...
@@ -30,20 +22,6 @@
U05V7l0WqfmXhNjNLDaPBAUgwRfBgPpUE5n7pvQshgg=
</data>
</dict>
<key>
Headers/QmsPluginFramework.h
</key>
<dict>
<key>
hash2
</key>
<data>
QS0NoHGZP72x4rQ9X9dKwp+s41xEUsBy01aUhw7JxAo=
</data>
</dict>
<key>
Modules/module.modulemap
</key>
<dict>
<key>
hash2
</key>
<data>
e+P6RtiuicqWfZ3H2B43r960DPkFwUWqXKWU+w7OVD0=
</data>
</dict>
</dict>
<key>
rules
</key>
<dict>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment