Skip to content

Commit

Permalink
Merge branch 'eu-cluster' into develop - Android added
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutik-sun committed Nov 7, 2024
2 parents 382e5e6 + db9e66c commit 9412623
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 95 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,18 @@ const config = {
"javascript",
"dart", // For Flutter, Dart is the primary language
],
magicComments: [
// Remember to extend the default highlight class name as well!
{
className: 'theme-code-block-highlighted-line',
line: 'highlight-next-line',
block: {start: 'highlight-start', end: 'highlight-end'},
},
{
className: 'code-block-error-line',
line: 'This will error',
},
],
},

// Configure the color mode to default to light and disable the dark mode switch
Expand Down
18 changes: 17 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -562,4 +562,20 @@ main .markdown img {
background: #f0fef9;
border: 1px solid #97f3d8;
color: #004f38;
}/*# sourceMappingURL=custom.css.map */
}/*# sourceMappingURL=custom.css.map */
/* Ensure that h2 inside tabs looks like a normal h2 */

.tabs-container h2 {
font-size: 1.5em;
font-weight: bold;
margin: 1.5rem 0;
line-height: 1.2;
color: var(--ifm-heading-color); /* Match the color with your other h2 headings */
}
.code-block-error-line {
background-color: #ff000020;
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
border-left: 3px solid #ff000080;
}
2 changes: 1 addition & 1 deletion versioned_docs/version-3.0/amplitude.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ To set up the Amplitude integration:

| Field | Description |
| ------------------------------------------ | ------------------------------------------------------------ |
| **Amplitude iOS/ Android. Stripe API key** | Enter the Amplitude **API Key** for iOS/ Android/ Stripe into Adapty. Locate it under **Project settings** in Amplitude. For help, check [Amplitude docs](https://amplitude.com/docs/apis/authentication). Start with **Sandbox** keys for testing, then switch to **Production** keys after successful tests. |
| **Amplitude iOS/ Android/ Stripe API key** | Enter the Amplitude **API Key** for iOS/ Android/ Stripe into Adapty. Locate it under **Project settings** in Amplitude. For help, check [Amplitude docs](https://amplitude.com/docs/apis/authentication). Start with **Sandbox** keys for testing, then switch to **Production** keys after successful tests. |

<Zoom>
<img src={require('./img/2297782-CleanShot_2023-08-15_at_16.53.512x.webp').default}
Expand Down
90 changes: 90 additions & 0 deletions versioned_docs/version-3.0/eu-cluster.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
---
title: "Adapty on EU servers"
description: ""
metadataTitle: ""
no_index: true
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

If legal requirements mandate EU-based servers, Adapty provides an EU cluster option. Follow these steps:

1. Configure Adapty SDK for the EU region.
2. Register with Adapty via the EU-specific registration link.
3. Log in to Adapty through the EU-specific login link.

After setup, you can use the Adapty Dashboard as usual at `app.adapty.io`.

## Step 1. Configure Adapty SDK for EU region

<Tabs>
<TabItem value="iOS" label="iOS">
Text
</TabItem>

<TabItem value="Android" label="Android" default>
Install Adapty SDK as described in [Adapty SDK Installation & Configuration](sdk-installation-android). During configuration, add the EU cluster as follows:

Include the `.withServerCluster` parameter in your configuration:

<Tabs>
<TabItem value="Kotlin" label="Kotlin" default>

```kotlin
override fun onCreate() {
super.onCreate()
Adapty.activate(
applicationContext,
AdaptyConfig.Builder("PUBLIC_SDK_KEY")
.withObserverMode(false) //default false
.withCustomerUserId(customerUserId) //default null
.withIpAddressCollectionDisabled(false) //default false
// highlight-next-line
.withServerCluster(AdaptyConfig.ServerCluster.EU)
.build()
)
}
```

</TabItem>
<TabItem value="Java" label="Java" default>

```java
@Override
public void onCreate() {
super.onCreate();
Adapty.activate(
applicationContext,
new AdaptyConfig.Builder("PUBLIC_SDK_KEY")
.withObserverMode(false) //default false
.withCustomerUserId(customerUserId) //default null
.withIpAddressCollectionDisabled(false) //default false
// highlight-next-line
.withServerCluster(AdaptyConfig.ServerCluster.EU)
.build()
);
}
```

</TabItem>
</Tabs>

Added option:

| Parameter | Description |
| --------------------- | ------------------------------------------------------------ |
| **withServerCluster** | Set to `AdaptyConfig.ServerCluster.EU` to connect your app to Adapty’s European servers. |

</TabItem>

</Tabs>

## Step 2. Register with EU cluster

To register your company in the EU cluster, use [this link](https://app.adapty.io/eu-registration). Once registered, you can [add employees](members-settings#how-to-add-a-member) in the Adapty Dashboard as usual.

## Step 3: Log in with EU-specific link

Direct your team to log in via `https://app.adapty.io/eu-login`. For general dashboard access, continue using `app.adapty.io`.

This should help ensure you’re compliant with EU data regulations while using Adapty!

This file was deleted.

0 comments on commit 9412623

Please sign in to comment.