V1.2(3) 适配16kb
This commit is contained in:
parent
9db6a7e2b5
commit
c4230c9755
@ -1,10 +1,11 @@
|
|||||||
import java.util.Date
|
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Date
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
alias(libs.plugins.android.application)
|
alias(libs.plugins.android.application)
|
||||||
alias(libs.plugins.kotlin.android)
|
alias(libs.plugins.kotlin.android)
|
||||||
id("io.objectbox")
|
id("io.objectbox")
|
||||||
id ("kotlin-kapt")
|
id("kotlin-kapt")
|
||||||
id("com.google.gms.google-services")
|
id("com.google.gms.google-services")
|
||||||
id("com.google.firebase.crashlytics")
|
id("com.google.firebase.crashlytics")
|
||||||
}
|
}
|
||||||
@ -17,15 +18,18 @@ android {
|
|||||||
applicationId = "com.sketch.ar.artdrawing"
|
applicationId = "com.sketch.ar.artdrawing"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 36
|
targetSdk = 36
|
||||||
versionCode = 2
|
versionCode = 3
|
||||||
versionName = "1.1"
|
versionName = "1.2"
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
setProperty(
|
setProperty(
|
||||||
"archivesBaseName",
|
"archivesBaseName",
|
||||||
"AR Art Drawing_V" + versionName + "(${versionCode})_$timestamp"
|
"AR Art Drawing_V" + versionName + "(${versionCode})_$timestamp"
|
||||||
)
|
)
|
||||||
|
ndk {
|
||||||
|
abiFilters += setOf("armeabi-v7a", "arm64-v8a", "x86_64")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
ndkVersion = "28.2.13676358"
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
isMinifyEnabled = true
|
isMinifyEnabled = true
|
||||||
@ -42,11 +46,34 @@ android {
|
|||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "11"
|
jvmTarget = "11"
|
||||||
}
|
}
|
||||||
buildFeatures{
|
buildFeatures {
|
||||||
viewBinding = true
|
viewBinding = true
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
tasks.register("listSoDependencies") {
|
||||||
|
doLast {
|
||||||
|
android.applicationVariants.forEach { variant ->
|
||||||
|
println("=== Variant: ${variant.name} ===")
|
||||||
|
|
||||||
|
// 获取可解析的 runtimeClasspath
|
||||||
|
val runtimeClasspath = variant.runtimeConfiguration
|
||||||
|
|
||||||
|
runtimeClasspath.incoming.artifacts.artifactFiles.files.forEach { file ->
|
||||||
|
if (file.extension == "aar") {
|
||||||
|
val aarTree = zipTree(file)
|
||||||
|
aarTree.matching { include("**/*.so") }.files.forEach { so ->
|
||||||
|
if (so.name == "libimage_processing_util_jni.so") {
|
||||||
|
println("${file.name} -> ${so.name}")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
||||||
implementation(libs.androidx.core.ktx)
|
implementation(libs.androidx.core.ktx)
|
||||||
@ -58,11 +85,11 @@ dependencies {
|
|||||||
androidTestImplementation(libs.androidx.junit)
|
androidTestImplementation(libs.androidx.junit)
|
||||||
androidTestImplementation(libs.androidx.espresso.core)
|
androidTestImplementation(libs.androidx.espresso.core)
|
||||||
|
|
||||||
implementation ("com.github.bumptech.glide:glide:4.16.0")
|
implementation("com.github.bumptech.glide:glide:4.16.0")
|
||||||
kapt ("com.github.bumptech.glide:compiler:4.16.0")
|
kapt("com.github.bumptech.glide:compiler:4.16.0")
|
||||||
implementation ("com.caverock:androidsvg:1.4")
|
implementation("com.caverock:androidsvg:1.4")
|
||||||
|
|
||||||
val camerax_version = "1.1.0-beta01"
|
val camerax_version = "1.5.0"
|
||||||
//noinspection GradleDependency
|
//noinspection GradleDependency
|
||||||
implementation("androidx.camera:camera-core:${camerax_version}")
|
implementation("androidx.camera:camera-core:${camerax_version}")
|
||||||
//noinspection GradleDependency
|
//noinspection GradleDependency
|
||||||
@ -154,14 +181,14 @@ dependencies {
|
|||||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
|
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1")
|
||||||
|
|
||||||
//Fyber
|
//Fyber
|
||||||
implementation( "com.thinkup.sdk:adapter-tpn-fyber:6.5.36")
|
implementation("com.thinkup.sdk:adapter-tpn-fyber:6.5.36")
|
||||||
implementation( "com.fyber:marketplace-sdk:8.3.7")
|
implementation("com.fyber:marketplace-sdk:8.3.7")
|
||||||
implementation( "com.google.android.gms:play-services-ads-identifier:18.0.1")
|
implementation("com.google.android.gms:play-services-ads-identifier:18.0.1")
|
||||||
|
|
||||||
//Tramini
|
//Tramini
|
||||||
implementation( "com.thinkup.sdk:tramini-plugin-tpn:6.5.36")
|
implementation("com.thinkup.sdk:tramini-plugin-tpn:6.5.36")
|
||||||
// Debugger UI Tools
|
// Debugger UI Tools
|
||||||
implementation ("com.thinkup.sdk:debugger-ui:1.1.2")
|
implementation("com.thinkup.sdk:debugger-ui:1.1.2")
|
||||||
|
|
||||||
//----------------------------------------------TopOn
|
//----------------------------------------------TopOn
|
||||||
}
|
}
|
||||||
@ -14,7 +14,7 @@ import com.sketch.ar.artdrawing.main.MainCategoryActivity
|
|||||||
|
|
||||||
|
|
||||||
class FirstOpenActivity : AppCompatActivity() {
|
class FirstOpenActivity : AppCompatActivity() {
|
||||||
private val countTime = 11000L
|
private val countTime = 12000L
|
||||||
private var countDownTimer: CountDownTimer? = null
|
private var countDownTimer: CountDownTimer? = null
|
||||||
|
|
||||||
private lateinit var textView: TextView
|
private lateinit var textView: TextView
|
||||||
|
|||||||
@ -8,6 +8,6 @@ plugins {
|
|||||||
}
|
}
|
||||||
buildscript{
|
buildscript{
|
||||||
dependencies{
|
dependencies{
|
||||||
classpath("io.objectbox:objectbox-gradle-plugin:4.0.3")
|
classpath("io.objectbox:objectbox-gradle-plugin:5.0.1")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user