Skip to content

Commit

Permalink
release: 5.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
repro-sdk-bot committed Oct 1, 2021
1 parent 11d4c7a commit d1559e0
Show file tree
Hide file tree
Showing 25 changed files with 518 additions and 22 deletions.
33 changes: 33 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// swift-tools-version:5.3

import PackageDescription

let package = Package(
name: "Repro",
platforms: [ .iOS(.v10) ],
products: [
.library(
name: "Repro",
targets: ["ReproBinarySDK", "ReproDependencyDummy"]
),
],
targets: [
.binaryTarget(
name: "ReproBinarySDK",
path: "Repro.xcframework"
),
.target(
name: "ReproDependencyDummy",
path: "SwiftPackageManager/ReproDependencyDummy",
linkerSettings: [
.linkedFramework("UIKit"),
.linkedFramework("CoreGraphics"),
.linkedFramework("QuartzCore"),
.linkedFramework("WebKit"),
.linkedFramework("SystemConfiguration"),
.linkedFramework("UserNotifications"),
]
),
]
)

Binary file removed Repro.embeddedframework/Repro.framework/Repro
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
44 changes: 22 additions & 22 deletions Repro.podspec
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
Pod::Spec.new do |s|
s.name = 'Repro'
s.version = '5.6.0'
s.summary = 'Repro is a mobile analytics tool that lets you have much deeper understanding of your users.'
s.homepage = 'https://repro.io/'
s.license = {
type: 'Copyright',
text: '(c) 2015 Repro Inc.'
}
s.author = { 'Repro' => '[email protected]' }
s.social_media_url = 'https://twitter.com/reproio'
s.source = {
:git => 'https://github.com/reproio/repro-ios-sdk.git',
:tag => s.version.to_s
}
s.documentation_url = 'http://docs.repro.io'
s.name = 'Repro'
s.version = '5.7.0'
s.summary = 'Repro is a mobile analytics tool that lets you have much deeper understanding of your users.'
s.homepage = 'https://repro.io/'
s.license = {
type: 'Copyright',
text: '(c) 2015 Repro Inc.'
}
s.author = { 'Repro' => '[email protected]' }
s.social_media_url = 'https://twitter.com/reproio'
s.source = {
:git => 'https://github.com/reproio/repro-ios-sdk.git',
:tag => s.version.to_s
}
s.documentation_url = 'https://docs.repro.io'

s.platform = :ios
s.requires_arc = true
s.platform = :ios
s.requires_arc = true

s.public_header_files = 'Repro.embeddedframework/Repro.framework/Headers/*.h'
s.source_files = 'Repro.embeddedframework/Repro.framework/Headers/*.h'
s.vendored_frameworks = 'Repro.embeddedframework/Repro.framework'
s.resource = 'Repro.embeddedframework/Resources/ReproSDKResources.bundle'
s.vendored_frameworks = 'Repro.xcframework'

s.frameworks = 'SystemConfiguration', 'WebKit'
s.frameworks = 'UIKit', 'CoreGraphics', 'QuartzCore', 'SystemConfiguration', 'WebKit', 'UserNotifications'
end



43 changes: 43 additions & 0 deletions Repro.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>LibraryIdentifier</key>
<string>ios-arm64_armv7_armv7s</string>
<key>LibraryPath</key>
<string>Repro.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>armv7s</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Repro.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
<string>XFWK</string>
<key>XCFrameworkFormatVersion</key>
<string>1.0</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
//
// Repro iOS SDK
//
// Copyright (c) 2014 Repro Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RPRViewContentProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRSearchProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSString *contentID;
@property (nonatomic, readwrite, copy) NSString *searchString;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRAddToCartProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRAddToWishlistProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSString *contentID;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRInitiateCheckoutProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSString *contentID;
@property (nonatomic, readwrite) NSInteger numItems;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRAddPaymentInfoProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSString *contentID;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRPurchaseProperties : NSObject
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite) NSInteger numItems;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRShareProperties : NSObject
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSString *contentID;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *serviceName;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRLeadProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *contentCategory;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end

@interface RPRCompleteRegistrationProperties : NSObject
@property (nonatomic, readwrite) double value;
@property (nonatomic, readwrite, copy) NSString *currency;
@property (nonatomic, readwrite, copy) NSString *contentName;
@property (nonatomic, readwrite, copy) NSString *status;
@property (nonatomic, readwrite, copy) NSDictionary *extras;
@end
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// Repro iOS SDK
//
// Copyright (c) 2014 Repro Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface RPRNewsFeedEntry : NSObject

@property (nonatomic, readonly) uint64_t ID;
@property (nonatomic, readonly) NSString *deviceID;
@property (nonatomic, readonly) NSString *title;
@property (nonatomic, readonly) NSString *summary;
@property (nonatomic, readonly) NSString *body;
@property (nonatomic, readonly, nullable) NSURL *linkUrl;
@property (nonatomic, readonly, nullable) NSURL *imageUrl;
@property (nonatomic, readonly) NSDate *deliveredAt;
@property (nonatomic) BOOL shown;
@property (nonatomic) BOOL read;

- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;

@end

NS_ASSUME_NONNULL_END
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
//
// Repro iOS SDK
//
// Copyright (c) 2014 Repro Inc. All rights reserved.
//

#import <Foundation/Foundation.h>


/// Wrapper class around remote config values.
@interface RPRRemoteConfigValue : NSObject
// Will be `nil` if both remote config and local config did not contain a value.
@property(nonatomic, readonly, nullable) NSString *stringValue;
@end

/// Status reported via fetch callback.
typedef NS_ENUM(NSInteger, RPRRemoteConfigFetchStatus) {
RPRRemoteConfigFetchStatusSuccess NS_SWIFT_NAME(success) = 0,
RPRRemoteConfigFetchStatusTimeoutReached NS_SWIFT_NAME(timeoutReached),
RPRRemoteConfigFetchStatusAlreadyFetched NS_SWIFT_NAME(alreadyFetched)
} NS_SWIFT_NAME(RPRRemoteConfigFetchStatus);




/// Remote config fetch result will be passed with this completion handler.
typedef void (^RPRRemoteConfigFetchCompletion)(RPRRemoteConfigFetchStatus status)
NS_SWIFT_NAME(RPRRemoteConfigFetchCompletion);





@interface RPRRemoteConfig : NSObject

/// Access remote config via `Repro.remoteConfig` instead of initializing this class.
- (nonnull instancetype)init NS_UNAVAILABLE;

#pragma mark - Remote Config Setup

/// You may not need this method because the default behavior is:
/// - After a call to `Repro.setup()`, automatically fetch every time the app will enter foreground
/// - Run `activateFetched` as soon as a response was received.
///
/// If you need a completionHandler to ensure the remoteConfig gets activated at a certain point in time
/// or want to validate remote config functionality while development, you should use this method. You can
/// only set one completionHandler at a time. Also only one fetch per app foreground/background cycle is
/// permitted. Therefore you should call this when your app comes to foreground, preferably
/// from `applicationWillEnterForeground`.
///
/// If the completionHandler handler is called with status `RPRRemoteConfigFetchStatusSuccess`, you should
/// proceed with calling `activateFetched` in the completionHandler or after the completionHandler has
/// been executed.
///
/// After `activateFetched` has been called, new remote config values are available. This completionHandler
/// is always guaranteed to be called on the main thread. The callback will be invalidated and not executed
/// if the app goes to background or the end-user OptsOut via the OptIn/OptOut API.
- (void)fetchWithTimeout:(NSTimeInterval)timeout
completionHandler:(nonnull RPRRemoteConfigFetchCompletion)completionHandler
NS_SWIFT_NAME(fetch(withTimeout:completionHandler:));


/// This is only needed if you use `fetchWithTimeout:completionHandler:`. See above.
/// Returns YES if a previously fetched remote config has replaced the current remote config.
- (BOOL)activateFetched
NS_SWIFT_NAME(activateFetched());






#pragma mark - Local Default Settings

/// Set local defaults for remote config queries via dictionary.
- (BOOL)setDefaultsFromDictionary:(nonnull NSDictionary<NSString *, id> *)defaults
NS_SWIFT_NAME(setDefaults(fromDictionary:));

/// Set local defaults for remote config queries via a json file.
- (BOOL)setDefaultsFromJsonFile:(nonnull NSURL *)fileNameURL
NS_SWIFT_NAME(setDefaults(fromJsonFile:));

/// Set local defaults for remote config queries via a json string.
- (BOOL)setDefaultsFromJsonString:(nonnull NSString *)string
NS_SWIFT_NAME(setDefaults(fromJsonString:));






#pragma mark - Query Remote Config

/// Access to remote config values.
- (nonnull RPRRemoteConfigValue *)valueForKey:(nonnull NSString *)key
NS_SWIFT_NAME(value(forKey:));

/// Access to remote config values via subscript syntax.
- (nonnull RPRRemoteConfigValue *)objectForKeyedSubscript:(nonnull NSString *)key;

/// Return a dictonary with all key value pairs.
- (nonnull NSDictionary<NSString *, RPRRemoteConfigValue *> *)allValues
NS_SWIFT_NAME(allValues());

/// Return a dictonary with all key value pairs for a given prefix. Pass `nil` or an empty string to get all values.
- (nonnull NSDictionary<NSString *, RPRRemoteConfigValue *> *)allValuesWithPrefix:(nullable NSString *)prefix
NS_SWIFT_NAME(allValues(withPrefix:));

/// Returns the local default value for a key.
- (nonnull RPRRemoteConfigValue *)localDefaultValueForKey:(nonnull NSString *)key
NS_SWIFT_NAME(localDefaultValue(forKey:));

/// Reset all data. Local config & remote Config. Should only be used while in development.
- (void)forceReset
NS_SWIFT_NAME(forceReset());


@end

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Repro iOS SDK
//
// Copyright (c) 2014 Repro Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, RPRUserProfileGender) {
RPRUserProfileGenderOther NS_SWIFT_NAME(other) = 0,
RPRUserProfileGenderMale NS_SWIFT_NAME(male),
RPRUserProfileGenderFemale NS_SWIFT_NAME(female)
};

Loading

0 comments on commit d1559e0

Please sign in to comment.