123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- plugins {
- id 'com.android.application'
- id 'org.jetbrains.kotlin.android'
- }
- apply plugin: 'kotlin-android-extensions'
- apply plugin: 'kotlin-kapt'
- kapt {
- arguments {
- arg("AROUTER_MODULE_NAME", project.getName())
- // 是否生成路由文档,"enable":生成文档,其他字符串不生成路由文档
- arg("AROUTER_GENERATE_DOC", "enable")
- }
- }
- android {
- compileSdkVersion 31
- defaultConfig {
- applicationId "com.cooleshow.teacher"
- minSdkVersion 21
- targetSdkVersion 31
- versionCode 1
- versionName "1.0"
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- buildConfigField "String", "BASE_H5_URL", RELEASE_BASE_URL_H5
- }
- debug{
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
- buildConfigField "String", "BASE_H5_URL", TEST_BASE_URL_H5
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- kotlinOptions {
- jvmTarget = '1.8'
- }
- buildFeatures{
- viewBinding = true
- }
- }
- dependencies {
- implementation 'androidx.core:core-ktx:1.7.0'
- implementation 'androidx.appcompat:appcompat:1.3.0'
- implementation 'com.google.android.material:material:1.4.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
- implementation project(':Provider')
- implementation project(path: ':BaseLibrary')
- api project(path: ':usercenter')
- implementation "com.alibaba:arouter-api:$arouter_api_version"
- kapt "com.alibaba:arouter-compiler:$arouter_api_version"
- }
|