Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 55eb5f8

Browse files
committed
Feat: add custom TNSCrashlyticsLogger framework
#1134
1 parent ba6c96b commit 55eb5f8

12 files changed

Lines changed: 466 additions & 3 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// In this header, you should import all the public headers of your framework
2+
#import "TNSCrashlyticsLoggerWrapper.h"
3+
4+
//! Project version number for TNSCrashlyticsLogger.
5+
FOUNDATION_EXPORT double TNSCrashlyticsLoggerVersionNumber;
6+
7+
//! Project version string for TNSCrashlyticsLogger.
8+
FOUNDATION_EXPORT const unsigned char TNSCrashlyticsLoggerVersionString[];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#import <UIKit/UIKit.h>
2+
3+
@interface TNSCrashlyticsLoggerWrapper : NSObject
4+
5+
+ (void)log:(NSString*)string;
6+
7+
@end
772 Bytes
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework module TNSCrashlyticsLogger {
2+
umbrella header "TNSCrashlyticsLogger.h"
3+
4+
export *
5+
module * { export * }
6+
}
Binary file not shown.

src/platforms/ios_lib/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
Custom TNSMLKitCamera framework for iOS.
1+
Custom frameworks for iOS.
22

3-
Using this wrapper because of buffer issues. Sad.
3+
TNSMLKitCamera: Using this wrapper because of buffer issues. Sad.
44

5-
### Building the framework
5+
TNSCrashlyticsLogger: Using this wrapper because CLS_LOG macro is not accessible from nativescript.
6+
7+
### Building TNSMLKitCamera framework
68
- Run the target for simulator and device (disconnect the device to be sure), make sure to not only build for the active architecture.
79
- Right-click the file in the Products folder and open in Finder.
810
- In a Terminal `cd` to that folder, move up to the `Products` folder.
911
- Run `lipo -create -output "TNSMLKitCamera" "Debug-iphonesimulator/TNSMLKitCamera.framework/TNSMLKitCamera" "Debug-iphoneos/TNSMLKitCamera.framework/TNSMLKitCamera"`.
1012
- Use the resulting `TNSMLKitCamera` file instead of the one generated inside any of the targets.
1113

14+
### Building TNSCrashlyticsLogger framework
15+
- Run `pod install`
16+
- Run the target for simulator and device (disconnect the device to be sure), make sure to not only build for the active architecture.
17+
- Right-click the file in the Products folder and open in Finder.
18+
- In a Terminal `cd` to that folder, move up to the `Products` folder.
19+
- Run `lipo -create -output "TNSCrashlyticsLogger" "Debug-iphonesimulator/TNSCrashlyticsLogger.framework/TNSCrashlyticsLogger" "Debug-iphoneos/TNSCrashlyticsLogger.framework/TNSCrashlyticsLogger"`.
20+
- Use the resulting `TNSCrashlyticsLogger` file instead of the one generated inside any of the targets.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Uncomment the next line to define a global platform for your project
2+
# platform :ios, '9.0'
3+
4+
target 'TNSCrashlyticsLogger' do
5+
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
6+
use_frameworks!
7+
8+
# Pods for TNSCrashlyticsLogger
9+
pod 'Crashlytics'
10+
11+
end

0 commit comments

Comments
 (0)