Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'com.android.library'
- id 'kotlin-android'
- id "com.google.protobuf" version "0.8.12"
- id 'kotlin-kapt'
- id 'com.google.firebase.crashlytics'
- }
- android {
- compileSdk 33
- defaultConfig {
- minSdk 23
- targetSdk 33
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- consumerProguardFiles "consumer-rules.pro"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- }
- dependencies {
- implementation 'androidx.core:core-ktx:1.9.0'
- implementation 'androidx.appcompat:appcompat:1.5.1'
- implementation 'com.google.android.material:material:1.6.1'
- testImplementation 'junit:junit:4.+'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
- // Preferences DataStore
- implementation "androidx.datastore:datastore-preferences:1.0.0-alpha01"
- // Proto DataStore
- implementation "androidx.datastore:datastore-core:1.0.0-alpha01"
- implementation "com.google.protobuf:protobuf-javalite:3.10.0"
- implementation project(':data')
- }
- protobuf {
- protoc {
- artifact = "com.google.protobuf:protoc:3.10.0"
- }
- // Generates the java Protobuf-lite code for the Protobufs in this project. See
- // https://github.com/google/protobuf-gradle-plugin#customizing-protobuf-compilation
- // for more information.
- generateProtoTasks {
- all().each { task ->
- task.builtins {
- java {
- option 'lite'
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement