Skip to content

Commit

Permalink
Adding language headers above code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
langsmith committed Oct 10, 2024
1 parent 6a81872 commit 83d1502
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ and integrate them into their SaaS portals in up to 5 lines of code.

- Android SDK 26+
Set defaultConfig's minSDK to 26+ in build.gradle:

Groovy:

```groovy
android {
defaultConfig {
minSdk 26
}
}
```

Kotlin:

```kotlin
android {
defaultConfig {
Expand All @@ -47,6 +53,9 @@ and integrate them into their SaaS portals in up to 5 lines of code.
```
- Java 8+
Set target java 8 byte code for Android and Kotlin plugins respectively build.gradle:

Groovy:

```groovy
android {
compileOptions {
Expand All @@ -59,6 +68,8 @@ and integrate them into their SaaS portals in up to 5 lines of code.
}
}
```
Kotlin:

```kotlin
android {
compileOptions {
Expand Down Expand Up @@ -97,6 +108,8 @@ from [Frontegg Portal Domain](https://portal.frontegg.com/development/settings/d
- Find your app's build.gradle file
- Add the following to your dependencies section:

Groovy:

```groovy
dependencies {
// Add the Frontegg Android Kotlin SDK
Expand All @@ -105,6 +118,9 @@ from [Frontegg Portal Domain](https://portal.frontegg.com/development/settings/d
implementation 'io.reactivex.rxjava3:rxkotlin:3.0.1'
}
```

Kotlin:

```kotlin
dependencies {
// Add the Frontegg Android Kotlin SDK
Expand All @@ -119,6 +135,8 @@ from [Frontegg Portal Domain](https://portal.frontegg.com/development/settings/d
To set up your Android minimum sdk version, open the root gradle file at`android/build.gradle`,
and add/edit the `minSdkVersion` under `buildscript.ext`:

Groovy:

```groovy
buildscript {
ext {
Expand All @@ -127,6 +145,9 @@ buildscript {
}
}
```

Kotlin:

```kotlin
android {
defaultConfig {
Expand All @@ -143,6 +164,8 @@ add `buildConfigField` property the
gradle `android/app/build.gradle`.
This property will store frontegg hostname (without https) and client id from previous step:

Groovy:

```groovy

def fronteggDomain = "FRONTEGG_DOMAIN_HOST.com" // without protocol https://
Expand All @@ -165,6 +188,8 @@ android {
}
```

Kotlin:

```kotlin

val fronteggDomain = "FRONTEGG_DOMAIN_HOST.com" // without protocol https://
Expand All @@ -187,13 +212,18 @@ android {
Add bundleConfig=true if not exists inside the android section inside the app
gradle `android/app/build.gradle`

Groovy:

```groovy
android {
buildFeatures {
buildConfig = true
}
}
```

Kotlin:

```kotlin
android {
buildFeatures {
Expand Down Expand Up @@ -354,6 +384,8 @@ This guide outlines the steps to configure your Android application to support m

Add `FRONTEGG_APPLICATION_ID` buildConfigField into the `build.gradle` file:

Groovy:

```groovy
def fronteggApplicationId = "your-application-id-uuid"
...
Expand All @@ -362,6 +394,9 @@ android {
buildConfigField "String", 'FRONTEGG_APPLICATION_ID', "\"$fronteggApplicationId\""
}
```

Kotlin:

```kotlin
val fronteggApplicationId = "your-application-id-uuid"
...
Expand Down Expand Up @@ -405,6 +440,8 @@ This guide outlines the steps to configure your Android application to support m

First, remove buildConfigFields from your `build.gradle` file:

Groovy:

```groovy

android {
Expand All @@ -413,6 +450,9 @@ android {
// buildConfigField "String", 'FRONTEGG_CLIENT_ID', "\"$fronteggClientId\""
}
```

Kotlin:

```kotlin

android {
Expand Down Expand Up @@ -597,6 +637,9 @@ android.defaults.buildfeatures.buildconfig=true
```

2. Add the below lines to your app/`build.gradle`:

Groovy:

```gradle
android {
...
Expand All @@ -607,6 +650,18 @@ android {
}
```

Kotlin:

```kotlin
android {
...
buildFeatures {
buildConfig = true
}
...
}
```

## `Proguard` setup (Optional)

If `minifyEnabled` and `shrinkResources` is true follow the instruction below:
Expand Down

0 comments on commit 83d1502

Please sign in to comment.