Files
breez-sdk-liquid/packages/flutter/android/build.gradle
Erdem Yerebasmaz 573a345801 Downgrade android release to Uniffi 0.25 (#786)
* fix: revert minSdkVersion across all uniffi packages

This PR fixes a regression introduced in https://github.com/breez/breez-sdk-liquid/pull/766 due to a confusion between minSdkVersion requirement & minimum compileSdkVersion requirement.

* Bump package requirements on flutter_breez_liquid README

* Bump JNA used on bindings tests to 5.14.0

* Downgrade android release to Uniffi 0.25

---------

Co-authored-by: Ross Savage <hello@satimoto.com>
2025-03-19 13:41:44 +03:00

63 lines
1.5 KiB
Groovy

version '0.7.2-dev1' // generated; do not edit
group 'technology.breez.flutter_breez_liquid'
buildscript {
ext.kotlin_version = '1.8.20'
repositories {
google()
mavenCentral()
}
dependencies {
// The Android Gradle Plugin knows how to build native code with the NDK.
classpath 'com.android.tools.build:gradle:7.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
rootProject.allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlinx-serialization'
android {
namespace = "technology.breez.flutter_breez_liquid"
// Bumping the plugin compileSdkVersion requires all clients of this plugin
// to bump the version in their app.
compileSdkVersion 35
// Bumping the plugin ndkVersion requires all clients of this plugin to bump
// the version in their app and to download a newer version of the NDK.
ndkVersion "21.1.6352462"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = "17"
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 24
}
}
dependencies {
implementation "net.java.dev.jna:jna:5.14.0@aar"
/* JSON serialization */
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3'
}