-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbuild.gradle
More file actions
71 lines (64 loc) · 2.73 KB
/
Copy pathbuild.gradle
File metadata and controls
71 lines (64 loc) · 2.73 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 28
compileSdkVersion = 36
targetSdkVersion = 36
ndkVersion = "27.1.12297006"
kotlinVersion = "2.1.20"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:8.5.2")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
classpath 'com.google.gms:google-services:4.4.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
classpath 'com.instabug.library:instabug-plugin:12.0.0'
classpath 'com.google.firebase:firebase-appdistribution-gradle:5.0.0'
// Google Play Publisher plugin for uploading AAB to Play Console
classpath 'com.github.triplet.gradle:play-publisher:3.10.1'
}
}
plugins {
id 'com.google.devtools.ksp' version '2.1.20-2.0.1' apply false
id 'org.jetbrains.kotlin.plugin.compose' version '2.1.20' apply false
}
apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
// Load local.properties once for reuse in maven repos
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withInputStream { localProperties.load(it) }
}
maven {
url = uri("https://maven.pkg.github.com/trustwallet/wallet-core")
credentials {
// Read from local.properties, gradle.properties, or environment variables
username = localProperties.getProperty("gpr.user") ?: project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = localProperties.getProperty("gpr.key") ?: project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
// Flow Wallet Kit (Android) from GitHub Packages
maven {
url = uri("https://maven.pkg.github.com/onflow/Flow-Wallet-Kit")
credentials {
// Read from local.properties, gradle.properties, or environment variables
username = localProperties.getProperty("gpr.user") ?: project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = localProperties.getProperty("gpr.key") ?: project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}