Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

Commit

Permalink
Adding version number to output apk name
Browse files Browse the repository at this point in the history
  • Loading branch information
Loukious committed Dec 22, 2023
1 parent 4edd6af commit 8067b1e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
applicationVariants.all{
variant ->
variant.outputs.each{
output->
def name = "mPro-v${variant.versionName}.apk"
output.outputFileName = name
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
Expand All @@ -34,7 +42,6 @@ android {
}
}

// adb install C:\Users\Amin\Programmation\Android\MessengerPro2\app\build\outputs\apk\debug\app-debug.apk

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
Expand Down

0 comments on commit 8067b1e

Please sign in to comment.