Skip to content

Commit

Permalink
Android version added
Browse files Browse the repository at this point in the history
  • Loading branch information
Lutik-sun committed Nov 7, 2024
1 parent 752e578 commit db9e66c
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 6 deletions.
12 changes: 12 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,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
7 changes: 7 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -571,4 +571,11 @@ main .markdown img {
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;
}
86 changes: 80 additions & 6 deletions versioned_docs/version-3.0/eu-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,89 @@
title: "Adapty on EU servers"
description: ""
metadataTitle: ""
no_index: true
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

If legal regulations make you have your servers in the EU-cluster, you can do in 2 steps:
If legal requirements mandate EU-based servers, Adapty provides an EU cluster option. Follow these steps:

1. Install and configure AdaptySDK for the EU end-point.
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.

2. Register in Adapty EU cluster.
3. Log in to Adapty through EU link.
After setup, you can use the Adapty Dashboard as usual at `app.adapty.io`.

After that, you can work in a usual Adapty Dashboard by path `app.adapty.io link`.
## Step 1. Configure Adapty SDK for EU region

Step 1. Activate AdaptySDK
<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!

0 comments on commit db9e66c

Please sign in to comment.