迁移项目

This commit is contained in:
2025-12-10 23:13:23 +08:00
parent 28fe161276
commit ea73fea4a5
67 changed files with 2459 additions and 997 deletions

View File

@@ -1,16 +1,22 @@
apply plugin: 'com.android.application'
plugins {
alias(libs.plugins.android.application)
}
android {
compileSdkVersion 26
buildToolsVersion '28.0.3'
namespace "org.easydarwin.easyplayer"
compileSdk {
version = release(36)
}
defaultConfig {
applicationId "org.easydarwin.easyplayer"
minSdkVersion 19
targetSdkVersion 26
applicationId "org.easydarwin.easyplayer.pro"
minSdk 28
targetSdk 36
versionCode 14210703
versionName "1.4.21.0703"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
if (project.hasProperty('PLAYER_KEY')) {
buildConfigField 'String', 'PLAYER_KEY', PLAYER_KEY
} else {
@@ -19,44 +25,27 @@ android {
}
ndk {
//设置支持的SO库架构
// abiFilters 'armeabi', 'x86', 'armeabi-v7a', 'x86_64', 'arm64-v8a'
abiFilters 'x86', 'armeabi-v7a'
abiFilters 'armeabi-v7a'/*, 'arm64-v8a'*/
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
}
}
dataBinding {
enabled = true
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
flavorDimensions "prod"
productFlavors {
pro {
applicationId "org.easydarwin.easyplayer.pro"
dimension "prod"
}
/*fastPro {
applicationId "org.easydarwin.easyplayer.pro"
dimension "prod"
}*/
/*njjl {
applicationId "org.easydarwin.easyplayer.pro"
dimension "prod"
}*/
}
//签名配置
signingConfigs {
buildFeatures {
buildConfig true
viewBinding true
dataBinding true
}
android.applicationVariants.all { variant ->
@@ -66,32 +55,19 @@ android {
}
}
repositories {
flatDir {
dirs 'libs'
}
mavenCentral()
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation files('libs/gson-2.1.jar')
implementation "com.android.support:appcompat-v7:${support_version}"
implementation "com.android.support:support-v4:${support_version}"
implementation "com.android.support:preference-v7:${support_version}"
implementation "com.android.support:design:${support_version}"
implementation "com.android.support:cardview-v7:${support_version}"
// implementation 'com.writingminds:FFmpegAndroid:0.3.2'
implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'com.github.chrisbanes:PhotoView:1.3.0'
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.budiyev.android:code-scanner:1.9.4'
testImplementation 'junit:junit:4.12'
implementation libs.androidx.core.ktx
implementation libs.androidx.appcompat
implementation libs.androidx.constraintlayout
implementation libs.androidx.recyclerview
implementation libs.androidx.swiperefreshlayout
implementation libs.material.components
implementation libs.glide
implementation libs.code.scanner
implementation project(':ijkplayer-java')
implementation project(':photoview')
testImplementation libs.junit
androidTestImplementation libs.androidx.junit
androidTestImplementation libs.androidx.espresso.core
}