adjust / react_native_sdk Goto Github PK
View Code? Open in Web Editor NEWThis is the React Native SDK of
Home Page: http://www.adjust.com
License: Other
This is the React Native SDK of
Home Page: http://www.adjust.com
License: Other
After installation of the Adjust, build fails with "Native module cannot be null." Linking seems to be fine:
react-native link react-native-adjust
rnpm-install info Linking react-native-adjust ios dependency
rnpm-install info Platform 'ios' module react-native-adjust has been successfully linked
rnpm-install info Linking react-native-adjust android dependency
rnpm-install info Platform 'android' module react-native-adjust has been successfully linked
rnpm-install info Linking assets to ios project
rnpm-install info Linking assets to android project
rnpm-install info Assets have been successfully linked to your project
Versions:
"react-native": "0.57.7",
"react-native-adjust": "^4.17.0",
Please suggest what could be wrong.
I'm encountering this issue since I've been trying to upgrade to react native 0.60.5. I've removed all the other linker flags except the $(inherit)
. And then I've removed the linked Frameworks and Libraries instead of JavaScriptCore.framework
. Since the react native
Here's the specs of my project.
React: 16.9
React Native: 0.60.5
Pods Target Version: 10.0
react-native-adjust: 4.18.1
Ld /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Products/Debug-iphonesimulator/{project}.app/{project} normal x86_64 (in target: {project})
cd /Users/{user}/{project}/ios
export IPHONEOS_DEPLOYMENT_TARGET=10.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk -L/Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Products/Debug-iphonesimulator -F/Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Products/Debug-iphonesimulator -F/Users/{user}/{project}/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -F/Users/{user}/{project}/ios -filelist /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Intermediates.noindex/{project}.build/Debug-iphonesimulator/{project}.build/Objects-normal/x86_64/{project}.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.0 -Xlinker -object_path_lto -Xlinker /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Intermediates.noindex/{project}.build/Debug-iphonesimulator/{project}.build/Objects-normal/x86_64/{project}_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Intermediates.noindex/{project}.build/Debug-iphonesimulator/{project}.build/Objects-normal/x86_64/{project}.swiftmodule -ObjC -lAdjust -lBVLinearGradient -lBranch -lDoubleConversion -lFolly -lGoogleAnalyticsServices -lRCTYouTube -lRNCAsyncStorage -lRNDeviceInfo -lRNFS -lRNFastImage -lRNFileViewer -lRNGestureHandler -lRNLocalize -lRNReanimated -lRNSVG -lRNShare -lRNVectorIcons -lReact-Core -lReact-DevSupport -lReact-RCTActionSheet -lReact-RCTAnimation -lReact-RCTBlob -lReact-RCTImage -lReact-RCTLinking -lReact-RCTNetwork -lReact-RCTSettings -lReact-RCTText -lReact-RCTVibration -lReact-RCTWebSocket -lReact-cxxreact -lReact-jsi -lReact-jsiexecutor -lReact-jsinspector -lSDWebImage -lSDWebImageWebPCoder -lglog -llibwebp -lreact-native-adjust -lreact-native-branch -lreact-native-config -lreact-native-document-picker -lreact-native-google-analytics-bridge -lreact-native-idfa -lreact-native-image-picker -lreact-native-image-resizer -lreact-native-onesignal -lreact-native-orientation -lreact-native-pdf -lreact-native-splash-screen -lreact-native-webview -lrn-fetch-blob -lsqlite3.0 -lstdc++ -lyoga -lz -framework AdSupport -framework CoreData -framework CoreGraphics -framework Foundation -framework ImageIO -framework JavaScriptCore -framework MobileCoreServices -framework OneSignal -framework QuartzCore -framework SafariServices -framework SystemConfiguration -framework UIKit -framework UserNotifications -framework WebKit -weak_framework AdSupport -weak_framework CoreTelephony -weak_framework iAd -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Intermediates.noindex/{project}.build/Debug-iphonesimulator/{project}.build/{project}.app-Simulated.xcent -framework JavaScriptCore -lPods-{project} -Xlinker -dependency_info -Xlinker /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Intermediates.noindex/{project}.build/Debug-iphonesimulator/{project}.build/Objects-normal/x86_64/{project}_dependency_info.dat -o /Users/{user}/Library/Developer/Xcode/DerivedData/{project}-bcghpdavibjrybeabongdfoghcci/Build/Products/Debug-iphonesimulator/{project}.app/{project}
ld: library not found for -lAdjust
clang: error: linker command failed with exit code 1 (use -v to see invocation)
See Breaking Changes:
https://github.com/facebook/react-native/releases
Android
Remove unused createJSModules calls (ce6fb33, 53d5504) - @javache
node_modules/react-native-adjust/android/src/main/java/com/adjust/sdk/AdjustPackage.java:30: error: method does not override or implement a method from a supertype
Hi!
We are gonna add adjust tracking to our react native application. We are using wix/react-native-navigation library for our app navigation.
In the documentation, you state the initialization should be done in the App.js
file, however, react-native-navigation doesn't really have a global app wrapper (or I'm not aware of it).
Where would you recommend we put the Adjust.create
and Adjust.componentWillUnmount
methods?
I can see putting the Adjust.create
method inside the registerAppLaunchedListener
method but I'm unsure (if even needed) where to put the Adjust.componentWillUnmount
.
Thank you for your response!
Any chance we can get a release pushed to npm that updates the IOS pod spec to 4.21.3 to match the latest release IOS SDK release on https://github.com/adjust/ios_sdk/releases.
For background we just updated from RN Adjust 4.18.2 to 4.21 and started seeing the following crash:
EXC_BAD_ACCESS Attempted to dereference garbage pointer 0x38.
/usr/lib/system/libdispatch.dylib __dispatch_source_set_handler
NewWordsWithFriends/Pods/Adjust/Adjust/ADJTimerOnce.m:92:5 -[ADJTimerOnce startIn:]
NewWordsWithFriends/Pods/Adjust/Adjust/ADJAdditions/UIDevice+ADJAdditions.m:224:9 -[UIDevice(ADJAdditions) setiAdWithDetails:adcClientSharedInstance:iAdTimeoutTimer:]
NewWordsWithFriends/Pods/Adjust/Adjust/ADJAdditions/UIDevice+ADJAdditions.m:194:36 -[UIDevice(ADJAdditions) adjCheckForiAd:iAdTimeoutTimer:]
NewWordsWithFriends/Pods/Adjust/Adjust/ADJActivityHandler.m:1337:5 -[ADJActivityHandler checkForiAdI:]
NewWordsWithFriends/Pods/Adjust/Adjust/ADJActivityHandler.m:799:9 -[ADJActivityHandler initI:preLaunchActionsArray:]
NewWordsWithFriends/Pods/Adjust/Adjust/ADJActivityHandler.m:214:26 __52-[ADJActivityHandler initWithConfig:savedPreLaunch:]_block_invoke_2
NewWordsWithFriends/Pods/Adjust/Adjust/ADJUtil.m:1240:9 __42+[ADJUtil launchInQueue:selfInject:block:]_block_invoke
/usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib __dispatch_client_callout
/usr/lib/system/libdispatch.dylib __dispatch_lane_serial_drain$VARIANT$armv81
/usr/lib/system/libdispatch.dylib __dispatch_lane_invoke$VARIANT$armv81
/usr/lib/system/libdispatch.dylib __dispatch_workloop_worker_thread
/usr/lib/system/libsystem_pthread.dylib __pthread_wqthread
We think it might be fixed in IOS 4.21.3
Hi,
The SDK is set up and i do see the version and the sdk enabled return true. And I have created an event and trying to log it using it s token as mentioned in the docs. But i don't find it on the dashboard. Not sure if is getting logged or no as u don't see any exceptions.
Kindly some one help me with this....
I've set deeplinking in my app but the problem is that reattribution doesn't work when a user opens the app via deeplink.
The url goes to handleDeepLink(event) method, however i'm not sure that Adjust.appWillOpenUrl(event.url) method works.
constructor(props) {
super(props);
Adjust.getSdkVersion(function (sdkVersion) {
console.log("Adjust SDK version: " + sdkVersion);
});
// const adjustConfig = new AdjustConfig("KEY", AdjustConfig.EnvironmentSandbox);
const adjustConfig = new AdjustConfig("KEY", AdjustConfig.EnvironmentProduction);
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);
adjustConfig.setShouldLaunchDeeplink(true);
adjustConfig.setSendInBackground(true);
adjustConfig.setDelayStart(4.0);
adjustConfig.setAttributionCallbackListener(function (attribution) {
console.log(">>> Attribution callback received");
console.log("Tracker token = " + attribution.trackerToken);
console.log("Tracker name = " + attribution.trackerName);
console.log("Network = " + attribution.network);
console.log("Campaign = " + attribution.campaign);
console.log("Adgroup = " + attribution.adgroup);
console.log("Creative = " + attribution.creative);
console.log("Click label = " + attribution.clickLabel);
console.log("Adid = " + attribution.adid);
});
adjustConfig.setDeferredDeeplinkCallbackListener(function(deeplink) {
console.log("Deferred deep link URL content: " + deeplink);
});
adjustConfig.setDelayStart(4.0);
Adjust.addSessionCallbackParameter("scpk1", "scpv1");
Adjust.create(adjustConfig);
}
_trackFormSentEvent() {
const adjustEvent = new AdjustEvent("KEY");
Adjust.trackEvent(adjustEvent);
}
_trackNewSessionEvent() {
const adjustEvent = new AdjustEvent("KEY");
Adjust.trackEvent(adjustEvent);
}
async componentDidMount() {
Linking.addEventListener('url', this.handleDeepLink);
Linking.getInitialURL().then((url) => {
if (url) {
this.handleDeepLink({ url });
}
}).catch(e => console.log(e))
}
componentWillUnmount() {
Linking.removeEventListener('url', this.handleDeepLink);
}
handleDeepLink(event) {
Adjust.appWillOpenUrl(event.url);
}
After initialize the SDK I'm receiving Adjust not initialized correctly
.
App.js:
constructor(props) {
super(props);
var adjustConfig = new AdjustConfig("{key}", AdjustConfig.EnvironmentSandbox);
adjustConfig.setLogLevel(AdjustConfig.LogLevelVerbose);
Adjust.create(adjustConfig);
}
Versions:
"react": "16.8.3",
"react-native": "0.59.8",
"react-native-adjust": "^4.17.2"
Android:
implementation 'com.google.android.gms:play-services-analytics:16.0.8'
Permissions:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Logs:
2019-05-31 16:21:19.846 2609-2609/com.adjustexample E/Adjust: Adjust not initialized correctly
2019-05-31 16:21:20.174 2609-2659/com.adjustexample I/ReactNativeJS: Running application "AdjustExample" with appParams: {"rootTag":1}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2019-05-31 16:21:20.243 2609-2660/com.adjustexample W/Adjust: SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!
2019-05-31 16:21:20.244 2609-2660/com.adjustexample W/Adjust: SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!
2019-05-31 16:21:20.244 2609-2660/com.adjustexample W/Adjust: SANDBOX: Adjust is running in Sandbox mode. Use this setting for testing. Don't forget to set the environment to `production` before publishing!
2019-05-31 16:21:20.376 2609-2709/com.adjustexample D/Adjust: Read Attribution: tt:cr1b77y tn:Organic net:Organic cam:null adg:null cre:null cl:null adid:8d5244592279f8fd6d2d974281b178ae
2019-05-31 16:21:20.385 2609-2709/com.adjustexample D/Adjust: Read Activity state: ec:0 sc:1 ssc:2 sl:1101.9 ts:1047.0 la:11:12:13 uuid:cb773288-26d2-40e2-934c-69854dd13594
2019-05-31 16:21:20.385 2609-2709/com.adjustexample D/Adjust: Session Callback parameters file not found
2019-05-31 16:21:20.385 2609-2709/com.adjustexample D/Adjust: Session Partner parameters file not found
2019-05-31 16:21:20.385 2609-2709/com.adjustexample D/Adjust: adjust_config.properties file not found in this app
2019-05-31 16:21:20.486 2609-2709/com.adjustexample I/Adjust: Google Play Services Advertising ID read correctly at start time
2019-05-31 16:21:20.486 2609-2709/com.adjustexample V/Adjust: Foreground timer configured to fire after 60.0 seconds of starting and cycles every 60.0 seconds
2019-05-31 16:21:20.513 2609-2709/com.adjustexample V/Adjust: Foreground timer starting
2019-05-31 16:21:20.514 2609-2709/com.adjustexample V/Adjust: Subsession start
2019-05-31 16:21:20.535 2609-2714/com.adjustexample D/Adjust: Read Package queue: []
2019-05-31 16:21:20.535 2609-2714/com.adjustexample D/Adjust: Package handler read 0 packages
2019-05-31 16:21:20.560 2609-2709/com.adjustexample D/Adjust: Wrote Activity state: ec:0 sc:2 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:cb773288-26d2-40e2-934c-69854dd13594
2019-05-31 16:21:20.560 2609-2714/com.adjustexample D/Adjust: Added package 1 (session)
2019-05-31 16:21:20.562 2609-2714/com.adjustexample V/Adjust: Path: /session
ClientSdk: [email protected]
Parameters:
android_uuid cb773288-26d2-40e2-934c-69854dd13594
api_level 24
app_token qwerty123456
app_version 1.0
attribution_deeplink 1
connectivity_type 0
country US
cpu_type x86
created_at 2019-05-31T16:21:20.514Z-0300
device_manufacturer Google
device_name Android SDK built for x86
device_type phone
display_height 1794
display_width 1080
environment sandbox
event_buffering_enabled 0
gps_adid 3892b11a-6939-4ea4-9168-5856d0062ddb
gps_adid_src service
hardware_name NYC
installed_at 2019-05-31T14:58:53.542Z-0300
language en
last_interval 3350
mcc 310
mnc 260
needs_response_details 1
network_type 13
os_build NYC
os_name android
os_version 7.0
package_name com.adjustexample
screen_density high
screen_format normal
screen_size normal
session_count 2
session_length 1102
subsession_count 2
time_spent 1047
tracking_enabled 1
updated_at 2019-05-31T15:07:58.790Z-0300
2019-05-31 16:21:20.565 2609-2714/com.adjustexample D/Adjust: Wrote Package queue: [session]
2019-05-31 16:21:20.565 2609-2709/com.adjustexample W/Adjust: InstallReferrer not integrated in project (com.android.installreferrer.api.InstallReferrerClient) thrown by (java.lang.ClassNotFoundException)
2019-05-31 16:21:20.566 2609-2714/com.adjustexample D/Adjust: Package handler wrote 1 packages
2019-05-31 16:21:26.963 2609-2718/com.adjustexample V/Adjust: Response: {"app_token":"qwerty123456","adid":"8d5244592279f8fd6d2d974281b178ae","timestamp":"2019-05-31T19:21:27.672Z+0000","message":"Session tracked"}
2019-05-31 16:21:26.963 2609-2718/com.adjustexample I/Adjust: Session tracked
2019-05-31 16:21:26.964 2609-2714/com.adjustexample D/Adjust: Wrote Package queue: []
2019-05-31 16:21:26.964 2609-2714/com.adjustexample D/Adjust: Package handler wrote 0 packages
2019-05-31 16:21:26.964 2609-2714/com.adjustexample V/Adjust: Package handler can send
2019-05-31 16:21:27.001 2609-2709/com.adjustexample D/Adjust: Wrote Activity state: ec:0 sc:2 ssc:1 sl:0.0 ts:0.0 la:11:12:13 uuid:cb773288-26d2-40e2-934c-69854dd13594
Duplicate class com.adjust.sdk.ActivityHandler found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$1 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$10 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$11 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$12 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$13 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$14 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
Duplicate class com.adjust.sdk.ActivityHandler$15 found in modules adjust-android-4.21.2.jar (com.adjust.sdk:adjust-android:4.21.2) and adjust-android.jar (adjust-android.jar)
....
Continue with above error for several files.
Installed the SDK as in the instruction, still can't see an activity on dashboard. Testing on iOS
Adjust SDK version: [email protected]
RN version : 0.61.5
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
You should probably update this
Hello,
Under iOS, when launching a universal link while the app is closed, the native continueUserActivity() method is called before the JS bundle is loaded. Therefore, the React Native's linking listener is never fired (Linking.addEventListener).
The initial URL can be read with Linking.getInitialURL, but in the case of universal links, the raw URL needs further processing by the Adjust SDK.
The only way (without duplicating code) to do that is to bridge the Adjust SDK's convertUniversalLink() method in order to make it accessible JS-side.
I can do it if you guys accept PRs.
Thanks,
Elyes
The current .d.ts
file generates 57 errors when building with TS 2.9+ (not tested on older versions). The file is simply not constructed correctly. PR on the way.
Here are the errors:
node_modules/react-native-adjust/index.d.ts:64:65 - error TS1183: An implementation cannot be declared in ambient contexts.
64 constructor(appToken: string, environment: Environment) { }
~
node_modules/react-native-adjust/index.d.ts:66:51 - error TS1183: An implementation cannot be declared in ambient contexts.
66 public setLogLevel(level: LogLevel): void { }
~
node_modules/react-native-adjust/index.d.ts:68:67 - error TS1183: An implementation cannot be declared in ambient contexts.
68 public setEventBufferingEnabled(isEnabled: boolean): void { }
~
node_modules/react-native-adjust/index.d.ts:70:58 - error TS1183: An implementation cannot be declared in ambient contexts.
70 public setProcessName(processName: string): void { }
~
node_modules/react-native-adjust/index.d.ts:72:64 - error TS1183: An implementation cannot be declared in ambient contexts.
72 public setDefaultTracker(defaultTracked: string): void { }
~
node_modules/react-native-adjust/index.d.ts:74:54 - error TS1183: An implementation cannot be declared in ambient contexts.
74 public setUserAgent(userAgent: string): void { }
~
node_modules/react-native-adjust/index.d.ts:76:113 - error TS1183: An implementation cannot be declared in ambient contexts.
76 public setAppSecret(secretId: number, info1: number, info2: number, info3: number, info4: number): void { }
~
node_modules/react-native-adjust/index.d.ts:78:56 - error TS1183: An implementation cannot be declared in ambient contexts.
78 public setDelayStart(delayStart: number): void { }
~
node_modules/react-native-adjust/index.d.ts:80:69 - error TS1183: An implementation cannot be declared in ambient contexts.
80 public setSendInBackground(sendInBackground: boolean): void { }
~
node_modules/react-native-adjust/index.d.ts:82:61 - error TS1183: An implementation cannot be declared in ambient contexts.
82 public setDeviceKnown(isDeviceKnown: boolean): void { }
~
node_modules/react-native-adjust/index.d.ts:84:54 - error TS1183: An implementation cannot be declared in ambient contexts.
84 public setSdkPrefix(sdkPrefix: string): void { }
~
node_modules/react-native-adjust/index.d.ts:86:77 - error TS1183: An implementation cannot be declared in ambient contexts.
86 public setShouldLaunchDeeplink(shouldLaunchDeeplink: boolean): void { }
~
node_modules/react-native-adjust/index.d.ts:88:105 - error TS1183: An implementation cannot be declared in ambient contexts.
88 public setAttributionCallbackListener(callback: (attribution: AdjustAttribution) => void): void { }
~
node_modules/react-native-adjust/index.d.ts:90:126 - error TS1183: An implementation cannot be declared in ambient contexts.
90 public setEventTrackingSucceededCallbackListener(callback: (eventSuccess: AdjustEventTrackingSuccess) => void): void { }
~
node_modules/react-native-adjust/index.d.ts:92:122 - error TS1183: An implementation cannot be declared in ambient contexts.
92 public setEventTrackingFailedCallbackListener(callback: (eventFailed: AdjustEventTrackingFailure) => void): void { }
~
node_modules/react-native-adjust/index.d.ts:94:132 - error TS1183: An implementation cannot be declared in ambient contexts.
94 public setSessionTrackingSucceededCallbackListener(callback: (sessionSuccess: AdjustSessionTrackingSuccess) => void): void { }
~
node_modules/react-native-adjust/index.d.ts:96:128 - error TS1183: An implementation cannot be declared in ambient contexts.
96 public setSessionTrackingFailedCallbackListener(callback: (sessionFailed: AdjustSessionTrackingFailure) => void): void { }
~
node_modules/react-native-adjust/index.d.ts:98:94 - error TS1183: An implementation cannot be declared in ambient contexts.
98 public setDeferredDeeplinkCallbackListener(callback: (uri: AdjustUri) => void): void { }
~
node_modules/react-native-adjust/index.d.ts:100:20 - error TS1086: An accessor cannot be declared in an ambient context.
100 static get LogLevelVerbose(): LogLevel {
~~~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:104:20 - error TS1086: An accessor cannot be declared in an ambient context.
104 static get LogLevelDebug(): LogLevel {
~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:108:20 - error TS1086: An accessor cannot be declared in an ambient context.
108 static get LogLevelInfo(): LogLevel {
~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:112:20 - error TS1086: An accessor cannot be declared in an ambient context.
112 static get LogLevelWarn(): LogLevel {
~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:116:20 - error TS1086: An accessor cannot be declared in an ambient context.
116 static get LogLevelError(): LogLevel {
~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:120:20 - error TS1086: An accessor cannot be declared in an ambient context.
120 static get LogLevelAssert(): LogLevel {
~~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:124:20 - error TS1086: An accessor cannot be declared in an ambient context.
124 static get LogLevelSuppress(): LogLevel {
~~~~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:128:20 - error TS1086: An accessor cannot be declared in an ambient context.
128 static get EnvironmentSandbox(): Environment {
~~~~~~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:132:20 - error TS1086: An accessor cannot be declared in an ambient context.
132 static get EnvironmentProduction(): Environment {
~~~~~~~~~~~~~~~~~~~~~
node_modules/react-native-adjust/index.d.ts:138:41 - error TS1183: An implementation cannot be declared in ambient contexts.
138 constructor(eventToken: string) { }
~
node_modules/react-native-adjust/index.d.ts:140:68 - error TS1183: An implementation cannot be declared in ambient contexts.
140 public setRevenue(revenue: number, currency: string): void { }
~
node_modules/react-native-adjust/index.d.ts:142:71 - error TS1183: An implementation cannot be declared in ambient contexts.
142 public addCallbackParameter(key: string, value: string): void { }
~
node_modules/react-native-adjust/index.d.ts:144:70 - error TS1183: An implementation cannot be declared in ambient contexts.
144 public addPartnerParameter(key: string, value: string): void { }
~
node_modules/react-native-adjust/index.d.ts:146:62 - error TS1183: An implementation cannot be declared in ambient contexts.
146 public setTransactionId(transactionId: string): void { }
~
node_modules/react-native-adjust/index.d.ts:148:56 - error TS1183: An implementation cannot be declared in ambient contexts.
148 public setCallbackId(callbackId: string): void { }
~
node_modules/react-native-adjust/index.d.ts:151:27 - error TS1254: A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.
151 export const Adjust = {
~
152 componentWillUnmount: (): void => { },
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
174 setReferrer: (referrer: string): void => { },
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
175 };
~~~~~
node_modules/react-native-adjust/index.d.ts:152:43 - error TS1183: An implementation cannot be declared in ambient contexts.
152 componentWillUnmount: (): void => { },
~
node_modules/react-native-adjust/index.d.ts:153:55 - error TS1183: An implementation cannot be declared in ambient contexts.
153 create: (adjustConfig: AdjustConfig): void => { },
~
node_modules/react-native-adjust/index.d.ts:154:57 - error TS1183: An implementation cannot be declared in ambient contexts.
154 trackEvent: (adjustEvent: AdjustEvent): void => { },
~
node_modules/react-native-adjust/index.d.ts:155:49 - error TS1183: An implementation cannot be declared in ambient contexts.
155 setEnabled: (enabled: boolean): void => { },
~
node_modules/react-native-adjust/index.d.ts:156:68 - error TS1183: An implementation cannot be declared in ambient contexts.
156 isEnabled: (callback: (enabled: boolean) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:157:53 - error TS1183: An implementation cannot be declared in ambient contexts.
157 setOfflineMode: (enabled: boolean): void => { },
~
node_modules/react-native-adjust/index.d.ts:158:48 - error TS1183: An implementation cannot be declared in ambient contexts.
158 setPushToken: (token: string): void => { },
~
node_modules/react-native-adjust/index.d.ts:159:48 - error TS1183: An implementation cannot be declared in ambient contexts.
159 appWillOpenUrl: (url: string): void => { },
~
node_modules/react-native-adjust/index.d.ts:160:40 - error TS1183: An implementation cannot be declared in ambient contexts.
160 sendFirstPackages: (): void => { },
~
node_modules/react-native-adjust/index.d.ts:161:76 - error TS1183: An implementation cannot be declared in ambient contexts.
161 addSessionCallbackParameter: (key: string, value: string): void => { },
~
node_modules/react-native-adjust/index.d.ts:162:75 - error TS1183: An implementation cannot be declared in ambient contexts.
162 addSessionPartnerParameter: (key: string, value: string): void => { },
~
node_modules/react-native-adjust/index.d.ts:163:64 - error TS1183: An implementation cannot be declared in ambient contexts.
163 removeSessionCallbackParameter: (key: string): void => { },
~
node_modules/react-native-adjust/index.d.ts:164:63 - error TS1183: An implementation cannot be declared in ambient contexts.
164 removeSessionPartnerParameter: (key: string): void => { },
~
node_modules/react-native-adjust/index.d.ts:165:53 - error TS1183: An implementation cannot be declared in ambient contexts.
165 resetSessionCallbackParameters: (): void => { },
~
node_modules/react-native-adjust/index.d.ts:166:52 - error TS1183: An implementation cannot be declared in ambient contexts.
166 resetSessionPartnerParameters: (): void => { },
~
node_modules/react-native-adjust/index.d.ts:167:35 - error TS1183: An implementation cannot be declared in ambient contexts.
167 gdprForgetMe: (): void => { },
~
node_modules/react-native-adjust/index.d.ts:168:62 - error TS1183: An implementation cannot be declared in ambient contexts.
168 getIdfa: (callback: (idfa: string) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:169:68 - error TS1183: An implementation cannot be declared in ambient contexts.
169 getGoogleAdId: (callback: (adid: string) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:170:62 - error TS1183: An implementation cannot be declared in ambient contexts.
170 getAdid: (callback: (adid: string) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:171:87 - error TS1183: An implementation cannot be declared in ambient contexts.
171 getAttribution: (callback: (attribution: AdjustAttribution) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:172:68 - error TS1183: An implementation cannot be declared in ambient contexts.
172 getAmazonAdId: (callback: (adid: string) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:173:74 - error TS1183: An implementation cannot be declared in ambient contexts.
173 getSdkVersion: (callback: (sdkVersion: string) => void): void => { },
~
node_modules/react-native-adjust/index.d.ts:174:50 - error TS1183: An implementation cannot be declared in ambient contexts.
174 setReferrer: (referrer: string): void => { },
~
Found 57 errors.
I am running in debug mode on the iOS emulated, I have already reinstalled the app, installed pod install, reinstalled dependencies and got no results.
can anybody help me? I recently closed the contract.
Steps:
install dependence with: yarn add react-native-adjust --save
Add line in Podfile: pod 'react-native-adjust', :path => '../node_modules/react-native-adjust'
Entrypoint.js file in my project add:
import { Adjust, AdjustConfig } from 'react-native-adjust';
and
const adjustConfig = new AdjustConfig('{multiplataformKey}', AdjustConfig.EnvironmentSandbox);
Adjust.create(adjustConfig);
componentWillUnmount() { // C
Adjust.componentWillUnmount();
}
LoginView.js add:
import { AdjustEvent } from 'react-native-adjust';
renderFacebookLogin = () => (
<Icon.Button
onPress={() => {
AdjustEvent(
'kmii48'
)
this.fbLogin
}}
>
"react-native-adjust": "^4.21.0",
"react": "16.9.0",
"react-native": "0.61.2",
Details about my MainApplication.java add:
...
import com.adjust.nativemodule.AdjustPackage;
...
private final ReactNativeHost mReactNativeHost =
new ReactNativeHost(this) {
@Override
protected String getJSBundleFile(){
return CodePush.getJSBundleFile();
}
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
packages.add(new CodePush(codePushKey, getApplicationContext(), BuildConfig.DEBUG));
packages.add(new RNFirebaseNotificationsPackage());
packages.add(new RNFirebaseMessagingPackage());
packages.add(new FBSDKPackage());
packages.add(new RNFirebaseCrashlyticsPackage());
packages.add(new RNFirebaseAnalyticsPackage());
packages.add(new RNFirebaseLinksPackage());
packages.add(new AdjustPackage());
return packages;
}
@Override
protected String getJSMainModuleName() {
return "index";
}
};
I had created this issue by mistake in the adjust-android repository:
adjust/android_sdk#442
I have tries to call getAdid function on constructor and after some delay as well. but it returns null.
Adjust.getAdid((adid) => {
console.log('getAdid: ' + adid);
});
Please help on when to call it to make sure, it returns adid?
Adjust.getGoogleAdId((googleAdId) => {
console.log("Google Ad Id = " + googleAdId);
});
returns always null
in log i see it
Parameters:
android_uuid 15699ad4-9df1-44a3-b3f7-ac73717c6d61
api_level 25
app_token 2fm9gkqubvpc
app_version 1.0
attribution_deeplink 1
callback_params {"scpk2":"scpv2"}
connectivity_type 1
country RU
cpu_type arm64-v8a
created_at 2020-05-28T10:07:11.461Z+0300
device_manufacturer Xiaomi
device_name Redmi 4X
device_type phone
display_height 1280
display_width 720
environment sandbox
event_buffering_enabled 0
event_count 1
event_token g3mfiw
gps_adid 119fe9c7-f7e1-420f-baae-eb1a31d6cad2
It'd be helpful if there were some instructions on how to ensure that once I've installed the SDK it is correctly reporting to Adjust.
Right now there are instructions to install the SDK and then there's a wall of text of additional things that need to be done specific to Android and iOS, but I don't even know if the basic install can communicate with Adjust.
After updating to 4.15.0, I'm getting this error:
No visible @interface for 'ADJEvent' declares the selector 'setCallbackId:'
in xcode.
It works well on iOS side, but I am getting error on Android.
settings.gradle
include ':react-native-adjust'
project(':react-native-adjust').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-adjust/android')
mainapplication.java
...
import com.adjust.nativemodule.AdjustPackage;
public class MainApplication extends ExpoApplication {
@OverRide
public boolean isDebug() {
return BuildConfig.DEBUG;
}
// Needed for react-native link
public List getPackages() {
return Arrays.asList(
// Add your own packages here!
// TODO: add native modules!
// Needed for `react-native link`
// new MainReactPackage(),
new VectorIconsPackage(),
new PinchPackage(),
new LinearGradientPackage(),
new RNIapPackage(),
new AdjustPackage()
);
}
...
// adjust sdk
const adjustConfig = new AdjustConfig (
ADJUST_APP_TOKEN,
AdjustConfig.EnvironmentProduction
);
Adjust.create (adjustConfig);
Hi, I added adjust sdk to my sample app , but the sdk_click request won't send from my app however , session and attribution requests are geting send:
export default class App extends Component{
_onPress() {
var adjustEvent = new AdjustEvent("03v1w4");
Adjust.trackEvent(adjustEvent);
Alert.alert("OK");
}
componentWillMount(){
var adjustConfig = new AdjustConfig("bwyeo7y07nlb", AdjustConfig.EnvironmentProduction);
Adjust.create(adjustConfig);
}
componentWillUnmount() {
Adjust.componentWillUnmount();
}
}
This is my App.js file , Is this anything wrong? (In documntiation mentioned that put this in index.android.js but in newer version of react native index.android.js is deleted)
Hi,
I was testing successful in the (android / ios Debug build + adjust sandbox environment)
=> reference : adjust/android_sdk#360
but, ( release build + adjust production environment + App Store beta version install ) is not working.
ex) * not release mode in store, only beta mode in store.
android : https://play.google.com/apps/testing/com.noahclient.dev
How to test Deferred Deeplinking in (android/ios) Release Build + adjust production environment?
If you've seen success in development environment, are you surely successful in the release environment?
ld: library not found for -lAdjust
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Since all existing Android apps have to support targetSDKVersion: 26
, ReactNative 0.56 updates the targetSDKVersion along with buildToolsVersion
as well. All libraries need to be updated to support at least buildToolsVersion 25. I would suggest matching it with versions set in ReactNative.
https://github.com/facebook/react-native/blob/v0.56.1/ReactAndroid/build.gradle#L249
Are there any plans to do this?
FYI, New apps deadline was August and any existing apps must update to targetSDKVersion 26 by November if they want to push any updates.
Using react-native-adjust v4.23.0.
Universal links are working fine on iOS. Both deeplinking and deferred deeplinking is working as expected on Android. Our problem is only with deferred deeplinking on iOS.
Have following the instructions here several times without success: https://help.adjust.com/en/article/direct-links-for-ios#as-a-new-user.
I am calling the following methods:
adjustConfig.setShouldLaunchDeeplink(true)
adjustConfig.setDeferredDeeplinkCallbackListener(deeplink => {
// never gets called
})
Adjust.create(adjustConfig)
I have some questions:
app scheme
necessary and is it necessary to implement this in the app for deferred deeplinking to work on iOS? I have attempted to add this in Xcode although it has caused the initialization time of the app to increase.AppDelegate.m
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler
{
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}
But as I said, with this universal linking is working when the app is installed.
Hi,
Not sure if this is the best place, but in trying to use your sdk, I can't compile on Android and get this DexException:
Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api/zzf;
From this build error (top bit for context):
:app:transformClassesWithDexForRelease
Running dex as a separate process.
To run dex in process, the Gradle daemon needs a larger heap.
It currently has 1024 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to at least 1536 MB.
To do this set org.gradle.jvmargs=-Xmx1536M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
AGPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api/zzf;","sources":[{}],"original":"UNEXPECTED TOP-LEVEL EXCEPTION:\ncom.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/common/api/zzf;\n\tat com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:591)\n\tat com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:546)\n\tat com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:528)\n\tat com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164)\n\tat com.android.dx.merge.DexMerger.merge(DexMerger.java:188)\n\tat com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:504)\n\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)\n\tat com.android.dx.command.dexer.Main.run(Main.java:277)\n\tat com.android.dx.command.dexer.Main.main(Main.java:245)\n\tat com.android.dx.command.Main.main(Main.java:106)\n","tool":"Dex"}
:app:transformClassesWithDexForRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 36.108 secs
This error ONLY occurs when I add the compile 'com.google.android.gms:play-services-analytics:10.0.1'
line to the build gradle, comment it out and it goes away. I only add this because its required for this sdk as you specify in your README.
For context:
package.json
{
"name": "example",
"version": "0.5.0",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"android": "react-native run-android",
"rev": "adb reverse tcp:8081 tcp:8081",
"ios": "react-native run-ios --simulator='iPhone 7'",
"release:android": "cd android && ./gradlew assembleRelease && cd ..",
"cdapk": "cd android/app/build/outputs/apk",
"lint": "eslint .",
"test": "jest"
},
"dependencies": {
"base-64": "^0.1.0",
"chroma-js": "^1.2.1",
"eslint-plugin-react": "^6.3.0",
"lodash": "^4.16.4",
"moment": "^2.16.0",
"react": "~15.4.0-rc.4",
"react-native": "0.38.0",
"react-native-adjust": "^4.11.3",
"react-native-animatable": "^0.6.1",
"react-native-camera": "^0.4.1",
"react-native-dialogs": "0.0.19",
"react-native-fbsdk": "^0.4.0",
"react-native-fcm": "^2.5.5",
"react-native-image-picker": "^0.23.0",
"react-native-keyboard-aware-scroll-view": "^0.2.8",
"react-native-mimetype": "0.0.7",
"react-native-modal-picker": "0.0.16",
"react-native-navbar": "^1.5.4",
"react-native-popup-menu": "^0.7.5",
"react-native-router-flux": "^3.35.0",
"react-native-scrollable-tab-view": "0.6.0",
"react-native-search-bar": "^2.16.0",
"react-native-swiper": "^1.5.4",
"react-native-tabs": "^1.0.9",
"react-native-vector-icons": "^3.0.0",
"react-native-version-number": "^0.1.2",
"react-redux": "^4.4.5",
"realm": "^0.14.3",
"redux": "^3.6.0",
"redux-logger": "^2.6.1",
"redux-saga": "^0.12.1",
"z-schema": "^3.18.0"
},
"devDependencies": {
"babel-jest": "17.0.2",
"babel-preset-react-native": "1.9.0",
"eslint": "^3.6.1",
"eslint-plugin-react": "^6.3.0",
"jest": "17.0.3",
"jest-react-native": "17.0.3",
"react-test-renderer": "~15.4.0-rc.4",
"redux-devtools": "^3.3.1",
"remote-redux-devtools": "^0.5.1"
},
"jest": {
"preset": "react-native"
}
}
build.gradle
apply plugin: "com.android.application"
import com.android.build.OutputFile
/**
* The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
* and bundleReleaseJsAndAssets).
* These basically call `react-native bundle` with the correct arguments during the Android build
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
* bundle directly from the development server. Below you can see all the possible configurations
* and their defaults. If you decide to add a configuration block, make sure to add it before the
* `apply from: "../../node_modules/react-native/react.gradle"` line.
*
* project.ext.react = [
* // the name of the generated asset file containing your JS bundle
* bundleAssetName: "index.android.bundle",
*
* // the entry file for bundle generation
* entryFile: "index.android.js",
*
* // whether to bundle JS and assets in debug mode
* bundleInDebug: false,
*
* // whether to bundle JS and assets in release mode
* bundleInRelease: true,
*
* // whether to bundle JS and assets in another build variant (if configured).
* // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
* // The configuration property can be in the following formats
* // 'bundleIn${productFlavor}${buildType}'
* // 'bundleIn${buildType}'
* // bundleInFreeDebug: true,
* // bundleInPaidRelease: true,
* // bundleInBeta: true,
*
* // the root of your project, i.e. where "package.json" lives
* root: "../../",
*
* // where to put the JS bundle asset in debug mode
* jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
*
* // where to put the JS bundle asset in release mode
* jsBundleDirRelease: "$buildDir/intermediates/assets/release",
*
* // where to put drawable resources / React Native assets, e.g. the ones you use via
* // require('./image.png')), in debug mode
* resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
*
* // where to put drawable resources / React Native assets, e.g. the ones you use via
* // require('./image.png')), in release mode
* resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
*
* // by default the gradle tasks are skipped if none of the JS files or assets change; this means
* // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
* // date; if you have any other folders that you want to ignore for performance reasons (gradle
* // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
* // for example, you might want to remove it from here.
* inputExcludes: ["android/**", "ios/**"],
*
* // override which node gets called and with what additional arguments
* nodeExecutableAndArgs: ["node"]
*
* // supply additional arguments to the packager
* extraPackagerArgs: []
* ]
*/
apply from: "../../node_modules/react-native/react.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
* - An APK that only works on x86 devices
* The advantage is the size of the APK is reduced by about 4MB.
* Upload all the APKs to the Play Store and people will download
* the correct one based on the CPU architecture of their device.
*/
def enableSeparateBuildPerCPUArchitecture = false
/**
* Run Proguard to shrink the Java bytecode in release builds.
*/
def enableProguardInReleaseBuilds = false
android {
compileSdkVersion 24
buildToolsVersion "24.0.1"
defaultConfig {
applicationId "example.app"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
ndk {
abiFilters "armeabi-v7a", "x86"
}
//multiDexEnabled true
}
//dexOptions {
// preDexLibraries = false
//}
signingConfigs {
release {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include "armeabi-v7a", "x86"
}
}
buildTypes {
release {
minifyEnabled enableProguardInReleaseBuilds
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
def versionCodes = ["armeabi-v7a":1, "x86":2]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
}
}
}
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
compile project(':react-native-adjust')
compile project(':react-native-version-number')
compile project(':react-native-fcm')
compile project(':react-native-fbsdk')
compile project(':react-native-dialogs')
compile project(':react-native-image-picker')
compile project(':react-native-camera')
compile project(':realm')
compile project(':react-native-vector-icons')
compile 'com.google.firebase:firebase-core:10.0.1' //this decides your firebase SDK version
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile 'com.google.android.gms:play-services-analytics:10.0.1'
}
// Run this once to be able to run the application with BUCK
// puts all compile dependencies into folder libs for BUCK to use
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
When we set a revenue and trackingId, the revenue is listed on dashboard but not the event.
When I run the application in Debug mode i have an instant crash in node_modules/react-native-adjust/index.js
@ line number 15
.
The issue seems to be this line. It works fine in release/staging but debug seems not functional.
module_adjust_emitter = new NativeEventEmitter(NativeModules.AdjustEventEmitter);
This issue is with ios.
I'm currently working on an app using React Native Navigation and am having some trouble with your integration instructions.
The instructions say to use ComponentWillMount
and ComponentWillUnmount
in index.js
. However React Native Navigation doesn't have a root component for those to be used in.
Do you have a recommended way to use your SDK with React Native Navigation?
Release build fails when using targetSdkVersion = 27.
/workspace/pocs/adjustPoc/android
โ ./gradlew assembleRelease
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Configure project :react-native-adjust
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
bundle: Writing bundle output to: /Users/v.reis/workspace/pocs/adjustPoc/android/app/build/generated
/assets/react/release/index.android.bundle
bundle: Done writing bundle output
error: invalid file path '/Users/v.reis/workspace/pocs/adjustPoc/node_modules/react-native-adjust/an
droid/build/intermediates/manifests/aapt/release/AndroidManifest.xml'.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-adjust:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
./android/build.gradle
edit the following section asbuildscript {
ext {
buildToolsVersion = "27.0.3"
minSdkVersion = 17
compileSdkVersion = 27
targetSdkVersion = 27
supportLibVersion = "27.1.1"
}
We are unable to release new versions because of this behaviour...
Hey guys, the npm
& react-native link
install in the readme didn't quite fly on my environment.
similar issue: #34
I got the native module cannot be null right off the bat. After debugging I noticed the native module was missing and assumed it to be a config/install/link error.
After that I tried doing pods but it messed the whole thing up. ๐ค
Currently rolled back to a stable state and will try again tomorrow.
if I add the package thru npm, it doesn't depend on pods in any way, right? I tried linking manually but didn't see a .framework listed in xcode ๐ค
Any help is appreciated.
npm v6.4.1
node v11.3.0
"dependencies": {
"@expo/react-native-action-sheet": "1.0.2",
"babel-plugin-transform-decorators-legacy": "1.3.4",
"babel-plugin-transform-remove-console": "6.8.5",
"bugsnag-react-native": "2.7.0",
"ethereum-regex": "1.1.3",
"immutability-helper": "2.4.0",
"instabug-reactnative": "8.0.12",
"lodash": "4.17.4",
"moment": "2.18.1",
"numeral": "2.0.6",
"re-reselect": "1.0.1",
"react": "16.0.0",
"react-native": "0.51.0",
"react-native-adjust": "4.17.0",
"react-native-android-keyboard-adjust": "1.1.1",
"react-native-camera": "1.1.2",
"react-native-charts-wrapper": "0.4.3",
"react-native-device-info": "0.21.5",
"react-native-fbsdk": "0.7.0",
"react-native-gesture-recognizers": "git://[email protected]:rdy/react-native-gesture-recognizers.git",
"react-native-iphone-x-helper": "1.0.2",
"react-native-keyboard-aware-scroll-view": "0.5.0",
"react-native-keyboard-manager": "4.0.13-5",
"react-native-linear-gradient": "2.4.0",
"react-native-masked-text": "1.6.4",
"react-native-mixpanel": "git://[email protected]:gabrieletondi/react-native-mixpanel.git",
"react-native-onesignal": "3.0.7",
"react-native-popup-menu": "0.12.2",
"react-native-qrcode-scanner": "1.0.1",
"react-native-safe-area-view": "0.6.0",
"react-native-size-matters": "0.1.0",
"react-native-splash-screen": "3.1.1",
"react-native-swipeout": "2.3.1",
"react-native-touch-id": "4.0.3",
"react-native-vector-icons": "4.4.0",
"react-native-walkthrough-tooltip": "0.2.0",
"react-native-xml2js": "1.0.3",
"react-navigation": "1.0.0-beta.13",
"react-redux": "5.0.5",
"redux": "3.7.1",
"redux-actions": "2.2.1",
"redux-saga": "0.15.4",
"redux-storage": "4.1.2",
"redux-storage-decorator-debounce": "1.1.3",
"redux-storage-decorator-filter": "1.1.8",
"redux-storage-engine-reactnativeasyncstorage": "1.0.5",
"reselect": "3.0.1",
"socket.io": "2.0.3",
"validate.js": "0.12.0",
"why-did-you-update": "0.1.0"
},
"devDependencies": {
"@storybook/addon-actions": "3.2.10",
"@storybook/addon-links": "3.2.10",
"@storybook/react-native": "3.2.10",
"babel-eslint": "7.1.0",
"babel-jest": "18.0.0",
"babel-preset-react-native": "2.0.0",
"eslint": "3.9.1",
"eslint-config-airbnb": "12.0.0",
"eslint-plugin-flowtype": "2.25.0",
"eslint-plugin-import": "1.16.0",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-react": "6.6.0",
"flow-bin": "0.45.0",
"jest": "21.2.1",
"prop-types": "15.6.0",
"react-dom": "16.0.0-alpha.12",
"react-test-renderer": "15.4.2"
This lib is missing typings. After taking a quick peek at the source, it seems like it would be pretty easy to add given how straightforward the API is.
Hi. Deferred deep linking doesn't launch the URL by default on android.
We use deferred deep linking and default setShouldLaunchDeeplink should be true.
Steps:
Result:
On android URL isnt opened in browser.
On ios URL is opened in safari as expected.
react-native-adjust 4.17.0.
Hello,
It's unclear from the README which version of the Adjust native library is used with this package.
Adjust SDK version 2 (V2) is being sunset on May 15th. So would like confirmation that react-native-sdk is including a more recent version if possible.
Thanks a lot.
Running a project with either react-native run-ios
or react-native run-android
the following message appears:
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:
- react-native-adjust (to unlink run: "react-native unlink react-native-adjust")
This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink <dependency>" and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.
Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md
On the README section it's stated that react-native link
is still needed.
Hello,
I tried to install your react-native sdk on iOS, but i encountered some issues on both of your solutions.
with RN link:
Scanning folders for symlinks in /Users/***/***/node_modules (15ms)
rnpm-install info Android module react-native-adjust is already linked
rnpm-install info Linking react-native-adjust ios dependency
rnpm-install ERR! Something went wrong while linking. Error: Cannot read property 'match' of undefined
Please file an issue here: https://github.com/facebook/react-native/issues
with CocoaPods:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/***/***/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-adjust.build/Objects-normal/x86_64/AdjustEventEmitter.o /Users/***/***/node_modules/react-native-adjust/ios/AdjustEventEmitter.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/***.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/***.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Environment:
OS: macOS High Sierra 10.13.2
Node: 9.2.1
Yarn: 1.7.0
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.51.0 => 0.51.0
Best regards.
I think index.d.ts is missing a type declaration for AdjustConfig deactivateSKAdNetworkHandling.
I don't see any instructions in the README about how to remove the library. I removed the Podfile code and thought that was all that is needed. Now I still have a bunch of references in my .pbxproj
file.
The SDK Build Tools revision (23.0.1) is too low for project ':react-native-adjust'. Minimum required is 25.0.0.
package.json
"react-native-adjust": "4.13.0",
MainApplication.java
import com.adjust.nativemodule.AdjustPackage;
main build.gradle
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
defaultConfig {
applicationId 'com.otcme.otcme'
targetSdkVersion 25
versionCode 1
versionName '1.0.10'
ndk {
abiFilters 'armeabi-v7a', 'x86'
}
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
// Deprecated. Used by net.openid:appauth
manifestPlaceholders = [
'appAuthRedirectScheme': 'host.exp.exponent'
]
...
dependencies {
...
compile project(':react-native-adjust')
...
What am I missing?
Hi team,
We integrated our react-native application (for Android and iOS) with Facebook SDK and Adjust.
Integration with Adjust was done according to instruction from https://github.com/adjust/react_native_sdk.
After adding the following line into build.gradle:
compile 'com.google.android.gms:play-services-analytics:9.8.0'
application on Android 4.0 - 4.4 started fails with the following exception:
Caused by java.lang.NoClassDefFoundError
com.facebook.FacebookSdk.ย (FacebookSdk.java:83)
meanwhile Android 5.0 and higher versions works fine.
Without the line above app works fine for all Android versions. Seems that Adjust also track custom events without 'play-services-analytics'.
Do you have any ideas why exception is thrown? And if we just remove 'play-services-analytics', will Adjust work appropriately (for tracking custom events)?
App has the following RN dependencies:
If you need any additional information, please let me know.
Thanks in advance
Best regards,
Vasiliy
The example adjust specific links I use to test deferred deeplinking:
[](https://app.adjust.com/?deep_link=https%3A%2F%2Fqa-brandsforless.bfl.dev%2Fen-ae%2Frobot-triceratops-tee%2F999%2Fp%2F)
[](https://app.adjust.com/?deep_link=https%3A%2F%2Fqa-brandsforless.bfl.dev%2Fen-ae%2Fwomen%2Fclothing%2Fbodysuit%2F).
Step to repro:
deep_link
url as an Adjust callback. But it do not.Add opportunity to set baseUrl and gdprUrl in javascript code.
That is what I mean.
Do Expo/CRNA apps need to be ejected to use this sdk?
Adjust 4.17 changed the compile keyword in build.gradle to implementation. That should have been changed to api not implementation. Our react native project no longer compile after upgrading from 4.15 to 4.17. Locally patching the package to use api resolves the issue.
This was from:
Adjust.create() fails due to
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI isEqualToString:]: unrecognized selector sent to instance 0x112018800'
when accessing pushToken
here.
It works if comment out this line on iOS module side.
I'm Wondering invalid value is saved or failed to get value via UserDefaults.
How to deal with this issue?
react-native info:
System:
OS: macOS 10.15
CPU: (6) x64 Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
Memory: 5.20 GB / 40.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
Yarn: 1.19.1 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 28, 29
Build Tools: 28.0.3, 29.0.1
System Images: android-29 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5977832
Xcode: 11.2.1/11B500 - /usr/bin/xcodebuild
npmPackages:
react: 16.9.0 => 16.9.0
react-native: 0.61.5 => 0.61.5
In China, whether you will file the domain name, or will be restricted access, such as WeChat on
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.