Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
ritessshhh authored Dec 27, 2024
1 parent b918d32 commit 3abc3f4
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ android {
targetSdkVersion rootProject.ext.rtTargetSdkVersion
versionCode rootProject.ext.rtVersionCode
versionName rootProject.ext.rtVersionName
// default is signed by the Android default key

multiDexEnabled true
}
Expand All @@ -19,13 +18,8 @@ android {
unitTests.returnDefaultValues = true
}

// Create a variable called keystorePropertiesFile, and initialize it to your
// keystore.properties file, in the sample_config_files folder, inside app/src.
def keystorePropertiesFile = rootProject.file("app/src/sample_config_files/sample_keystore.properties")
// Initialize a new Properties() object called keystoreProperties
def keystoreProperties = new Properties()

// Load your keystore.properties file into the keystoreProperties object.
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

signingConfigs {
Expand All @@ -38,7 +32,6 @@ android {
}

buildTypes {

release {
signingConfig signingConfigs.android
minifyEnabled false
Expand All @@ -47,18 +40,12 @@ android {
debug {
debuggable true
}

// This release includes the DEBUG selector and other various debug support features.
//
release_dbg {
debuggable true
signingConfig signingConfigs.android
}

}

// define apk naming behavior
// define apk naming behavior
applicationVariants.all { variant ->
variant.outputs.each { output ->
def project = "robotutor"
Expand All @@ -67,30 +54,31 @@ android {
def version = variant.versionName

def newApkName = project + SEP + buildType + SEP + version + ".apk"
// new File(output.outputFile.parent, newApkName)
output.outputFileName = new File("./../../../../../build/", newApkName)
}
}

lintOptions {
// set to true to turn off analysis progress reporting by lint
quiet false
// if true, stop the gradle build if errors are found
abortOnError false
// if true, only report errors
ignoreWarnings true
}

apply from: "checkstyle.gradle"
afterEvaluate{
afterEvaluate {
preBuild.dependsOn('checkstyle')
check.dependsOn 'checkstyle'
}

}

repositories {
google()
mavenCentral()
maven {
// Added the custom Maven repository
url 'http://maven.xdja.com:8081/nexus3/repository/aliyun/'
}
}

dependencies {
Expand Down Expand Up @@ -130,7 +118,8 @@ dependencies {
implementation project(path: ':comp_spelling')

implementation project(path: ':comp_intervention')
implementation 'com.blankj:utilcode:1.30.6'
// Updated dependency to use the exact version from the custom repository
implementation 'com.blankj:utilcode:1.24.4'
implementation 'com.github.RoboTutorLLC:ScreenRecordHelper:1.0.0'
implementation 'com.github.HBiSoft:HBRecorder:2.0.3'
}
Expand Down

0 comments on commit 3abc3f4

Please sign in to comment.