-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
81 lines (64 loc) · 1.97 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
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
}
}
plugins {
id 'maven-publish'
}
apply plugin: 'com.android.library'
ext {
bintrayRepo = 'cc-android-sdk'
bintrayName = 'cc-android-sdk' // Has to be same as your library module name
publishedGroupId = 'com.lotame'
libraryName = 'LotameAndroidSDK'
artifact = 'cc-android-sdk' // Has to be same as your library module name
libraryDescription = 'Lotame Platform Android SDK that enables sending data to Lotame from Android mobile apps.'
// Your github repo link
siteUrl = 'https://github.com/Lotame/cc-android-sdk'
gitUrl = 'https://github.com/Lotame/cc-android-sdk.git'
githubRepository= 'Lotame/cc-android-sdk'
libraryVersionCode = 7
libraryVersion = '2.7.0.0'
pomVersion = '2.7.0.0'
pomGroupID = 'com.lotame'
developerId = 'Lotame'
developerName = 'Lotame'
developerEmail = '[email protected]'
licenseName = 'MIT License'
licenseUrl = 'https://opensource.org/licenses/MIT'
allLicenses = ["MIT"]
}
android {
compileSdkVersion 33
defaultConfig {
minSdkVersion 14
targetSdkVersion 33
versionCode project.ext.libraryVersionCode
versionName "${project.ext.libraryVersion}"
}
}
task jar(type: Jar) {
archiveName "cc-android-sdk-${project.ext.libraryVersion}.jar"
from android.sourceSets.main.java.srcDirs
}
android.libraryVariants.all { variant ->
def name = variant.buildType.name
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompileProvider
task.from variant.javaCompile.destinationDirectory
artifacts.add('archives', task)
}
dependencies {
api 'androidx.appcompat:appcompat:1.0.0'
api 'com.google.android.gms:play-services-ads-lite:22.2.0'
}
repositories {
mavenCentral()
google()
}
apply from: 'maven-install.gradle'