mirror of
https://gitee.com/willfree/min-vpn-client_v2.git
synced 2026-06-06 04:29:29 +08:00
157 lines
6.5 KiB
Groovy
157 lines
6.5 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
//plugins {
|
|
// id 'com.android.application'
|
|
// id 'kotlin-android'
|
|
// id 'kotlin-android-extensions'
|
|
//}
|
|
|
|
android {
|
|
applicationVariants.all { variant ->
|
|
variant.outputs.all { output ->
|
|
def outputFile = output.outputFile
|
|
def fileName
|
|
if (outputFile != null && outputFile.name.endsWith('.apk')) {
|
|
if (variant.buildType.name.equals('release')) {//如果是release包
|
|
fileName = "MIN_VPN_release_v${defaultConfig.versionName}.apk"
|
|
} else if (variant.buildType.name.equals('debug')) {//如果是debug包
|
|
fileName = "MIN_VPN_debug_v${defaultConfig.versionName}.apk"
|
|
}
|
|
outputFileName = fileName
|
|
}
|
|
}
|
|
}
|
|
|
|
// APK导出时需要的身份签名(内含APP所属单位、APP版本号信息)
|
|
signingConfigs {
|
|
release {
|
|
keyAlias 'pkukey'
|
|
keyPassword 'pkusz111'
|
|
storeFile file('pkukey.jks')
|
|
storePassword 'pkusz111'
|
|
}
|
|
}
|
|
|
|
compileSdkVersion 30
|
|
buildToolsVersion "30.0.3"
|
|
|
|
sourceSets.main.jniLibs.srcDirs = ['libs']
|
|
|
|
defaultConfig {
|
|
applicationId "com.pkusz.min_vpn_client"
|
|
minSdkVersion 24
|
|
targetSdkVersion 30
|
|
versionCode 4
|
|
versionName "4.0.0"
|
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
// 解决32位so库的调用问题。https://blog.csdn.net/li_dongcai/article/details/53612634
|
|
// https://www.jianshu.com/p/ad95c885c2f8?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation
|
|
ndk{
|
|
abiFilters "armeabi-v7a","x86"
|
|
}
|
|
packagingOptions {
|
|
exclude "lib/arm64-v8a/libsqlitejdbc.so"
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
lintOptions {
|
|
disable('AllowBackup', 'GoogleAppIndexingWarning', 'MissingApplicationIcon')
|
|
}
|
|
|
|
// 编译所用jdk版本
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
// testImplementation 'junit:junit:4.+'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
|
compileOnly 'com.google.android.things:androidthings:1.0'
|
|
|
|
// 以下为旧版本VPN客户端的依赖库
|
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
implementation 'androidx.core:core-ktx:1.3.0'
|
|
implementation "androidx.appcompat:appcompat:$androidx_base_version"
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation "androidx.recyclerview:recyclerview:$androidx_base_version"
|
|
implementation "androidx.security:security-crypto:1.1.0-alpha03"
|
|
|
|
implementation "org.jetbrains.anko:anko-commons:$anko_version"
|
|
|
|
// // 所有的模块都依赖于 quick_android_base (必选)
|
|
// implementation "com.github.SunnyQjm.quickandroid:quick_android_base:$quick_android_version"
|
|
// implementation "com.github.SunnyQjm.quickandroid:quick_android_custom_view:$quick_android_version"
|
|
// implementation "com.github.SunnyQjm.quickandroid:quick_android_easy_bar:$quick_android_version"
|
|
// // 引入quick_android_mvp模块,来使用网络请求和MVP架构(可选)
|
|
// implementation "com.github.SunnyQjm.quickandroid:quick_android_mvp:$quick_android_version"
|
|
// // 引入quick_android_rx_permission模块,来接入链式调用动态请求权限的功能(可选)
|
|
// implementation "com.github.SunnyQjm.quickandroid:quick_android_rx_permission:$quick_android_version"
|
|
// // 引入quick_android_qrcode模块,来接入扫码功能(可选)
|
|
//// implementation "com.github.SunnyQjm.quickandroid:quick_android_qrcode:$quick_android_version"
|
|
//// // 引入quick_android_image_picker模块,来接入图片选择,图片裁剪等功能(可选)
|
|
//// implementation "com.github.SunnyQjm.quickandroid:quick_android_image_picker:$quick_android_version"
|
|
//// // 引入文件选择功能(调用系统的文件管理器)
|
|
//// implementation "com.github.SunnyQjm.quickandroid:quick_android_file_picker:$quick_android_version"
|
|
api project(path: ':locallib_quick_android:quick_android_base')
|
|
api project(path: ':locallib_quick_android:quick_android_custom_view')
|
|
api project(path: ':locallib_quick_android:quick_android_easy_bar')
|
|
api project(path: ':locallib_quick_android:quick_android_mvp')
|
|
api project(path: ':locallib_quick_android:quick_android_rx_permission')
|
|
// api project(path: ':locallib_quick_android/quick_android_qrcode')
|
|
// api project(path: ':locallib_quick_android/quick_android_image_picker')
|
|
// api project(path: ':locallib_quick_android/quick_android_file_picker')
|
|
|
|
// loading button
|
|
implementation 'br.com.simplepass:loading-button-android:2.2.0'
|
|
|
|
// AndroidUtilCode
|
|
implementation 'com.blankj:utilcodex:1.26.0'
|
|
|
|
// 加载动画
|
|
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
|
|
|
|
// android-banner
|
|
implementation 'com.github.zhpanvip:BannerViewPager:2.6.1'
|
|
|
|
// EventBus
|
|
implementation 'org.greenrobot:eventbus:3.1.1'
|
|
|
|
// SmartRefreshLayout
|
|
implementation "com.scwang.smartrefresh:SmartRefreshLayout:$smart_refresh_layout_version"
|
|
implementation "com.scwang.smartrefresh:SmartRefreshHeader:$smart_refresh_layout_version"
|
|
|
|
// brvah
|
|
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.49-androidx'
|
|
|
|
implementation 'com.google.android.material:material:1.3.0-alpha01'
|
|
|
|
testImplementation 'junit:junit:4.13'
|
|
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.7.1'
|
|
//implementation 'me.dm7.barcodescanner:zxing:1.9.13'
|
|
implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.7'
|
|
//implementation 'com.wei.android.lib:fingerprintidentify:1.2.6'
|
|
implementation 'co.infinum:goldfinger:2.0.1'
|
|
|
|
//验证码空间
|
|
implementation 'com.justkiddingbaby:vercodeedittext:1.1.0'
|
|
|
|
//倒计时按钮
|
|
implementation 'com.white.countdownbutton:countdownbtn:1.0.4'
|
|
} |