-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
87 lines (74 loc) · 2.25 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
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}
ext{
version_code = 17
version_name = "1.0.17"
}
android {
compileSdk 31
defaultConfig {
minSdk 21
targetSdk 31
versionCode version_code
versionName "$version_name"
buildConfigField("String", "ANDROID_BRIDGE", "\"AndroidBridge\"")
buildConfigField("String", "FOREM_AGENT_EXTENSION", "\"ForemWebView/$version_name\"")
buildConfigField("String", "PASSPORT_AGENT_EXTENSION", "\"ForemWebView/passport\"")
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
dependencies {
implementation("androidx.appcompat:appcompat:1.4.2")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.fragment:fragment-ktx:1.4.1")
// Glide
implementation 'com.github.bumptech.glide:glide:4.13.2'
annotationProcessor 'com.github.bumptech.glide:compiler:4.13.2'
// WebView
implementation("androidx.browser:browser:1.4.0")
// Lifecycle
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0")
// Exoplayer
implementation("com.google.android.exoplayer:exoplayer-core:2.17.1")
implementation("com.google.android.exoplayer:exoplayer-hls:2.17.1")
implementation("com.google.android.exoplayer:extension-mediasession:2.17.1")
implementation("com.google.android.exoplayer:exoplayer-ui:2.17.1")
// Gson
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
// Push notifications - FCM
implementation("com.google.firebase:firebase-analytics:21.0.0")
implementation("com.google.firebase:firebase-messaging:23.0.5")
testImplementation(
'androidx.test.ext:junit:1.1.1',
'com.google.truth:truth:1.1.3',
'junit:junit:4.12',
'org.robolectric:robolectric:4.5',
)
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.forem'
artifactId = 'ForemWebView-android'
version = "$version_name"
}
}
}
}