react-native-adjust
Advanced tools
Comparing version 4.18.0 to 4.18.1
@@ -0,1 +1,14 @@ | ||
### Version 4.18.1 (2nd July 2019) | ||
#### Fixed | ||
- Fixed compile errors when trying to use Adjust SDK with TypeScript 2.9 and higher (thanks to @rawrmaan). | ||
#### Changed | ||
- Changed submodule endpoints from `SSH` to `HTTPS` (thanks to @rawrmaan). | ||
#### Native SDKs | ||
- [iOS@v4.18.0][ios_sdk_v4.18.0] | ||
- [Android@v4.18.0][android_sdk_v4.18.0] | ||
--- | ||
### Version 4.18.0 (1st July 2019) | ||
@@ -2,0 +15,0 @@ #### Added |
276
index.d.ts
@@ -1,177 +0,155 @@ | ||
declare module "react-native-adjust" { | ||
type Environment = "sandbox" | "production"; | ||
declare module 'react-native-adjust' { | ||
type Environment = 'sandbox' | 'production' | ||
type LogLevel = string | ||
enum LogLevel { | ||
Verbose, | ||
Debug, | ||
Info, | ||
Warn, | ||
Error, | ||
Assert, | ||
Suppress | ||
} | ||
interface AdjustAttribution { | ||
trackerToken: string | ||
trackerName: string | ||
network: string | ||
campaign: string | ||
adgroup: string | ||
creative: string | ||
clickLabel: string | ||
adid: string | ||
} | ||
interface AdjustAttribution { | ||
trackerToken: string; | ||
trackerName: string; | ||
network: string; | ||
campaign: string; | ||
adgroup: string; | ||
creative: string; | ||
clickLabel: string; | ||
adid: string; | ||
} | ||
interface AdjustEventTrackingSuccess { | ||
message: string | ||
timestamp: string | ||
adid: string | ||
eventToken: string | ||
callbackId: string | ||
jsonResponse: string | ||
} | ||
interface AdjustEventTrackingSuccess { | ||
message: string; | ||
timestamp: string; | ||
adid: string; | ||
eventToken: string; | ||
callbackId: string; | ||
jsonResponse: string; | ||
} | ||
interface AdjustEventTrackingFailure { | ||
message: string | ||
timestamp: string | ||
adid: string | ||
eventToken: string | ||
callbackId: string | ||
willRetry: boolean | ||
jsonResponse: string | ||
} | ||
interface AdjustEventTrackingFailure { | ||
message: string; | ||
timestamp: string; | ||
adid: string; | ||
eventToken: string; | ||
callbackId: string; | ||
willRetry: boolean; | ||
jsonResponse: string; | ||
} | ||
interface AdjustSessionTrackingSuccess { | ||
message: string | ||
timestamp: string | ||
adid: string | ||
jsonResponse: string | ||
} | ||
interface AdjustSessionTrackingSuccess { | ||
message: string; | ||
timestamp: string; | ||
adid: string; | ||
jsonResponse: string; | ||
} | ||
interface AdjustSessionTrackingFailure { | ||
message: string | ||
timestamp: string | ||
adid: string | ||
willRetry: boolean | ||
jsonResponse: string | ||
} | ||
interface AdjustSessionTrackingFailure { | ||
message: string; | ||
timestamp: string; | ||
adid: string; | ||
willRetry: boolean; | ||
jsonResponse: string; | ||
} | ||
interface AdjustUri { | ||
uri: string | ||
} | ||
interface AdjustUri { | ||
uri: string; | ||
} | ||
export class AdjustConfig { | ||
constructor(appToken: string, environment: Environment) | ||
export class AdjustConfig { | ||
constructor(appToken: string, environment: Environment) { } | ||
public setLogLevel(level: LogLevel): void | ||
public setLogLevel(level: LogLevel): void { } | ||
public setEventBufferingEnabled(isEnabled: boolean): void | ||
public setEventBufferingEnabled(isEnabled: boolean): void { } | ||
public setProcessName(processName: string): void | ||
public setProcessName(processName: string): void { } | ||
public setDefaultTracker(defaultTracked: string): void | ||
public setDefaultTracker(defaultTracked: string): void { } | ||
public setUserAgent(userAgent: string): void | ||
public setUserAgent(userAgent: string): void { } | ||
public setAppSecret( | ||
secretId: number, | ||
info1: number, | ||
info2: number, | ||
info3: number, | ||
info4: number | ||
): void | ||
public setAppSecret(secretId: number, info1: number, info2: number, info3: number, info4: number): void { } | ||
public setDelayStart(delayStart: number): void | ||
public setDelayStart(delayStart: number): void { } | ||
public setSendInBackground(sendInBackground: boolean): void | ||
public setSendInBackground(sendInBackground: boolean): void { } | ||
public setDeviceKnown(isDeviceKnown: boolean): void | ||
public setDeviceKnown(isDeviceKnown: boolean): void { } | ||
public setSdkPrefix(sdkPrefix: string): void | ||
public setSdkPrefix(sdkPrefix: string): void { } | ||
public setShouldLaunchDeeplink(shouldLaunchDeeplink: boolean): void | ||
public setShouldLaunchDeeplink(shouldLaunchDeeplink: boolean): void { } | ||
public setAttributionCallbackListener( | ||
callback: (attribution: AdjustAttribution) => void | ||
): void | ||
public setAttributionCallbackListener(callback: (attribution: AdjustAttribution) => void): void { } | ||
public setEventTrackingSucceededCallbackListener( | ||
callback: (eventSuccess: AdjustEventTrackingSuccess) => void | ||
): void | ||
public setEventTrackingSucceededCallbackListener(callback: (eventSuccess: AdjustEventTrackingSuccess) => void): void { } | ||
public setEventTrackingFailedCallbackListener( | ||
callback: (eventFailed: AdjustEventTrackingFailure) => void | ||
): void | ||
public setEventTrackingFailedCallbackListener(callback: (eventFailed: AdjustEventTrackingFailure) => void): void { } | ||
public setSessionTrackingSucceededCallbackListener( | ||
callback: (sessionSuccess: AdjustSessionTrackingSuccess) => void | ||
): void | ||
public setSessionTrackingSucceededCallbackListener(callback: (sessionSuccess: AdjustSessionTrackingSuccess) => void): void { } | ||
public setSessionTrackingFailedCallbackListener( | ||
callback: (sessionFailed: AdjustSessionTrackingFailure) => void | ||
): void | ||
public setSessionTrackingFailedCallbackListener(callback: (sessionFailed: AdjustSessionTrackingFailure) => void): void { } | ||
public setDeferredDeeplinkCallbackListener( | ||
callback: (uri: AdjustUri) => void | ||
): void | ||
public setDeferredDeeplinkCallbackListener(callback: (uri: AdjustUri) => void): void { } | ||
static LogLevelVerbose: LogLevel | ||
static LogLevelDebug: LogLevel | ||
static LogLevelInfo: LogLevel | ||
static LogLevelWarn: LogLevel | ||
static LogLevelError: LogLevel | ||
static LogLevelAssert: LogLevel | ||
static LogLevelSuppress: LogLevel | ||
static EnvironmentSandbox: Environment | ||
static EnvironmentProduction: Environment | ||
} | ||
static get LogLevelVerbose(): LogLevel { | ||
return LogLevel.Verbose; | ||
} | ||
export class AdjustEvent { | ||
constructor(eventToken: string) | ||
public setRevenue(revenue: number, currency: string): void | ||
public addCallbackParameter(key: string, value: string): void | ||
public addPartnerParameter(key: string, value: string): void | ||
public setTransactionId(transactionId: string): void | ||
public setCallbackId(callbackId: string): void | ||
} | ||
static get LogLevelDebug(): LogLevel { | ||
return LogLevel.Debug; | ||
} | ||
static get LogLevelInfo(): LogLevel { | ||
return LogLevel.Info; | ||
} | ||
static get LogLevelWarn(): LogLevel { | ||
return LogLevel.Warn; | ||
} | ||
static get LogLevelError(): LogLevel { | ||
return LogLevel.Error; | ||
} | ||
static get LogLevelAssert(): LogLevel { | ||
return LogLevel.Assert; | ||
} | ||
static get LogLevelSuppress(): LogLevel { | ||
return LogLevel.Suppress; | ||
} | ||
static get EnvironmentSandbox(): Environment { | ||
return "sandbox"; | ||
} | ||
static get EnvironmentProduction(): Environment { | ||
return "production"; | ||
} | ||
} | ||
export class AdjustEvent { | ||
constructor(eventToken: string) { } | ||
public setRevenue(revenue: number, currency: string): void { } | ||
public addCallbackParameter(key: string, value: string): void { } | ||
public addPartnerParameter(key: string, value: string): void { } | ||
public setTransactionId(transactionId: string): void { } | ||
public setCallbackId(callbackId: string): void { } | ||
} | ||
export const Adjust = { | ||
componentWillUnmount: (): void => { }, | ||
create: (adjustConfig: AdjustConfig): void => { }, | ||
trackEvent: (adjustEvent: AdjustEvent): void => { }, | ||
setEnabled: (enabled: boolean): void => { }, | ||
isEnabled: (callback: (enabled: boolean) => void): void => { }, | ||
setOfflineMode: (enabled: boolean): void => { }, | ||
setPushToken: (token: string): void => { }, | ||
appWillOpenUrl: (url: string): void => { }, | ||
sendFirstPackages: (): void => { }, | ||
trackAdRevenue: (source: string, payload: string): void => { }, | ||
addSessionCallbackParameter: (key: string, value: string): void => { }, | ||
addSessionPartnerParameter: (key: string, value: string): void => { }, | ||
removeSessionCallbackParameter: (key: string): void => { }, | ||
removeSessionPartnerParameter: (key: string): void => { }, | ||
resetSessionCallbackParameters: (): void => { }, | ||
resetSessionPartnerParameters: (): void => { }, | ||
gdprForgetMe: (): void => { }, | ||
getIdfa: (callback: (idfa: string) => void): void => { }, | ||
getGoogleAdId: (callback: (adid: string) => void): void => { }, | ||
getAdid: (callback: (adid: string) => void): void => { }, | ||
getAttribution: (callback: (attribution: AdjustAttribution) => void): void => { }, | ||
getAmazonAdId: (callback: (adid: string) => void): void => { }, | ||
getSdkVersion: (callback: (sdkVersion: string) => void): void => { }, | ||
setReferrer: (referrer: string): void => { }, | ||
}; | ||
export const Adjust: { | ||
componentWillUnmount: () => void | ||
create: (adjustConfig: AdjustConfig) => void | ||
trackEvent: (adjustEvent: AdjustEvent) => void | ||
setEnabled: (enabled: boolean) => void | ||
isEnabled: (callback: (enabled: boolean) => void) => void | ||
setOfflineMode: (enabled: boolean) => void | ||
setPushToken: (token: string) => void | ||
appWillOpenUrl: (url: string) => void | ||
sendFirstPackages: () => void | ||
trackAdRevenue: (source: string, payload: string) => void | ||
addSessionCallbackParameter: (key: string, value: string) => void | ||
addSessionPartnerParameter: (key: string, value: string) => void | ||
removeSessionCallbackParameter: (key: string) => void | ||
removeSessionPartnerParameter: (key: string) => void | ||
resetSessionCallbackParameters: () => void | ||
resetSessionPartnerParameters: () => void | ||
gdprForgetMe: () => void | ||
getIdfa: (callback: (idfa: string) => void) => void | ||
getGoogleAdId: (callback: (adid: string) => void) => void | ||
getAdid: (callback: (adid: string) => void) => void | ||
getAttribution: (callback: (attribution: AdjustAttribution) => void) => void | ||
getAmazonAdId: (callback: (adid: string) => void) => void | ||
getSdkVersion: (callback: (sdkVersion: string) => void) => void | ||
setReferrer: (referrer: string) => void | ||
} | ||
} |
@@ -113,3 +113,3 @@ 'use strict'; | ||
Adjust.getSdkVersion = function(callback) { | ||
module_adjust.getSdkVersion("react-native4.18.0", callback); | ||
module_adjust.getSdkVersion("react-native4.18.1", callback); | ||
} | ||
@@ -187,3 +187,3 @@ | ||
var AdjustConfig = function(appToken, environment) { | ||
this.sdkPrefix = "react-native4.18.0"; | ||
this.sdkPrefix = "react-native4.18.1"; | ||
this.appToken = appToken; | ||
@@ -190,0 +190,0 @@ this.environment = environment; |
{ | ||
"name": "react-native-adjust", | ||
"description": "Adjust React Native SDK", | ||
"version": "4.18.0", | ||
"version": "4.18.1", | ||
"main": "index.js", | ||
"author": "adjust GmbH", | ||
"author": "Adjust GmbH", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
771371
1243