adaptyteam / adaptysdk-react-native Goto Github PK
View Code? Open in Web Editor NEWReact Native SDK for growing in-app subscriptions
Home Page: https://docs.adapty.io/docs/quickstart
License: MIT License
React Native SDK for growing in-app subscriptions
Home Page: https://docs.adapty.io/docs/quickstart
License: MIT License
Module '"react-native-adapty"' has no exported member 'AdaptyError'.ts(2305)
According to https://docs.adapty.io/docs/react-native-making-purchases it should be useable.
Hi Adapty,
I updated "react-native" from 0.63.5 to 0.71.3 and "react-native-adapty" from 1.3.8 to 2.3.5 (also tried 2.3.2).
And now android build fails with "Could not find com.adapty.internal:crossplatform:2.3" error.
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
> Could not find com.adapty.internal:crossplatform:2.3.
Searched in the following locations:
- https://oss.sonatype.org/content/repositories/snapshots/com/adapty/internal/crossplatform/2.3/crossplatform-2.3.pom
- https://repo.maven.apache.org/maven2/com/adapty/internal/crossplatform/2.3/crossplatform-2.3.pom
- file:/Users/maria/neurocog-app/node_modules/jsc-android/dist/com/adapty/internal/crossplatform/2.3/crossplatform-2.3.pom
- https://dl.google.com/dl/android/maven2/com/adapty/internal/crossplatform/2.3/crossplatform-2.3.pom
- https://www.jitpack.io/com/adapty/internal/crossplatform/2.3/crossplatform-2.3.pom
Required by:
project :app > project :react-native-adapty
I really loved this nice SDK, but when I want to buy products I get this error ...
Device -> Mi 6 Android 10
React-Native -> 0.63.4
My Code:
<SPListItem
onPressed={() => {
async function buyItem() {
try {
const {paywalls, products} = await adapty.paywalls.getPaywalls(
{ forceUpdate: true }
);
console.log('Income_Paywalls->',paywalls);
console.log('Income_products->',products);
const {receipt,purchaserInfo, product} = await adapty.purchases.makePurchase(paywalls[0].products[0]);
console.log('receipt',receipt);
console.log('purchaserInfo',purchaserInfo);
console.log('product',product);
} catch (e) {
console.warn('ERROR',e)
}
}
buyItem();
}}
...
Income_Paywalls:
[
{
"abTestName": "Remove Ads",
"developerId": "remove_ads",
"isPromo": false,
"name": "Remove Ads",
"products": [
[object]
],
"revision": 1,
"variationId": "678f1495-9422-4b4c-845b-6b..."
}
]
Income_products:
[
{
"introductoryOfferEligibility": true,
"promotionalOfferEligibility": true,
"title": "Remove Ads",
"vendorProductId": "adless_package"
}
]
Error output:
{
"adaptyCode": "paymentCancelled",
"code": 42183376,
"localizedDescription": "Product type is null"
}
I've updated react-native to 0.69.1 and after that the pod is removed. if i build the app i get this error:
warn Package react-native-adapty has been ignored because it contains invalid configuration. Reason: "dependency.assets" is not allowed
diff --git a/node_modules/react-native-adapty/react-native.config.js b/node_modules/react-native-adapty/react-native.config.js
index f807944..f023cfe 100644
--- a/node_modules/react-native-adapty/react-native.config.js
+++ b/node_modules/react-native-adapty/react-native.config.js
@@ -6,7 +6,6 @@ module.exports = {
sourceDir: './lib/android/',
},
},
- assets: [],
},
project: {
ios: {
Context:
After Updating to this version, I get this error and no events are being sent to AppsFlyer.
await adapty.updateAttribution(
installData,
AttributionSource.AppsFlyer,
appsFlyerID,
);
Already did the required changes to report the events as per the new docs.
This is what we have in installData:
{"data": {"af_message": "organic install", "af_status": "Organic", "install_time": "2023-02-27 10:50:08.974", "is_first_launch": false}, "status": "success", "type": "onInstallConversionDataLoaded"}
It started happening after the update. Can you please check? Thanks!
Google Play RTDN is working fine, and I am able to see the events with no noticeable delay in Adapty (web) Event Feed. The listener however is not returning anything. Adapty is initialized correctly, and subscription purchase made through the paywall. No updated profile received through the listener when purchase is made or cancelled.
useEffect(() => {
if (userId) {
console.log('activating adapty :', userId)
adapty.activate('***', { customerUserId: userId })
.then(() => getSubStatus()
.then((sub) => setSub(sub))
)
.catch((e) => console.error('Unable to activate adapty:', e.message)
)
adapty.addEventListener('onLatestProfileLoad', profile => {
console.log('adapty sub listener incoming:', profile);
setSub(profile.accessLevels?.premium);
});
}
return adapty.removeAllListeners()
}, [userId]);
v2.4.0
Android
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22621
CPU: (16) x64 AMD Ryzen 7 4800U with Radeon Graphics
Memory: 2.79 GB / 15.37 GB
Binaries:
Node: 18.1.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.19.2 - ~\AppData\Roaming\npm\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions: 10.0.17763.0, 10.0.19041.0
IDEs:
Android Studio: Not Found
Visual Studio: Not Found
Languages:
Java: 11.0.2
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.6 => 0.69.6
react-native-windows: Not Found
npmGlobalPackages:
*react-native*: Not Found
info React Native v0.71.4 is now available (your project is running on v0.69.6).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.71.4.
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.69.6.
info To upgrade, run "react-native upgrade".
Hey!
I just noticed that the promise returned by adapty.paywalls.logShow
never resolves.
I don't really know Swift, but it seems that resolve
should be called at some point here:
AdaptySDK-React-Native/lib/ios/RNAdapty.swift
Lines 160 to 168 in 6f35e2f
I understand that there is ongoing work to make v2 of RN SDK (that would use v2 of iOS SDK), so if it's fixed there, maybe the fix in v1 isn't really needed.
Subscriptions, such as cancellation and auto-renewal, work perfectly fine. The emails are correct. As mentioned in the Google's documentation. The problem is that we have configured a free trial period. But so far, the free trial period couldn't be tested because it doesn't appear in the playstore's payment modal.
All subscriptions and free trials are active.
We have detected that when the user, without being a tester and without being added in the license tester, tries to pay the subscription for the first time, the trial period appears only if the credit or debit card has not been added yet.
Once the card is added, the free trial period disappears from the modal. Just only the information to make a normal subscription appears.
In addition, during the tests, with the test users, the emails indicating that there was a free trial period never arrived.
Can anyone help me with this? Does this ever happen to you? Thanks!
Hello @divanc,
I want to know how should we handle the iOS family sharing properly. I could not find much on the adapty documentation.
All I can find is this link:
https://docs.adapty.io/docs/sdk-models#adaptypaywallproduct
and it has only one field explanation:
isFamilyShareable (iOS only)
I want to know that can we trust the adapty.getProfile()
to handle the premium access all the time when the family sharing is active?
Or should I check somewhat to activate the premium on my app for family shared users?
Thank you :)
I am using version 2.3.0
of react-native-adapty
library in my app. I have observed that even though different users with different userUIDs are logging in, the subscription details are the same for all users.
Here's my implementation for setting up the userUID for adapty:
// Setting up user identifier for adapty
adapty
.identify(payload?.userInfo.userUID)
.catch(error =>
console.error('Adapty identification error: ', error),
);
I set up this everytime user logs in.
And, this is the code to check the payment status of a user:
const secret_token = ADAPTY_SECRET_TOKEN;
const response = await axios.get(
`https://api.adapty.io/api/v1/sdk/profiles/${ownerID}/`,
{
headers: {
Authorization: `Api-Key ${secret_token}`,
},
},
);
const data = response.data;
return data?.data;
I am also calling the await adapty.logout()
method when a user logs out, but still the payment status is not being updated for different users.
When I call const profile = await adapty.getProfile();
, I am seeing that profileId
and customerUserId
are different but vendorTransactionId
is same. Btw, I am using Sandbox to make purchases.
The subscription details should be updated and different for different users, depending on their user ids.
Even though different users with different userUIDs are logging in, the subscription details are the same for all users.
react-native-adapty version: 2.3.0
Platform: [React Native | iOS]
Hello,
Platform: Android
React-Native Version: 0.66.3
it's example app code:
const fetchPaywalls = async() => { try { const result = await adapty.paywalls.getPaywalls(); setPaywalls(result.paywalls); setResponse({ functionCalled: 'Collect paywalls', response: result, }); } catch (error) { alert(error); setResponse({ functionCalled: 'Collect paywalls', response: error, isError: true, }); } }
When i run this code in debug mode it's work but in release mode i have an error
Error
TypeError: Cannot read property 'map' of undefined
Can you help me please ?
Dependencies
"react-native-adapty": "^1.4.0",
"react": "18.1.0",
"react-native": "0.70.0",
Kotlin version (it's worked on adapty v1.3.13)
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
Error message
> Task :lottie-react-native:compileDebugJavaWithJavac
> Task :notifee_react-native:compileDebugJavaWithJavac
> Task :react-native-adapty:compileDebugKotlin FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
402 actionable tasks: 382 executed, 20 up-to-date
Note: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/react-native-adapty/lib/android/src/main/java/com/rnadapty/react/models/AdaptyRNError.kt: (18, 75): Cannot access 'value': it is internal in 'AdaptyErrorCode'
e: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/react-native-adapty/lib/android/src/main/java/com/rnadapty/react/models/AdaptyRNError.kt: (46, 37): Cannot access 'value': it is internal in 'AdaptyErrorCode'
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-adapty:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUİLD FAILED in 29s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/react-native-adapty/lib/android/src/main/java/com/rnadapty/react/models/AdaptyRNError.kt: (18, 75): Cannot access 'value': it is internal in 'AdaptyErrorCode'
e: /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/react-native-adapty/lib/android/src/main/java/com/rnadapty/react/models/AdaptyRNError.kt: (46, 37): Cannot access 'value': it is internal in 'AdaptyErrorCode'
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-adapty:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUİLD FAILED in 29s
at makeError (/Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/execa/index.js:174:9)
at /Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/huseyintamer/Desktop/Hiface/Software/Hiface/node_modules/@react-native-community/cli/build/index.js:142:9)
I look forward to your help, thank you.
Hello there, I am trying to do the installation with expo, and currently I have one question and one error.
I am using windows with wsl and these are my dependencies:
{
"@react-navigation/native": "^6.1.4",
"@react-navigation/native-stack": "^6.9.12",
"axios": "^1.3.3",
"expo": "~47.0.12",
"expo-dev-client": "~2.0.1",
"expo-linear-gradient": "~12.0.1",
"expo-splash-screen": "~0.17.5",
"expo-status-bar": "~1.4.2",
"react": "18.1.0",
"react-native": "0.70.5",
"react-native-adapty": "^2.3.13",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-linear-gradient": "^2.6.2",
"react-native-paper": "^5.2.0",
"react-native-reanimated": "~2.12.0",
"react-native-safe-area-context": "4.4.1",
"react-native-screens": "~3.18.0",
"react-native-typewriter": "^0.7.0",
"react-native-vector-icons": "^9.2.0"
}
install react-native-adapty
and run expo start
2.1. When I follow the instructions, I have this build error:
2.2. When I try to do install react-native-adapty
and then expo start
The docs give this solution to the problem, but I don't understand why this would solve the problem
Upgraded to v2.2.0 and I'm unable to fetch products from any of the paywalls I've created.
try {
const paywall = await adapty.getPaywall(id);
const products = await adapty.getPaywallProducts(paywall);
return products;
} catch (error) {
console.log(error)
}
adapty.getPaywallProducts
throws this error: [SyntaxError: JSON Parse error: Unexpected identifier "AdaptyProductCoder"]
It's throwing the error when it tries to run tryDecode
–>Coder.AdaptyProductCoder.tryDecode(product)
on this logic:
var subscriptionPeriodRaw = data['subscription_period'];
if (!subscriptionPeriodRaw) {
throw this.errRequired('subscriptionPeriod');
}
The product is missing the key subscription_period
since it's a paywall for consumable products and not subscription products
How do I go about fixing this? Thanks!
Hello Adapty team,
Thanks for React Native SDK. I found that this wrapper implicitly mutates native Product object model: the 'localizedPrice' field is replaced by the 'price' field's value and the latter is removed.
if (product.hasOwnProperty('price')) {
product.localizedPrice = product.price;
delete product.price;
}
Could you please explain why is this mutation needed and is there a possibility to retrieve the original 'localizedPrice' value? Thanks in advance.
Hi Adapty,
I just spotted in the changelog that 1.4.0 includes a breaking change whereby users now need to run adapty.paywalls.logShow()
before calling a purchase method. I have a couple of questions:
Hey!
I just updated from v1 to v2.4.2 and I see the login screen pop up as soon as I call adapty.activate(config.ADAPTY_PUBLIC_KEY)
.
As in a simulator I would never be logged in, it's very annoying. Not sure about real users, but it's worrying. Never had this problem with v1.
v2.4.2
iOS
IDEs:
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
react: 18.1.0 => 18.1.0
react-native: 0.70.3 => 0.70.3
Hello 👋
I'd like to know if it's possible to use Adapty RN SDK with an app bootstrap with Expo, or only works with a native build?
Thanks for the feedback
Things I've already attempted:
Here's the logs
RUN_GRADLEW] > Task :react-native-adapty:compileDebugKotlin FAILED
[RUN_GRADLEW] e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
[RUN_GRADLEW] e: /home/rafael/.gradle/caches/transforms-3/2cfe106a332c6a6f2245988cf5920bcb/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] e: /home/rafael/.gradle/caches/transforms-3/8fa201288e2c6500b9e1af2f8ed9c77c/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] e: /home/rafael/.gradle/caches/transforms-3/b6d16718b0badf943a01bd505b26edc1/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] e: /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] e: /home/rafael/.gradle/caches/transforms-3/ef154a7ff5c9e83f423d62f01250b0da/transformed/jetified-react-native-0.70.5-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (23, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (24, 25): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (25, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (26, 37): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (27, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (28, 25): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (29, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (30, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (31, 33): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (32, 30): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (33, 34): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (34, 38): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (35, 30): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (36, 33): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (37, 35): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (38, 31): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (39, 25): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (44, 60): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (45, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (45, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (51, 22): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (52, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (59, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (60, 37): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (61, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (62, 35): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (63, 35): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (66, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (67, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (72, 51): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (73, 16): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (73, 27): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (80, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (80, 61): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (84, 79): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (85, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (85, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (88, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (88, 66): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (92, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (92, 49): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (96, 68): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (97, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (97, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (100, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (100, 59): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (104, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (104, 41): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (108, 54): Unresolved reference: HashMap
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (108, 98): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (109, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (109, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (112, 103): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (113, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (113, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (116, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (120, 29): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (125, 79): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (126, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (126, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (129, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (129, 58): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (133, 86): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (134, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (134, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (140, 23): Unresolved reference: let
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (141, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (142, 17): Unresolved reference: it
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (145, 37): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (150, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (150, 55): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (154, 71): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (155, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (155, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (158, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (158, 72): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (165, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (166, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (167, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (169, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (174, 65): Unresolved reference: takeIf
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (174, 102): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (175, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (175, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (177, 61): Unresolved reference: takeIf
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (177, 98): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (178, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (178, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (181, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (181, 77): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (187, 52): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (188, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (188, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (191, 91): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (192, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (192, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (197, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (197, 81): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (201, 94): Unresolved reference: run
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (202, 13): 'return' is not allowed here
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (202, 24): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (205, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (205, 63): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (213, 22): Not enough information to infer type variable T
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (214, 67): Unresolved reference: java
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (219, 16): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyCallHandler.kt: (220, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (19, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (20, 40): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (20, 62): Unresolved reference: let
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (21, 38): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (26, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (29, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (33, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (37, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (40, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (43, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (46, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (51, 39): Unresolved reference: takeIf
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyContext.kt: (52, 48): Unresolved reference: java
[RUN_GRADLEW] e: /tmp/rafael/eas-build-local-nodejs/28b2aa46-6cd8-4808-85fc-94d4984b1e61/build/node_modules/react-native-adapty/lib/android/src/main/kotlin/com/adapty/react/AdaptyReactModule.kt: (26, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.1.
[RUN_GRADLEW] The class is loaded from /home/rafael/.gradle/caches/transforms-3/d3fc290c9b603f2d0c573f31aa64957d/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
[RUN_GRADLEW] FAILURE: Build completed with 2 failures.
[RUN_GRADLEW] 1: Task failed with an exception.
[RUN_GRADLEW] -----------
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] Execution failed for task ':react-native-adapty:compileDebugKotlin'.
[RUN_GRADLEW] > Compilation error. See log for more details
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] 2: Task failed with an exception.
[RUN_GRADLEW] -----------
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] java.lang.StackOverflowError (no error message)
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] ==============================================================================
[RUN_GRADLEW] * Get more help at https://help.gradle.org
[RUN_GRADLEW] BUILD FAILED in 8m 10s
eas diagnostics
EAS CLI 3.5.2 environment info:
System:
OS: Linux 6.0 Pop!_OS 22.04 LTS
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.19.3 - ~/.nvm/versions/node/v16.19.0/bin/npm
Utilities:
Git: 2.34.1 - /usr/bin/git
npmPackages:
@expo/webpack-config: ^0.17.4 => 0.17.4
expo: ^47.0.13 => 47.0.13
expo-updates: ~0.15.6 => 0.15.6
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-web: ^0.18.12 => 0.18.12
npmGlobalPackages:
eas-cli: 3.5.2
Project workflow: generic
Please let me know if there are any other info I can provide.
Context:
After upgrading to latest version, I got this issue from Sentry, but I don't know how to fix:
node_modules/react-native-adapty/lib/dist/internal/bridgeError.js in BridgeError at line 10:40
var error_1 = require("../types/error");
var BridgeError = /** @class */ (function (_super) {
tslib_1.__extends(BridgeError, _super);
function BridgeError(data) {
var _this = this;
var errNative = JSON.parse(data['message']);
var adaptyCode = errNative['adapty_code'];
var detail = errNative['detail'];
var message = errNative['message'];
_this = _super.call(this, message || detail || adaptyCode) || this;
_this.adaptyCode = adaptyCode;
it threw the issue here:
var errNative = JSON.parse(data['message']);
A few seconds after requesting
const info = await adapty.purchases.getInfo({ forceUpdate: true });
and getting the expected result in info.
there is this error showing up in the log (logLevel: 'verbose',) every minutes
2022-05-22 19:09:51.091+0200 [Adapty v1.16.8(1)] - ERROR.
Error Domain=com.adapty.AdaptySDK Code=2003 "Bad request." UserInfo={NSLocalizedDescription=Bad request.}
2022-05-22 19:10:51.086+0200 [Adapty v1.16.8(1)] - ERROR.
Error Domain=com.adapty.AdaptySDK Code=2003 "Bad request." UserInfo={NSLocalizedDescription=Bad request.}
2022-05-22 19:11:51.240+0200 [Adapty v1.16.8(1)] - ERROR.
Error Domain=com.adapty.AdaptySDK Code=2003 "Bad request." UserInfo={NSLocalizedDescription=Bad request.}
2022-05-22 19:12:51.224+0200 [Adapty v1.16.8(1)] - ERROR.
Error Domain=com.adapty.AdaptySDK Code=2003 "Bad request." UserInfo={NSLocalizedDescription=Bad request.}
2022-05-22 19:13:51.115+0200 [Adapty v1.16.8(1)] - ERROR.
Error Domain=com.adapty.AdaptySDK Code=2003 "Bad request." UserInfo={NSLocalizedDescription=Bad request.}
Hello,
I followed the installation guide for expo, and got hit with the above error. No error encountered during package installation, expo development client build created. I couldn't find any documentation to troubleshoot further. Appreciate some help here.
[email protected] and Expo SDK 46
› npx expo install
Installing 1 other package using Yarn.
yarn add react-native-adapty
yarn add v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ [email protected]
info All dependencies
└─ [email protected]
Done in 14.88s.
after upgrade to react-native 0.67.1 and gradle 7, I get the following build error:
Where:
Build file '**/node_modules/react-native-adapty/lib/android/build.gradle' line: 23
What went wrong:
A problem occurred evaluating project ':react-native-adapty'.
Plugin with id 'maven' not found.
could you be so kind to update your build.gradle like mentioned in this link? https://docs.gradle.org/7.0/userguide/upgrading_version_6.html?_ga=2.21245883.1883799052.1624281891-1948725710.1624281891#removal_of_the_legacy_maven_plugin
thanks so much.
Project with react-native-adapty
integration can not be Archived to release and upload to the App Store.
I tested also with example app from this repo - the same result.
react-native-adapty=1.3.10
Build works, I can run it on the real device, but when trying to Archive in Xcode - getting the error:
Undefined symbols for architecture arm64:
"_swift_stdlib_isStackAllocationSafe", referenced from:
function signature specialization <Arg[1] = Owned To Guaranteed> of generic specialization <[Swift.String : Swift.String], [[Swift.String : Swift.String]]> of Swift._NativeSet.subtracting<A where A == A1.Element, A1: Swift.Sequence>(A1) -> Swift._NativeSet<A> in libAdapty.a(KinesisManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
It fails on the Linking stage
FAILURE: Build failed with an exception.
Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not resolve com.github.adaptyteam:AdaptySDK-Android:1.12.0.
Required by:
project :app > project :react-native-adapty
> Could not resolve com.github.adaptyteam:AdaptySDK-Android:1.12.0.
> Could not get resource 'https://jitpack.io/com/github/adaptyteam/AdaptySDK-Android/1.12.0/AdaptySDK-Android-1.12.0.pom'.
> Could not GET 'https://jitpack.io/com/github/adaptyteam/AdaptySDK-Android/1.12.0/AdaptySDK-Android-1.12.0.pom'. Received status code 521 from server:
package.json
......
"dependencies": {
"@react-native-community/cli-platform-android": "^10.0.0",
"react": "17.0.2",
"react-native": "0.68.2",
"react-native-adapty": "^1.4.1"
},
android/build.gradle
.......
`
allprojects {
repositories {
maven { url 'https://jitpack.io' } --????
}
}
`
.......
I'm on v2.2.1
I'm trying to buy the same consumable product more than once. The first time, the native ios buy popup sheet is displayed and I'm able to purchase through apple and everything works just fine. However, if I try to run makePurchase
again with the same product, the ios buy popup sheet doesn't display so I can't purchase it, and my adapty profile is returned without the new product purchase.
It feels like the makePurchase
call is almost cached based on the product identifier or something 🤷
Hello,
I'm trying to make purchase with method makePurchase which is given in examples on doc.
I'm getting this error SyntaxError: Unexpected token C in JSON at position 0.
you can see details below
try {
const { purchaserInfo, product } = await adapty.purchases.makePurchase(product);
}
catch (error) { console.log('makePurchase error', error); }
}
Get some errors after adding react-native-adapty (0.5.0) & Adapty (1.12.1) to project (iOS):
RNAdapty.swift:213:20: Cannot find 'MakePurchaseResult' in scope
RNAdapty.swift:241:20: Cannot find 'RestorePurchasesResult' in scope
RNAdapty.swift:272:20: Cannot find 'GetPaywallsResult' in scope
RNAdapty.swift:313:17: Global function 'encodeJson(from:)' requires that 'AdaptyError' conform to 'Encodable'
Cycle in dependencies between targets 'Adapty' and 'DoubleConversion'; building could produce unreliable results.
Cycle path: Adapty → CryptoSwift → FBSDKCoreKit → React → React-Core → boost-for-react-native → DoubleConversion → Adapty
Cycle details:
Target build order preserved because “Parallelize Build” is off
→ Target 'Adapty' has target dependency on Target 'CryptoSwift'
→ Target 'CryptoSwift' has compile command for Swift source files
→ Target 'FBSDKCoreKit' has target dependency on Target 'BVLinearGradient' due to target order in a “Target Dependencies” build phase or the scheme
→ Target 'React' has target dependency on Target 'React-Core'
→ Target 'React-Core' has target dependency on Target 'glog'
→ Target 'boost-for-react-native' has target dependency on Target 'DoubleConversion' due to target order in a “Target Dependencies” build phase or the scheme
→ Target 'DoubleConversion' has target dependency on Target 'Adapty' due to target order in a “Target Dependencies” build phase or the scheme
Hello,
We just upgraded to version 2.2.1
. We migrated to every function and new stuff.
import { adapty } from "react-native-adapty";
useEffect(() => {
(async () => {
await adapty.activate(ADAPTY_SDK_PUBLIC_KEY);
})();
}, []);
Here is my activation code on App.tsx
.
Each time it gives me the Error: #3005 (activateOnceError): You need to be activate Adapty once
and we do not call adapty.activate
else where for sure.
Even sometimes it gives #2002 (notActivated): The Adapty is not activated
but probably it is because of the development environment and stuff.
What should I do to fix this warning? It was all working great on the 1.3.13
version. I’m thinking to downgrade the version.
a bit more context:
await activateAdapty(AdaptyApiKey);
const profile = await adapty.purchases.getInfo();
const isSubscribed = profile.accessLevels.premium.isActive; // < -- error is here
* This function should be called before using an SDK.
* For more information about arguments look for an @interface AdaptyActivateArgs
*/
async function activateAdapty(props) {
const module = (0, utils_1.extractModule)(); // < -- this is returning undefined
const userId = props.customerUserId?.toString() || null;
const DEFAULT_LOG_LEVEL = 'none';
const logLevel = props.logLevel || DEFAULT_LOG_LEVEL;
const sdkKey = props.sdkKey;
if (!sdkKey) {
throw new error_1.AdaptyError({
adaptyCode: 'sdkNotActive',
code: 400,
localizedDescription: 'SDK private key was not passed',
});
}
Any clues?
Thanks!
Hi There,
I am facing the UNKNOWN_ERROR when fetching paywalls.
Any insights how to debug or get more meaningful output?
platform
iOS
code
const activate = await activateAdapty({
sdkKey: 'public_live_ my key ',
logLevel: "verbose"
});
try {
await adapty.paywalls.getPaywalls({ forceUpdate: true })
} catch (error) {
console.error(error)
}
output
ERROR
{"adaptyCode": "unknown", "code": 0, "localizedDescription": "UNKNOWN_ERROR"}
react-native info
System:
OS: macOS 11.4
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 397.40 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
Yarn: 1.22.10 - ~/.nvm/versions/node/v14.15.5/bin/yarn
npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm
Watchman: 2021.08.30.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK:
API Levels: 29, 30
Build Tools: 28.0.3, 29.0.2, 30.0.3
System Images: android-29 | Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: 1.8.0_282 - /usr/bin/javac
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.3 => 0.63.3
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
"react-native-adapty": "^1.0.3",
Hello!
If you go to the application without the Internet, and then turn it on, then Adapty cannot connect to the Internet.
Steps:
Repeated only in release build
Hello,
We are encountering an issue with Adapty 2.2.1 SDK after a successful subscription purchase in the sandbox. The purchase prompt appears and displays the message "you are all set," but we receive the following error:
[Error: #2003 (badRequest): Server error]"
Shared Secret is valid & updated. Could you please check issue on your side?
How are deferred purchases handled in RN? See https://docs.adapty.io/docs/ios-making-purchases#deferred-purchases
Hey!
Just 2 quick questions:
Thank you!
Hello there again, I have a small question, my app doesn't have a backend, Do I need to manage auth and save subscription status to enable/disable premium content?
Something big happpened! GitHub added issue forms in Beta and I just wanted to see how they work
v2.3.13
iOS, Android
System:
OS: macOS 13.2.1
CPU: (10) arm64 Apple M1 Max
Memory: 7.22 GB / 64.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.10.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.6.1 - /usr/local/bin/npm
Watchman: 2023.02.20.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/divan/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9014738
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.18 - /usr/bin/javac
Python: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ^0.63.0 => 0.63.5
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
At the moment the Github Release page does not match the NPM release page. Github shows v1.3.4 and NPM shows v1.3.13.
Please fix the release sytem so I can see what the changes are in the last 7 versions.
Hi there,
I'm trying to get the product using react native adapty.getPaywallProducts(paywall), and received the above error. I tried this on an Android emulator. I suppose it is not the issue because I have seen people running it on emulator.
try { const paywall = await adapty.getPaywall("default") console.log('paywall :', paywall) const product = await adapty.getPaywallProducts(paywall) console.log('product :', product) } catch (error) { console.error('paywall error :', error) // handle the AdaptyError }
getPaywall is successful from console.log output, but getPaywallProducts failed with the below error. I couldn't find anything about it in the documentation. Any idea?
Error: #103 (undefined): Play Market request failed: Billing service unavailable on device.
Hello, Some users get this error
Error: Non-Error exception captured with keys: adaptyCode, code, localizedDescription
at tracking.enable$argument_0.onUnhandled(node_modules/@sentry/react-native/dist/js/integrations/reactnativeerrorhandlers.js:77:57)
at onUnhandled(node_modules/promise/setimmediate/rejection-tracking.js:73:25)
at apply(native)
at setTimeout(node_modules/react-native/Libraries/Core/Timers/JSTimers.js:214:35)
at _callTimer(node_modules/react-native/Libraries/Core/Timers/JSTimers.js:114:15)
at callTimers(node_modules/react-native/Libraries/Core/Timers/JSTimers.js:357:30)
at apply(native)
at __callFunction(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:423:32)
at __guard$argument_0(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:113:43)
at __guard(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:366:7)
at callFunctionReturnFlushedQueue(node_modules/react-native/Libraries/BatchedBridge/MessageQueue.js:112:18)
Error detail in Sentry: https://sentry.io/share/issue/4031318580f440e4960e0687e23d3350/
Platform: Android
My dependecies
"react-native": "0.70.0",
"react": "18.1.0",
"react-native-adapty": "^1.3.13"
I'm look forward to your help, Thanks.
Hello!
After updating the SDK I started getting that "Unknown Adapty Error" where I used to have something that was much more useful (e.g. when trying to restore a purchase when there is nothing).
I see that the error type has been changed, but I didn't see any breaking changes, so I assume it's a bug.
Only talking about iOS here.
Hey !
Thanks for the project
How I may run example directory?
I may run yarn install && yarn start
but yarn run android and react-native run-android doesn't work
The error object returned by Adapty is not of instance Error.
How to replicate:
try {
const result = await adapty.purchases.makePurchase(product); // have this function generate an error
} catch (error) {
console.log(error instanceof Error); // results in false
}
For us, this is a problem because Firebase Crashlytics only accepts error object with the Error instance. Now we had to find out that errors from clients are not monitored because the Adapty module does not have a correct instance type on its error object.
hi,
i've get a warning in iOS, but only if i start the app. I get the warning "Sending onInfoUpdate
with no listeners registered."
my code looks like:
useEffect(() => {
const loadAdapty = async () => {
await activateAdapty({
sdkKey: Config.ADAPTY_PUBLIC_SDK_KEY,
customerUserId: userId,
});
};
loadAdapty() && setInitAdapty(true);
}, []);
thanks in advance.
best regards
Andy
Hello,
Are you planning to add an expo plugin?
Thanks
As we see there are significant changes in Adapty.updateAttribution React Native SDK:
v1
adapty.updateAttribution(networkUserId, installData , 'AppsFlyer');
v2
updateAttribution (attribution: Record<string, any>, source: Input. AttributionSource, networkUserId?: string): Promise<void>;
But there is no mention of this update in the React Native documentation or update change log. The source as string 'AppsFlyer' is now throwing JSON errors. We linked the source as AttributionSource.AppsFlyer, but there are no errors in the console, only errors at Adapty that events are not forwarding. After a few hours of investigation, we figured that the source may need to be lowercase, like AttributionSource.appsflyer, but we are still not sure. Could you please update the documentation and clarify how we should call updateAttribution?
Hi, after installing the version 2.3.2, the issue #47 was solved, thank you. However, I'm facing a different error now
here's my environment info:
EAS CLI 3.5.2 environment info:
System:
OS: Linux 6.0 Pop!_OS 22.04 LTS
Shell: 5.8.1 - /usr/bin/zsh
Binaries:
Node: 16.19.0 - ~/.nvm/versions/node/v16.19.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.4.2 - ~/.nvm/versions/node/v16.19.0/bin/npm
Utilities:
Git: 2.34.1 - /usr/bin/git
npmPackages:
@expo/webpack-config: ^0.17.4 => 0.17.4
expo: ^47.0.13 => 47.0.13
expo-updates: ~0.15.6 => 0.15.6
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-web: ^0.18.12 => 0.18.12
npmGlobalPackages:
eas-cli: 3.5.2
Project workflow: generic
My code:
await adapty.activate(AdaptyApiKey);
AdaptyError.onError = error => {
console.error(error);
};
const profile = await adapty.getProfile(); // not even getting to here
console.log(profile);
const isSubscribed = profile?.accessLevels?.premium?.isActive;
Adapty dashboard access levels
Error:
{"error": [SyntaxError: JSON Parse error: Unexpected identifier "AdaptyAccessLevelCoder"]}
Thank you!
I'm getting a build error with building react-native-adapty 0.6.7 for iOS. Android works fine.
ld: warning: Could not find or use auto-linked library 'swiftWebKit'
ld: warning: Could not find or use auto-linked library 'swiftCoreMIDI'
ld: warning: Could not find or use auto-linked library 'swiftUniformTypeIdentifiers'
Undefined symbols for architecture arm64:
"_swift_FORCE_LOAD$_swiftWebKit", referenced from:
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(Adapty.o)
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(PurchaserInfoModel.o)
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(IAPManager.o)
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(PaywallViewController.o)
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(ProfileParameterBuilder.o)
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(ProductModel.o)
_swift_FORCE_LOAD$swiftWebKit$_Adapty in libAdapty.a(PromoModel.o)
...
Hello @divanc :)
I have a problem with discounted prices not being applied when I try to purchase the subscription.
I was sending the discount id before version 2 and it was working without any problem however since the v2 documentation says Adapty will handle the discount by itself automatically. I don't know what I should do or if it is working.
Our app has both introductory and promotional discounts.
Could it be because of the sandbox and production differences? Should I trust this?
Can you enlighten me, please? :)
Here you can see the discounted price but when I try to purchase it shows the full price.
I was expecting something like this:
Here is the data for the subscription:
{
"currencyCode": "USD",
"currencySymbol": "$",
"introductoryDiscount": {
"localizedNumberOfPeriods": "3 months",
"localizedPrice": "$0.99",
"localizedSubscriptionPeriod": "1 month",
"numberOfPeriods": 3,
"price": 0.99,
"subscriptionPeriod": {
"numberOfUnits": 1,
"unit": "month"
},
"ios": {
"paymentMode": "pay_as_you_go"
}
},
"introductoryOfferEligibility": "unknown",
"localizedDescription": "Monthly Premium",
"localizedPrice": "$2.99",
"localizedSubscriptionPeriod": "1 month",
"localizedTitle": "Premium",
"paywallABTestName": "Get Premium",
"paywallName": "Get Premium",
"price": 2.99,
"subscriptionPeriod": {
"numberOfUnits": 1,
"unit": "month"
},
"variationId": "----",
"vendorProductId": "----,
"ios": {
"discounts": [
{
"localizedNumberOfPeriods": "3 months",
"localizedPrice": "$0.99",
"localizedSubscriptionPeriod": "1 month",
"numberOfPeriods": 3,
"price": 0.99,
"subscriptionPeriod": {
"numberOfUnits": 1,
"unit": "month"
},
"ios": {
"paymentMode": "pay_as_you_go",
"identifier": "-----"
}
}
],
"isFamilyShareable": true,
"regionCode": "US",
"subscriptionGroupIdentifier": "------"
}
}
The link [docs.adapty.io/docs/quickstart](https://docs.adapty.io/docs/quickstart)
in the project description does resolve to any documentation for react-native. The documentation page does not contain any react native documentation.
The solution would be to link to the documentation of 1.X.X
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.