Advertisement
Guest User

Untitled

a guest
Jan 12th, 2022
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.13 KB | None | 0 0
  1. plugins {
  2.     id 'com.android.application'
  3.     id 'kotlin-android'
  4.     id 'kotlin-kapt'
  5.     id 'com.google.gms.google-services'
  6.     id 'com.huawei.agconnect'
  7. }
  8.  
  9. android {
  10.     compileOptions {
  11.         sourceCompatibility JavaVersion.VERSION_1_8
  12.         targetCompatibility JavaVersion.VERSION_1_8
  13.     }
  14.  
  15.     publishNonDefault true
  16.  
  17.     signingConfigs {
  18.         config {
  19.             keyAlias 'myclientalias'
  20.             keyPassword 'mykeypassword'
  21.             storeFile file('C:/Users/User/AndroidStudioProjects/Myapp/app/myclientalias.jks')
  22.             storePassword 'mystorepassword'
  23.         }
  24.     }
  25.     compileSdkVersion 31
  26.     defaultConfig {
  27.         applicationId "net.app.myid"
  28.         minSdkVersion 23
  29.         targetSdkVersion 31
  30.         multiDexEnabled true
  31.         versionCode 99
  32.         versionName "1.99"
  33.         testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  34.     }
  35.  
  36.     buildTypes {
  37.         release {
  38.             signingConfig signingConfigs.config
  39.             minifyEnabled false
  40.             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  41.         }
  42.         debug {
  43.             signingConfig signingConfigs.config
  44.         }
  45.     }
  46.  
  47.     kotlinOptions {
  48.         jvmTarget = '1.8'
  49.     }
  50.  
  51.     buildFeatures {
  52.         dataBinding = true
  53.     }
  54.     kapt {
  55.         generateStubs = true
  56.     }
  57.  
  58.     sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
  59. }
  60.  
  61. repositories {
  62.     maven { url 'https://developer.huawei.com/repo/' }
  63.     maven { url "https://jitpack.io" }
  64.     mavenCentral()
  65.     google()
  66. }
  67.  
  68. dependencies {
  69.     implementation 'com.google.firebase:firebase-analytics:20.0.    
  70.    implementation 'com.google.firebase:firebase-core:20.0.2'
  71.    implementation 'com.google.firebase:firebase-messaging:23.0.0'
  72.  
  73.    implementation 'com.huawei.hms:push:6.1.0.300'
  74.    implementation 'com.huawei.hms:hianalytics:6.3.0.303'
  75.  
  76.    testImplementation 'junit:junit:4.13.2'
  77.    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
  78.    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement