Skip to content

Commit b6c4a83

Browse files
committed
version 3.11.0
2 parents 2e5ed27 + 6613b38 commit b6c4a83

12 files changed

+21
-21
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ Ask questions, participate in discussions about Adapty-related topics, become a
8484
yarn add react-native-adapty
8585
```
8686

87-
Read the [documentation](https://docs.adapty.io/docs/react-native-installation?utm_source=github&utm_medium=referral&utm_campaign=AdaptySDK-React-Native) to install and configure Adapty SDK. Set up purchases in hours instead of weeks :rocket:
87+
Read the [documentation](https://adapty.io/docs/sdk-installation-reactnative?utm_source=github&utm_medium=referral&utm_campaign=AdaptySDK-React-Native) to install and configure Adapty SDK. Set up purchases in hours instead of weeks :rocket:
8888

8989
## Examples
9090

91-
Check out our [example applications](./examples) to see Adapty SDK in action. The Expo example is recommended for Adapty beginners.
91+
Check out our [example applications](https://github.com/adaptyteam/AdaptySDK-React-Native/tree/master/examples) to see Adapty SDK in action. The Expo example is recommended for Adapty beginners.
9292

9393
📹 **Watch our video guide** for step-by-step integration with the Focus Journal Expo example:
9494

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ def getExtOrDefault(name) {
110110
def kotlin_version = getExtOrDefault('kotlinVersion')
111111

112112
dependencies {
113-
api 'io.adapty:android-sdk:3.10.0'
114-
api 'io.adapty:android-ui:3.10.0'
113+
api 'io.adapty:android-sdk:3.11.0'
114+
api 'io.adapty:android-ui:3.11.0'
115115

116116
//noinspection GradleDynamicVersion
117-
api 'io.adapty.internal:crossplatform:3.10.0'
117+
api 'io.adapty.internal:crossplatform:3.11.0'
118118

119119
// Compatible with older and newer RN
120120
//noinspection GradleDynamicVersion

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package",
33
"name": "react-native-adapty",
4-
"version": "3.10.0",
4+
"version": "3.11.0",
55
"description": "Adapty React Native SDK",
66
"license": "MIT",
77
"author": "Adapty team <[email protected]>",

react-native-adapty-sdk.podspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Pod::Spec.new do |s|
1919
s.resources = "ios/**/*.{plist}"
2020
s.requires_arc = true
2121

22-
s.dependency "Adapty", "3.10.1"
23-
s.dependency "AdaptyUI", "3.10.1"
24-
s.dependency "AdaptyPlugin", "3.10.1"
22+
s.dependency "Adapty", "3.11.0"
23+
s.dependency "AdaptyUI", "3.11.0"
24+
s.dependency "AdaptyPlugin", "3.11.0"
2525
s.dependency "React"
2626
end
2727

src/coders/adapty-onboarding-builder.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,15 @@ type Serializable = Required<Def['AdaptyOnboarding']>['onboarding_builder'];
88
const mocks: Serializable[] = [
99
{
1010
config_url: 'https://config.adapty.io/onboarding',
11-
lang: 'en',
1211
},
1312
{
1413
config_url: 'https://config.adapty.io/onboarding-v2',
15-
lang: 'es',
1614
},
1715
];
1816

1917
function toModel(mock: (typeof mocks)[number]): Model {
2018
return {
2119
url: mock.config_url,
22-
lang: mock.lang,
2320
};
2421
}
2522

src/coders/adapty-onboarding-builder.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,5 @@ export class AdaptyOnboardingBuilderCoder extends SimpleCoder<
1616
required: true,
1717
type: 'string',
1818
},
19-
lang: {
20-
key: 'lang',
21-
required: true,
22-
type: 'string',
23-
},
2419
};
2520
}

src/coders/adapty-onboarding.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const mocks: Def['AdaptyOnboarding'][] = [
1919
response_created_at: 1640995200000,
2020
onboarding_builder: {
2121
config_url: 'https://example.com',
22-
lang: 'en',
2322
},
2423
remote_config: {
2524
lang: 'en',
2625
data: '{"feature": "premium", "theme": "dark"}',
2726
},
2827
payload_data: '{"custom": "payload"}',
28+
request_locale: 'en',
2929
},
3030
{
3131
placement: {
@@ -39,6 +39,7 @@ const mocks: Def['AdaptyOnboarding'][] = [
3939
onboarding_name: 'Basic Onboarding',
4040
variation_id: 'variation_123',
4141
response_created_at: 1640995300000,
42+
request_locale: 'en',
4243
},
4344
];
4445

@@ -62,7 +63,6 @@ function toModel(mock: (typeof mocks)[number]): Model {
6263
...(mock.onboarding_builder && {
6364
onboardingBuilder: {
6465
url: mock.onboarding_builder.config_url,
65-
lang: mock.onboarding_builder.lang,
6666
},
6767
}),
6868
...(mock.remote_config && {
@@ -73,6 +73,7 @@ function toModel(mock: (typeof mocks)[number]): Model {
7373
},
7474
}),
7575
...(mock.payload_data && { payloadData: mock.payload_data }),
76+
requestLocale: mock.request_locale,
7677
};
7778
}
7879

src/coders/adapty-onboarding.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export class AdaptyOnboardingCoder extends Coder<
3939
converter: new AdaptyOnboardingBuilderCoder(),
4040
},
4141
payloadData: { key: 'payload_data', required: false, type: 'string' },
42+
requestLocale: { key: 'request_locale', required: true, type: 'string' },
4243
};
4344

4445
override decode(data: Serializable): Model {

src/coders/adapty-paywall.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const mocks: Def['AdaptyPaywall'][] = [
4444
paywall_builder_id: 'paywallBuilder1',
4545
lang: 'en',
4646
},
47+
request_locale: 'en',
4748
},
4849
{
4950
placement: {
@@ -62,6 +63,7 @@ const mocks: Def['AdaptyPaywall'][] = [
6263
remote_config: { lang: 'fr', data: '' },
6364
web_purchase_url: 'https://example.com/purchase',
6465
response_created_at: 1632458390000,
66+
request_locale: 'fr',
6567
},
6668
];
6769

@@ -101,6 +103,7 @@ function toModel(mock: (typeof mocks)[number]): Model {
101103
paywallBuilder: _paywallBuilder.decode(mock.paywall_builder),
102104
}),
103105
...(mock.web_purchase_url && { webPurchaseUrl: mock.web_purchase_url }),
106+
requestLocale: mock.request_locale,
104107
hasViewConfiguration: mock.paywall_builder !== undefined,
105108
};
106109
}

src/coders/adapty-paywall.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class AdaptyPaywallCoder extends Coder<
5252
type: 'string',
5353
},
5454
payloadData: { key: 'payload_data', required: false, type: 'string' },
55+
requestLocale: { key: 'request_locale', required: true, type: 'string' },
5556
};
5657

5758
override decode(data: Serializable): Model {

0 commit comments

Comments
 (0)