Skip to content

Commit

Permalink
fix(terminal): require kotlin-android at app/build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo committed Dec 5, 2024
1 parent 47a8fba commit 836629f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
16 changes: 16 additions & 0 deletions demo/angular/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,19 @@ try {
} catch(Exception e) {
logger.info("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
}


/*
* used from @capacitor-community/stripe. If you remove this plugin, you can remove this code block.
*/
buildscript {
ext.kotlin_version = '2.0.+'
repositories {
google()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin-android'
2 changes: 1 addition & 1 deletion packages/identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ see more details on Stripe's native iOS SDK page [here](https://stripe.com/docs/

### Initialize Android

change base application theme to `Theme.MaterialComponents.DayNight` at `res/values/styles.xml`:
change base application theme to `Theme.MaterialComponents.DayNight` at `android/app/src/main/res/values/styles.xml`:

```diff xml: res/values/styles.xml
- <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
Expand Down
16 changes: 16 additions & 0 deletions packages/terminal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@ And update minSdkVersion to 26 And compileSdkVersion to 34 in your `android/app/
+ compileSdkVersion = 34
```

And add next block to `android/app/build.gradle`.

```diff
+ buildscript {
+ ext.kotlin_version = '2.0.+'
+ repositories {
+ google()
+ mavenCentral()
+ }
+ dependencies {
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
+ }
+ }
+ apply plugin: 'kotlin-android'
```

## Usage

### Simple collect payment
Expand Down

0 comments on commit 836629f

Please sign in to comment.