Skip to content

Commit

Permalink
feat: init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
siva-optim committed Feb 27, 2024
1 parent 0a4de51 commit 84b2e16
Show file tree
Hide file tree
Showing 15 changed files with 13,541 additions and 1 deletion.
2 changes: 2 additions & 0 deletions example/ios/.xcode.env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export NODE_BINARY=/usr/local/bin/node

43 changes: 43 additions & 0 deletions ios/XCObjc.xcframework/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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>BinaryPath</key>
<string>XCObjc.framework/XCObjc</string>
<key>LibraryIdentifier</key>
<string>ios-arm64-simulator</string>
<key>LibraryPath</key>
<string>XCObjc.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>XCObjc.framework/XCObjc</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>XCObjc.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Addition.h
// XCObjc
//
// Created by Designer326 on 27/02/24.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Addition : NSObject
- (int)add;
- (int)sub;
@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// XCObjc.h
// XCObjc
//
// Created by Designer326 on 27/02/24.
//

#import <Foundation/Foundation.h>

//! Project version number for XCObjc.
FOUNDATION_EXPORT double XCObjcVersionNumber;

//! Project version string for XCObjc.
FOUNDATION_EXPORT const unsigned char XCObjcVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <XCObjc/PublicHeader.h>

#import <XCObjc/Addition.h>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module XCObjc {
umbrella header "XCObjc.h"
export *

module * { export * }
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?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>files</key>
<dict>
<key>Headers/Addition.h</key>
<data>
vgpRwqnlxMRUIVKLChF8O5Cgn/Y=
</data>
<key>Headers/XCObjc.h</key>
<data>
aQgBxl1ZZ9Z/kY8jy4G1zSqJ2Ks=
</data>
<key>Info.plist</key>
<data>
KUkvNt2EJlpbFeOmqi5/ApVjxjA=
</data>
<key>Modules/module.modulemap</key>
<data>
11vGT45xkjtMaeoRRC1k2X5tEkg=
</data>
</dict>
<key>files2</key>
<dict>
<key>Headers/Addition.h</key>
<dict>
<key>hash2</key>
<data>
jA+YtbQKL219lauSGphloHoknKLE6dLs3sn1SV0aEnU=
</data>
</dict>
<key>Headers/XCObjc.h</key>
<dict>
<key>hash2</key>
<data>
gvJFBJXEsgZ2Rmv4etzfyN/r/nfMVwpx3HzFtIaJClc=
</data>
</dict>
<key>Modules/module.modulemap</key>
<dict>
<key>hash2</key>
<data>
jkIFeZ/7W+eBid1aJMwTcjT81ANY1EKf53uB8bDdI/0=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// Addition.h
// XCObjc
//
// Created by Designer326 on 27/02/24.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Addition : NSObject
- (int)add;
- (int)sub;
@end

NS_ASSUME_NONNULL_END
18 changes: 18 additions & 0 deletions ios/XCObjc.xcframework/ios-arm64/XCObjc.framework/Headers/XCObjc.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// XCObjc.h
// XCObjc
//
// Created by Designer326 on 27/02/24.
//

#import <Foundation/Foundation.h>

//! Project version number for XCObjc.
FOUNDATION_EXPORT double XCObjcVersionNumber;

//! Project version string for XCObjc.
FOUNDATION_EXPORT const unsigned char XCObjcVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <XCObjc/PublicHeader.h>

#import <XCObjc/Addition.h>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module XCObjc {
umbrella header "XCObjc.h"
export *

module * { export * }
}
Binary file not shown.
3 changes: 2 additions & 1 deletion react-native-samplelib.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ Pod::Spec.new do |s|

s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => "https://github.com/siva-optim/samplelib.git", :tag => "#{s.version}" }

s.
s.source_files = "ios/**/*.{h,m,mm}"

s.vendored_frameworks = "ios/XCObjc.xcframework"
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
if respond_to?(:install_modules_dependencies, true)
Expand Down
Loading

0 comments on commit 84b2e16

Please sign in to comment.