fork/rust-sdks

git clone https://git.julia.blue/fork/rust-sdks

Théo Monnomfix: android crashes + working example (#122)71ef76c

main
2.1 KiB67 linesraw
1plugins {
2    id 'com.android.application'
3    id 'org.jetbrains.kotlin.android'
4}
5
6android {
7    namespace 'io.livekit.rustexample'
8    compileSdk 33
9
10    defaultConfig {
11        applicationId "io.livekit.rustexample"
12        minSdk 24
13        targetSdk 33
14        versionCode 1
15        versionName "1.0"
16
17        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18        vectorDrawables {
19            useSupportLibrary true
20        }
21    }
22
23    buildTypes {
24        release {
25            minifyEnabled false
26            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
27        }
28    }
29    compileOptions {
30        sourceCompatibility JavaVersion.VERSION_1_8
31        targetCompatibility JavaVersion.VERSION_1_8
32    }
33    kotlinOptions {
34        jvmTarget = '1.8'
35    }
36    buildFeatures {
37        compose true
38    }
39    composeOptions {
40        kotlinCompilerExtensionVersion '1.3.2'
41    }
42    packagingOptions {
43        resources {
44            excludes += '/META-INF/{AL2.0,LGPL2.1}'
45        }
46    }
47}
48
49dependencies {
50    implementation files('libs/libwebrtc.jar')
51    implementation 'androidx.core:core-ktx:1.8.0'
52    implementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.0')
53    implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
54    implementation 'androidx.activity:activity-compose:1.5.1'
55    implementation platform('androidx.compose:compose-bom:2022.10.00')
56    implementation 'androidx.compose.ui:ui'
57    implementation 'androidx.compose.ui:ui-graphics'
58    implementation 'androidx.compose.ui:ui-tooling-preview'
59    implementation 'androidx.compose.material3:material3'
60    testImplementation 'junit:junit:4.13.2'
61    androidTestImplementation 'androidx.test.ext:junit:1.1.5'
62    androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
63    androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
64    androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
65    debugImplementation 'androidx.compose.ui:ui-tooling'
66    debugImplementation 'androidx.compose.ui:ui-test-manifest'
67}