-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
147 lines (122 loc) · 4.18 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
apply plugin: "com.github.ben-manes.versions"
apply plugin: "com.android.application"
apply plugin: "kotlin-android"
def ext = rootProject.ext
buildscript {
ext {
sdkVersion = "9.5.0"
kotlin_version = "1.9.25"
kotlin_stdlib = "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
androidSettings = [
min_sdk_version : 28,
target_sdk_version : 34,
compile_sdk_version: 34,
version_code : 4
]
}
repositories {
gradlePluginPortal()
google()
}
dependencies {
classpath "com.github.ben-manes:gradle-versions-plugin:0.42.0"
classpath 'com.android.tools.build:gradle:8.7.3'
classpath "com.google.gms:google-services:4.3.13"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
}
}
apply from: rootProject.file("appversion.gradle")
group = "co.reachfive.identity.sdk.demo"
version = appversion
android {
compileSdkVersion androidSettings.compile_sdk_version
defaultConfig {
applicationId "co.reachfive.identity.sdk.demo"
minSdkVersion androidSettings.min_sdk_version
targetSdkVersion androidSettings.target_sdk_version
versionCode androidSettings.version_code
versionName this.version
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
viewBinding true
}
signingConfigs {
release {
storeFile file("keystore.jks")
storePassword "reachfive"
keyAlias "reachfive"
keyPassword "reachfive"
}
debug {
storeFile file("debug.keystore")
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.release
}
}
compileOptions {
sourceCompatibility = 21
targetCompatibility = 21
}
testOptions {
unitTests.includeAndroidResources = true
}
lint {
abortOnError false
}
namespace 'co.reachfive.identity.sdk.demo'
tasks.withType(Test) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
}
repositories {
google()
mavenCentral()
maven {
url "https://s01.oss.sonatype.org/content/repositories/snapshots/"
mavenContent {
snapshotsOnly()
}
}
mavenLocal()
}
dependencies {
implementation "co.reachfive.identity:sdk-core:$sdkVersion"
implementation "co.reachfive.identity:sdk-facebook:$sdkVersion"
implementation "co.reachfive.identity:sdk-google:$sdkVersion"
implementation "co.reachfive.identity:sdk-webview:$sdkVersion"
implementation "co.reachfive.identity:sdk-wechat:$sdkVersion"
implementation "androidx.appcompat:appcompat:1.4.2"
implementation "androidx.cardview:cardview:1.0.0"
implementation "io.github.cdimascio:java-dotenv:5.2.2"
implementation 'com.google.android.material:material:1.0.0'
implementation ext.kotlin_stdlib
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.test.ext:truth:1.4.0"
androidTestImplementation "androidx.test:core-ktx:1.4.0"
androidTestImplementation "androidx.test:runner:1.4.0"
androidTestImplementation "androidx.test:rules:1.4.0"
androidTestImplementation "androidx.test.ext:junit-ktx:1.1.3"
}
task listrepos {
doLast {
println "Repositories:"
project.repositories.each { println "Name: " + it.name + "; url: " + it.url }
}
}