-
Notifications
You must be signed in to change notification settings - Fork 117
/
build.gradle
107 lines (92 loc) · 3.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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
namespace "it.airgap.wallet"
compileSdkVersion project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 31
defaultConfig {
applicationId "it.airgap.wallet"
minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 21
targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 31
versionCode 1
versionName "0.0.0"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
buildFeatures {
buildConfig true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = '17'
}
flavorDimensions "repository"
productFlavors {
playstore {
dimension "repository"
isDefault true
buildConfigField("String", "PRODUCT_FLAVOR", '"playstore"')
}
fdroid {
dimension "repository"
buildConfigField("String", "PRODUCT_FLAVOR", '"fdroid"')
}
}
lint {
disable 'MissingDefaultResource'
}
}
repositories {
google()
jcenter()
flatDir{
dirs '../capacitor-cordova-android-plugins/src/main/libs', 'libs'
}
mavenCentral()
}
dependencies {
implementation "androidx.core:core-splashscreen:$coreSplashScreenVersion"
implementation "androidx.coordinatorlayout:coordinatorlayout:$androidxCoordinatorLayoutVersion"
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.1"
implementation 'androidx.webkit:webkit:1.7.0'
implementation project(':capacitor-android')
testImplementation "junit:junit:$junitVersion"
androidTestImplementation "androidx.test:core:$androidxTestCoreVersion"
androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
implementation project(':capacitor-cordova-android-plugins')
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
def coroutinesVersion = "1.6.4"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
def saplingVersion = "0.0.7"
implementation "com.github.airgap-it:airgap-sapling:$saplingVersion"
implementation "org.bouncycastle:bcprov-jdk15on:1.70"
implementation "androidx.javascriptengine:javascriptengine:1.0.0-alpha05"
implementation 'com.google.guava:listenablefuture:1.0'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-guava:$coroutinesVersion"
}
apply from: 'capacitor.build.gradle'
configurations.each {
if (it.name.startsWith("fdroid")) {
it.exclude group: 'com.google.firebase', module: ''
it.exclude group: 'com.google.android.gms', module: ''
}
}
try {
def servicesJSON = file('google-services.json')
if (servicesJSON.text) {
apply plugin: 'com.google.gms.google-services'
}
} catch(Exception e) {
logger.warn("google-services.json not found, google-services plugin not applied. Push Notifications won't work")
}