@capgo/capacitor-supabase 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,84 @@
1
+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
+
3
+ ext {
4
+ junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
5
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
6
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
7
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
8
+ }
9
+
10
+ buildscript {
11
+ repositories {
12
+ mavenCentral()
13
+ google()
14
+ }
15
+ dependencies {
16
+ classpath 'com.android.tools.build:gradle:8.13.0'
17
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.2.20"
18
+ classpath "org.jetbrains.kotlin:kotlin-serialization:2.0.21"
19
+ }
20
+ }
21
+
22
+ apply plugin: 'com.android.library'
23
+ apply plugin: 'org.jetbrains.kotlin.android'
24
+ apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
25
+
26
+ android {
27
+ namespace = "ee.forgr.plugin.capacitor_supabase"
28
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
29
+ defaultConfig {
30
+ minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 26
31
+ targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
32
+ versionCode 1
33
+ versionName "1.0"
34
+ testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
35
+ }
36
+ buildTypes {
37
+ release {
38
+ minifyEnabled false
39
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
40
+ }
41
+ }
42
+ lintOptions {
43
+ abortOnError = false
44
+ }
45
+ compileOptions {
46
+ sourceCompatibility JavaVersion.VERSION_21
47
+ targetCompatibility JavaVersion.VERSION_21
48
+ }
49
+ }
50
+
51
+ kotlin {
52
+ compilerOptions {
53
+ jvmTarget = JvmTarget.JVM_21
54
+ }
55
+ }
56
+
57
+ repositories {
58
+ google()
59
+ mavenCentral()
60
+ }
61
+
62
+ dependencies {
63
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
64
+ implementation project(':capacitor-android')
65
+ implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
66
+
67
+ // Supabase Kotlin SDK
68
+ implementation platform("io.github.jan-tennert.supabase:bom:3.0.3")
69
+ implementation "io.github.jan-tennert.supabase:auth-kt"
70
+ implementation "io.github.jan-tennert.supabase:postgrest-kt"
71
+
72
+ // Ktor client for Android
73
+ implementation "io.ktor:ktor-client-okhttp:3.0.2"
74
+
75
+ // Kotlin coroutines
76
+ implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.9.0"
77
+
78
+ // JSON serialization
79
+ implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3"
80
+
81
+ testImplementation "junit:junit:$junitVersion"
82
+ androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
83
+ androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
84
+ }