Skip to content

Commit

Permalink
Developer`s guide, release notes and licence are copied into release …
Browse files Browse the repository at this point in the history
…folder.
  • Loading branch information
Abdullah Cengiz committed Nov 7, 2017
1 parent 5806cac commit 8153ca9
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ task copyAARToReleaseFolder() << {
def apkPath = project.rootDir.path + '/app/build/outputs/apk'
def aarPath = project.rootDir.path + "/" + "libmobiletagging/build/outputs/aar"
def javadocPath = project.rootDir.path + "/" + "libmobiletagging/build/docs"
def notesPath = project.rootDir.path + "/" + "libmobiletagging"
def guidePath = project.rootDir.path + "/" + "libmobiletagging"

mkdir(path)
def documentationPath = path + "/Documentation"
Expand All @@ -65,6 +67,10 @@ task copyAARToReleaseFolder() << {

copyJavaDocToReleaseFolder(javadocPath,documentationPath)

copyNotesToReleaseFolder(notesPath,path)

copyDevelopersGuideToReleaseFolder(guidePath,documentationPath)

copy {
from(aarPath) {
include "*-${version}.aar"
Expand All @@ -90,20 +96,35 @@ def copyAPKToReleaseFolder(apkPath,samplePath){
}
into samplePath
}
}

def copyNotesToReleaseFolder(notesPath,rootPath){
copy {
from(notesPath) {
include "licence.txt"
include "release-notes.txt"
}
into rootPath
}
}

def copyJavaDocToReleaseFolder(javaDocPath,documentationPath){
def copyDevelopersGuideToReleaseFolder(guidePath,documentationPath){
copy {
from(guidePath) {
include "*Android.pdf"
}
into documentationPath
}

println "javaDocPath : ????? " + javaDocPath
println "documentationPath : ????? " + documentationPath
}

def copyJavaDocToReleaseFolder(javaDocPath,documentationPath){
copy {
from(javaDocPath) {
from "docs"
}
into documentationPath
}

}


Expand Down

0 comments on commit 8153ca9

Please sign in to comment.