Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
c725a561
Commit
c725a561
authored
Nov 23, 2016
by
pedroGitt
Browse files
Add lib version as sufix in the aar file name
parent
04fd4c5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
java/android/OlmLibSdk/olm-sdk/build.gradle
View file @
c725a561
...
...
@@ -11,6 +11,7 @@ android {
targetSdkVersion
21
versionCode
1
versionName
"1.0"
version
"0.3.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes
{
...
...
@@ -61,6 +62,17 @@ android {
}
clean
.
dependsOn
cleanNative
libraryVariants
.
all
{
variant
->
variant
.
outputs
.
each
{
output
->
def
outputFile
=
output
.
outputFile
if
(
outputFile
!=
null
&&
outputFile
.
name
.
endsWith
(
'.aar'
))
{
def
fileName
=
outputFile
.
name
.
replace
(
".aar"
,
"-${version}.aar"
)
output
.
outputFile
=
new
File
(
outputFile
.
parent
,
fileName
)
}
}
}
}
def
getNdkFolder
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment