Advertisement
since85stas

Untitled

Jan 23rd, 2023
1,827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.99 KB | None | 0 0
  1. plugins {
  2.     id 'com.android.library'
  3.     id 'kotlin-android'
  4.     id "com.google.protobuf" version "0.8.12"
  5.     id 'kotlin-kapt'
  6.     id 'com.google.firebase.crashlytics'
  7. }
  8.  
  9. android {
  10.     compileSdk 33
  11.  
  12.     defaultConfig {
  13.         minSdk 23
  14.         targetSdk 33
  15.         versionCode 1
  16.         versionName "1.0"
  17.  
  18.         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  19.         consumerProguardFiles "consumer-rules.pro"
  20.     }
  21.  
  22.     buildTypes {
  23.         release {
  24.             minifyEnabled false
  25.             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  26.         }
  27.     }
  28.     compileOptions {
  29.         sourceCompatibility JavaVersion.VERSION_1_8
  30.         targetCompatibility JavaVersion.VERSION_1_8
  31.     }
  32.     kotlinOptions {
  33.         jvmTarget = '1.8'
  34.     }
  35. }
  36.  
  37. dependencies {
  38.  
  39.     implementation 'androidx.core:core-ktx:1.9.0'
  40.     implementation 'androidx.appcompat:appcompat:1.5.1'
  41.     implementation 'com.google.android.material:material:1.6.1'
  42.     testImplementation 'junit:junit:4.+'
  43.     androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  44.     androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  45.  
  46.     // Preferences DataStore
  47.     implementation "androidx.datastore:datastore-preferences:1.0.0-alpha01"
  48.  
  49.     // Proto DataStore
  50.     implementation  "androidx.datastore:datastore-core:1.0.0-alpha01"
  51.     implementation  "com.google.protobuf:protobuf-javalite:3.10.0"
  52.  
  53.     implementation project(':data')
  54. }
  55.  
  56. protobuf {
  57.     protoc {
  58.         artifact = "com.google.protobuf:protoc:3.10.0"
  59.     }
  60.  
  61.     // Generates the java Protobuf-lite code for the Protobufs in this project. See
  62.     // https://github.com/google/protobuf-gradle-plugin#customizing-protobuf-compilation
  63.     // for more information.
  64.     generateProtoTasks {
  65.         all().each { task ->
  66.             task.builtins {
  67.                 java {
  68.  
  69.                     option 'lite'
  70.                 }
  71.             }
  72.         }
  73.     }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement