-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
191 lines (184 loc) · 5.57 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
version = "4.0.3"
android {
compileSdkVersion 33
defaultConfig {
applicationId "se.kantarsifo.mobileanalytics.sampleapp"
minSdkVersion 16
targetSdkVersion 33
versionCode 1
versionName version
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
// applicationVariants.all { variant ->
// variant.outputs.each { output ->
// def outputFile = output.outputFile
// if (outputFile != null && outputFile.name.endsWith('debug.apk')) {
// def fileName = "kantarsifo-mobileanalytics.sample-${version}.apk"
// output.outputFile = new File(outputFile.parent, fileName)
// }
// }
// }
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':libmobiletagging')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation "androidx.preference:preference-ktx:1.1.0"
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.squareup.picasso:picasso:2.71828'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'androidx.test:core-ktx:1.4.0'
}
//task copyAARToReleaseFolder() << {
//
// def path = project.rootDir.path + "/Kantar-Sifo-Mobile-Analytics-Android-SDK-${version}"
// 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"
// def standaloneSamplePath = project.rootDir.path + "/" + "sample"
//
// mkdir(path)
// def documentationPath = path + "/Documentation"
// def frameworkPath = path + "/Framework"
// def samplePath = path + "/Sample"
//
// def sampleAppPath = path + "/Sample"
// def sampleAppLibraryPath = path + "/Sample/KantarSifoSampleApp/app/libs"
//
// mkdir(documentationPath)
// mkdir(frameworkPath)
// mkdir(samplePath)
//
// copyAPKToReleaseFolder(apkPath,samplePath)
//
// copyJavaDocToReleaseFolder(javadocPath,documentationPath)
//
// copyNotesToReleaseFolder(notesPath,path)
//
// copyDevelopersGuideToReleaseFolder(guidePath,documentationPath)
//
// copySampleToReleaseFolder(standaloneSamplePath,sampleAppPath)
//
//
// copy {
// from(aarPath) {
// include "*-${version}.aar"
// }
// into frameworkPath
// }
//
// copy {
// from(aarPath) {
// include "*-${version}.aar"
// }
// into sampleAppLibraryPath
// }
//
// //To copy src folder inside standalone sample app
// def standaloneSampleSourcePath = path + "/Sample/KantarSifoSampleApp/app/src"
// def srcPath = project.rootDir.path + '/app/src'
// copySRCToStandaloneSampleProject(srcPath,standaloneSampleSourcePath)
//
// zipReleaseFolder.execute()
//}
//
//def copyAPKToReleaseFolder(apkPath,samplePath){
// copy {
// from(apkPath) {
// include "*-${version}.apk"
// }
// into samplePath
// }
//}
//
//def copyNotesToReleaseFolder(notesPath,rootPath){
// copy {
// from(notesPath) {
// include "licence.txt"
// include "release-notes.txt"
// }
// into rootPath
// }
//}
//
//def copyDevelopersGuideToReleaseFolder(guidePath,documentationPath){
// copy {
// from(guidePath) {
// include "*Android.pdf"
// }
// into documentationPath
// }
//
//}
//
//def copyJavaDocToReleaseFolder(javaDocPath,documentationPath){
// copy {
// from(javaDocPath) {
// from "docs"
// }
// into documentationPath
// }
//}
//
//def copySampleToReleaseFolder(standaloneSamplePath,samplePath){
// copy {
// from(standaloneSamplePath) {
// from "KantarSifoSampleApp"
// }
// into samplePath
// }
//}
//
//def copySRCToStandaloneSampleProject(srcPath,standaloneSampleSourcePath){
// copy {
// from(srcPath) {
// from "src"
// }
// into standaloneSampleSourcePath
// }
//}
//
//task zipReleaseFolder(type: Zip){
// from project.rootDir.path + "/Kantar-Sifo-Mobile-Analytics-Android-SDK-${version}"
// include '*'
// include '*/*' //to include contents of a folder present inside Reports directory
// archiveName "/Kantar-Sifo-Mobile-Analytics-Android-SDK-${version}" + '.zip'
// destinationDir(file(project.rootDir.path))
//}
//
//
//afterEvaluate {
//
// copyAARToReleaseFolder.dependsOn assembleRelease
// copyAARToReleaseFolder.dependsOn assembleDebug
//
// assembleRelease.doLast {
// copyAARToReleaseFolder.execute()
// }
//
// assembleDebug.doLast {
// copyAARToReleaseFolder.execute()
// }
//}
//