Skip to content

Commit

Permalink
chore(release): pulling release/1.18.0 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Pallab Maiti authored Aug 8, 2023
2 parents 36f5f1d + cb32f2a commit 211f70d
Show file tree
Hide file tree
Showing 64 changed files with 3,346 additions and 611 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-and-quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ jobs:
- name: Install xcpretty
run: gem install xcpretty

- name: Install Cocoapods
run: gem install cocoapods

- name: Pod install
run: pod install --repo-update

- name: Build SDK(iOS)
run: |
xcodebuild build -scheme RudderSDK-iOS -workspace Rudder.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 13' | xcpretty
xcodebuild build -scheme Rudder_iOS -workspace Rudder.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty
- name: Build SDK(watchOS)
run: |
xcodebuild build -scheme RudderSDK-iOS -workspace Rudder.xcworkspace -destination 'platform=watchOS Simulator,name=Apple Watch Series 7 - 45mm' | xcpretty
xcodebuild build -scheme Rudder_watchOS -workspace Rudder.xcworkspace -destination 'platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)' | xcpretty
- name: Build SDK(tvOS)
run: |
xcodebuild build -scheme RudderSDK-iOS -workspace Rudder.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty
- name: Install Cocoapods
run: gem install cocoapods
xcodebuild build -scheme Rudder_tvOS -workspace Rudder.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty
- name: Execute pod lint
run: pod lib lint --no-clean --allow-warnings
25 changes: 18 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,31 @@ jobs:
- name: Install xcpretty
run: gem install xcpretty

- name: Install Cocoapods
run: gem install cocoapods

- name: Pod install
run: pod install --repo-update

- name: Run build-wrapper
run: |
build-wrapper-macosx-x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} xcodebuild -workspace Rudder.xcworkspace -scheme RudderSDK-iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13' | xcpretty
build-wrapper-macosx-x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} xcodebuild -workspace Rudder.xcworkspace -scheme Rudder_iOS -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14' | xcpretty
- name: Run tests(iOS)
run: |
xcodebuild -workspace Rudder.xcworkspace -scheme RudderTests-iOS test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14' -enableCodeCoverage YES -derivedDataPath build | xcpretty
- name: Run tests(suite)
- name: Run tests(tvOS)
run: |
xcodebuild -scheme RudderSDK-iOS test -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13' -enableCodeCoverage YES -derivedDataPath build | xcpretty
xcodebuild -workspace Rudder.xcworkspace -scheme RudderTests-tvOS test -sdk appletvsimulator -destination 'platform=tvOS Simulator,name=Apple TV' -enableCodeCoverage YES -derivedDataPath build | xcpretty
- name: Run tests(watchOS)
run: |
xcodebuild -workspace Rudder.xcworkspace -scheme RudderTests-watchOS test -sdk watchsimulator -destination 'platform=watchOS Simulator,name=Apple Watch Series 7 (45mm)' -enableCodeCoverage YES -derivedDataPath build | xcpretty
- name: Collect coverage into one XML report
run: |
bash xccov-to-generic.sh build/Logs/Test/*.xcresult/ > generic-coverage.xml
# - name: Build SDK(iOS)
# run: |
# xcodebuild clean build -scheme RudderSDK-iOS -workspace Rudder.xcworkspace -sdk iphonesimulator | xcpretty -r json-compilation-database -o compile_commands.json
- name: SonarCloud Scan
env:
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@ IDEWorkspaceChecks.plist
# Sonar
relative_or_absolute_path_to_cache_location
compile_commands.json

configuration.json
GoogleService-Info.plist
RudderConfig.plist
configuration.json
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [1.18.0](https://github.com/rudderlabs/rudder-sdk-ios/compare/v1.17.0...v1.18.0) (2023-08-08)


### Features

* metrics reporter ([#347](https://github.com/rudderlabs/rudder-sdk-ios/issues/347)) ([ce638a6](https://github.com/rudderlabs/rudder-sdk-ios/commit/ce638a6d8cd395926336901ef3a2e1bfff860ebe))

## [1.17.0](https://github.com/rudderlabs/rudder-sdk-ios/compare/v1.16.1...v1.17.0) (2023-08-02)


Expand Down
30 changes: 30 additions & 0 deletions Examples/RudderConfig/RudderConfig.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//
// RudderConfig.swift
// RudderOneTrust
//
// Created by Pallab Maiti on 26/01/23.
//

import Foundation

@objc
class RudderConfig: NSObject, Codable {
@objc let WRITE_KEY: String
@objc let PROD_DATA_PLANE_URL: String
@objc let PROD_CONTROL_PLANE_URL: String
@objc let LOCAL_DATA_PLANE_URL: String
@objc let LOCAL_CONTROL_PLANE_URL: String
@objc let DEV_DATA_PLANE_URL: String
@objc let DEV_CONTROL_PLANE_URL: String
@objc let STORAGE_LOCATION: String
@objc let DOMAIN_IDENTIFIER: String

@objc
class func create(from url: URL) -> RudderConfig? {
if let data = try? Data(contentsOf: url),
let rudderConfig = try? PropertyListDecoder().decode(RudderConfig.self, from: data) {
return rudderConfig
}
return nil
}
}
24 changes: 24 additions & 0 deletions Examples/RudderConfig/SampleRudderConfig.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>WRITE_KEY</key>
<string></string>
<key>PROD_DATA_PLANE_URL</key>
<string></string>
<key>PROD_CONTROL_PLANE_URL</key>
<string></string>
<key>LOCAL_DATA_PLANE_URL</key>
<string></string>
<key>LOCAL_CONTROL_PLANE_URL</key>
<string></string>
<key>DEV_DATA_PLANE_URL</key>
<string></string>
<key>DEV_CONTROL_PLANE_URL</key>
<string></string>
<key>STORAGE_LOCATION</key>
<string></string>
<key>DOMAIN_IDENTIFIER</key>
<string></string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; };
6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; };
6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; };
ED0CA6DD2A7D049E00899C1C /* RudderConfig.plist in Resources */ = {isa = PBXBuildFile; fileRef = ED0CA6DA2A7D049E00899C1C /* RudderConfig.plist */; };
ED0CA6DE2A7D049E00899C1C /* SampleRudderConfig.plist in Resources */ = {isa = PBXBuildFile; fileRef = ED0CA6DB2A7D049E00899C1C /* SampleRudderConfig.plist */; };
ED0CA6DF2A7D049E00899C1C /* RudderConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED0CA6DC2A7D049E00899C1C /* RudderConfig.swift */; };
ED7619FF2727E28800B086F4 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = ED7619ED2727E28700B086F4 /* InfoPlist.strings */; };
ED761A002727E28800B086F4 /* CustomIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = ED7619EF2727E28700B086F4 /* CustomIntegration.m */; };
ED761A012727E28800B086F4 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = ED7619F32727E28700B086F4 /* LaunchScreen.storyboard */; };
Expand All @@ -32,6 +35,10 @@
6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
ED0CA6D62A7D048D00899C1C /* RudderSampleAppObjC-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RudderSampleAppObjC-Bridging-Header.h"; sourceTree = "<group>"; };
ED0CA6DA2A7D049E00899C1C /* RudderConfig.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = RudderConfig.plist; sourceTree = "<group>"; };
ED0CA6DB2A7D049E00899C1C /* SampleRudderConfig.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SampleRudderConfig.plist; sourceTree = "<group>"; };
ED0CA6DC2A7D049E00899C1C /* RudderConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RudderConfig.swift; sourceTree = "<group>"; };
ED3B022F272A67AB000893AA /* RudderSampleAppObjC.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = RudderSampleAppObjC.entitlements; sourceTree = "<group>"; };
ED7619EC2727E28700B086F4 /* RudderSampleAppObjC-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "RudderSampleAppObjC-Info.plist"; sourceTree = "<group>"; };
ED7619EE2727E28700B086F4 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -108,9 +115,21 @@
path = ../../Pods;
sourceTree = "<group>";
};
ED0CA6D92A7D049E00899C1C /* RudderConfig */ = {
isa = PBXGroup;
children = (
ED0CA6DA2A7D049E00899C1C /* RudderConfig.plist */,
ED0CA6DB2A7D049E00899C1C /* SampleRudderConfig.plist */,
ED0CA6DC2A7D049E00899C1C /* RudderConfig.swift */,
);
name = RudderConfig;
path = ../../RudderConfig;
sourceTree = "<group>";
};
ED7619EB2727E28700B086F4 /* RudderSampleAppObjC */ = {
isa = PBXGroup;
children = (
ED0CA6D92A7D049E00899C1C /* RudderConfig */,
ED3B022F272A67AB000893AA /* RudderSampleAppObjC.entitlements */,
ED7619F12727E28700B086F4 /* _AppDelegate.h */,
ED7619FD2727E28800B086F4 /* _AppDelegate.m */,
Expand All @@ -127,6 +146,7 @@
ED7619F52727E28700B086F4 /* Main.storyboard */,
ED7619EC2727E28700B086F4 /* RudderSampleAppObjC-Info.plist */,
ED7619F72727E28700B086F4 /* RudderSampleAppObjC-Prefix.pch */,
ED0CA6D62A7D048D00899C1C /* RudderSampleAppObjC-Bridging-Header.h */,
);
path = RudderSampleAppObjC;
sourceTree = "<group>";
Expand Down Expand Up @@ -165,6 +185,7 @@
TargetAttributes = {
6003F589195388D20070C39A = {
DevelopmentTeam = GTGKNDBD23;
LastSwiftMigration = 1430;
};
};
};
Expand Down Expand Up @@ -192,6 +213,8 @@
buildActionMask = 2147483647;
files = (
ED761A012727E28800B086F4 /* LaunchScreen.storyboard in Resources */,
ED0CA6DD2A7D049E00899C1C /* RudderConfig.plist in Resources */,
ED0CA6DE2A7D049E00899C1C /* SampleRudderConfig.plist in Resources */,
ED761A052727E28800B086F4 /* Images.xcassets in Resources */,
ED7619FF2727E28800B086F4 /* InfoPlist.strings in Resources */,
ED761A022727E28800B086F4 /* Main.storyboard in Resources */,
Expand All @@ -208,39 +231,15 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-RudderSampleAppObjC/Pods-RudderSampleAppObjC-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Amplitude/Amplitude.framework",
"${BUILT_PRODUCTS_DIR}/Appboy-iOS-SDK/Appboy_iOS_SDK.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCore/FirebaseCore.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseCoreInternal/FirebaseCoreInternal.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseInstallations/FirebaseInstallations.framework",
"${BUILT_PRODUCTS_DIR}/FirebaseMessaging/FirebaseMessaging.framework",
"${BUILT_PRODUCTS_DIR}/GoogleDataTransport/GoogleDataTransport.framework",
"${BUILT_PRODUCTS_DIR}/GoogleUtilities/GoogleUtilities.framework",
"${BUILT_PRODUCTS_DIR}/PromisesObjC/FBLPromises.framework",
"${BUILT_PRODUCTS_DIR}/Rudder-iOS10.0/Rudder.framework",
"${BUILT_PRODUCTS_DIR}/Rudder-Amplitude/Rudder_Amplitude.framework",
"${BUILT_PRODUCTS_DIR}/Rudder-Braze/Rudder_Braze.framework",
"${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
"${BUILT_PRODUCTS_DIR}/nanopb/nanopb.framework",
"${BUILT_PRODUCTS_DIR}/MetricsReporter-iOS/MetricsReporter.framework",
"${BUILT_PRODUCTS_DIR}/Rudder-iOS/Rudder.framework",
"${BUILT_PRODUCTS_DIR}/RudderKit-iOS/RudderKit.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Amplitude.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Appboy_iOS_SDK.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCore.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreDiagnostics.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseCoreInternal.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseInstallations.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FirebaseMessaging.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleDataTransport.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/GoogleUtilities.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FBLPromises.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MetricsReporter.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Rudder.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Rudder_Amplitude.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Rudder_Braze.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/nanopb.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RudderKit.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -276,6 +275,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
ED0CA6DF2A7D049E00899C1C /* RudderConfig.swift in Sources */,
ED761A032727E28800B086F4 /* main.m in Sources */,
ED761A062727E28800B086F4 /* CustomFactory.m in Sources */,
ED761A002727E28800B086F4 /* CustomIntegration.m in Sources */,
Expand Down Expand Up @@ -422,6 +422,7 @@
baseConfigurationReference = F928F8A942558010CC7088BF /* Pods-RudderSampleAppObjC.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = RudderSampleAppObjC/RudderSampleAppObjC.entitlements;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = GTGKNDBD23;
Expand All @@ -434,6 +435,8 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.ios.test.objc;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "RudderSampleAppObjC/RudderSampleAppObjC-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0;
WRAPPER_EXTENSION = app;
};
Expand All @@ -444,6 +447,7 @@
baseConfigurationReference = 226F4438CB73B84E0D75B6F3 /* Pods-RudderSampleAppObjC.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = RudderSampleAppObjC/RudderSampleAppObjC.entitlements;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = GTGKNDBD23;
Expand All @@ -455,6 +459,7 @@
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = com.rudderstack.ios.test.objc;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "RudderSampleAppObjC/RudderSampleAppObjC-Bridging-Header.h";
SWIFT_VERSION = 4.0;
WRAPPER_EXTENSION = app;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "F63CBCAC2846422900A3F71D"
BuildableName = "RudderTests.xctest"
BlueprintName = "RudderTests"
BlueprintIdentifier = "ED04A23B29839DCC0080A88D"
BuildableName = "RudderTests-iOS.xctest"
BlueprintName = "RudderTests-iOS"
ReferencedContainer = "container:../../Rudder.xcodeproj">
</BuildableReference>
</TestableReference>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//

Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

@import UIKit;
@import UserNotifications;
@import FirebaseCore;
@import FirebaseMessaging;

@interface _AppDelegate : UIResponder <UIApplicationDelegate>

Expand Down
46 changes: 14 additions & 32 deletions Examples/RudderSampleAppObjC/RudderSampleAppObjC/_AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@

#import "_AppDelegate.h"
#import <Rudder/Rudder.h>
#import "RudderAmplitudeFactory.h"
#import "RudderBrazeFactory.h"
#import <AdSupport/ASIdentifierManager.h>
#import "RudderSampleAppObjC-Swift.h"


static int userCount = 1;
Expand All @@ -24,30 +23,19 @@ @implementation _AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

/// Create a `configuration.json` file on root directory. The JSON should be look like:
/// {
/// "writeKey": "WRITE_KEY_VALUE",
/// "dataPlaneUrl": "DATA_PLANE_URL_VALUE",
/// "controlPlaneUrl": "CONTROL_PLANE_URL_VALUE"
/// }

NSDictionary *dict = [self JSONFromFile];
NSString* dataPlaneUrl = dict[@"dataPlaneUrl"];
NSString* writeKey = dict[@"writeKey"];
NSString* controlPlaneUrl = dict[@"controlPlaneUrl"];

[RSClient putAuthToken:@"testAuthToken"];
RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withLoglevel:RSLogLevelVerbose];
[builder withTrackLifecycleEvens:YES];
[builder withRecordScreenViews:YES];
[builder withDataPlaneUrl:dataPlaneUrl];
[builder withControlPlaneUrl:controlPlaneUrl];
[builder withFactory:[RudderAmplitudeFactory instance]];
[builder withFactory:[RudderBrazeFactory instance]];
[RSClient getInstance:writeKey config:[builder build]];

NSString *path = [[NSBundle mainBundle] pathForResource:@"RudderConfig" ofType:@"plist"];
if (path != nil) {
NSURL *url = [NSURL fileURLWithPath:path];
RudderConfig *rudderConfig = [RudderConfig createFrom:url];
if (rudderConfig != nil) {
RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withLoglevel:RSLogLevelVerbose];
[builder withTrackLifecycleEvens:YES];
[builder withRecordScreenViews:YES];
[builder withDataPlaneUrl:rudderConfig.DEV_DATA_PLANE_URL];
[RSClient getInstance:rudderConfig.WRITE_KEY config:[builder build]];
}
}
return YES;
}

Expand Down Expand Up @@ -97,10 +85,4 @@ + (void) sendReset {
[[RSClient sharedInstance] reset];
}

- (id)JSONFromFile
{
NSString *path = [[NSBundle mainBundle] pathForResource:@"configuration" ofType:@"json"];
NSData *data = [NSData dataWithContentsOfFile:path];
return [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
}
@end
Loading

0 comments on commit 211f70d

Please sign in to comment.