Skip to content

Commit f11d5a8

Browse files
feat(#174): initiate games module (#119)
1 parent 3b1f628 commit f11d5a8

File tree

6 files changed

+33
-1
lines changed

6 files changed

+33
-1
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
[submodule "app/src/main/jni/core"]
55
path = app/src/main/jni/core
66
url = https://github.com/brainwallet-co/core.git
7+
[submodule "modules/games"]
8+
path = modules/games
9+
url = https://github.com/gruntsoftware/android-games.git
10+
update = none

app/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ dependencies {
188188
}
189189
}
190190

191+
val gamesModule = findProject(":modules:games:content")
192+
if (gamesModule != null) {
193+
implementation(gamesModule)
194+
} else {
195+
logger.lifecycle("⚠️ Submodule ':modules:games:content' not found — skipping dependency")
196+
}
197+
191198
implementation("androidx.webkit:webkit:1.9.0")
192199
implementation(libs.androidx.core)
193200
implementation(libs.androidx.appcompat)

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Top-level build file where you can add configuration options common to all sub-projects/modules.
33
plugins {
44
alias(libs.plugins.android.application) apply false
5+
alias(libs.plugins.android.library) apply false
56
alias(libs.plugins.jetbrains.kotlin.android) apply false
67
alias(libs.plugins.jetbrains.kotlin.compose) apply false
78
alias(libs.plugins.jetbrains.kotlin.kapt) apply false

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ squareup-okhttp = ["squareup-okhttp", "squareup-okhttp-logging-interceptor"]
135135

136136
[plugins]
137137
android-application = { id = "com.android.application", version.ref = "agp" }
138+
android-library = { id = "com.android.library", version.ref = "agp" }
138139
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
139140
jetbrains-kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
140141
jetbrains-kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version = "2.1.0" }
141142
jetbrains-kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
142143
google-services = { id = "com.google.gms.google-services", version = "4.4.2" }
143144
firebase-crashlytics = { id = "com.google.firebase.crashlytics", version = "3.0.2" }
144-
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
145+
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

modules/games

Submodule games added at a5f408c

settings.gradle.kts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,33 @@ pluginManagement {
1111
gradlePluginPortal()
1212
}
1313
}
14+
1415
dependencyResolutionManagement {
1516
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
1617
repositories {
1718
google()
1819
mavenCentral()
1920
}
21+
22+
versionCatalogs {
23+
val gamesToml = file("modules/games/gradle/libs.versions.toml")
24+
if (gamesToml.exists()) {
25+
create("games") {
26+
from(files(gamesToml))
27+
}
28+
} else {
29+
logger.lifecycle("⚠️ Submodule catalog 'games' not loaded — file not found: $gamesToml")
30+
}
31+
}
2032
}
2133

2234
rootProject.name = "Brainwallet Android"
2335
include(":app")
2436
include(":install_time_asset_pack")
2537

38+
val gamesDir = file("modules/games/content")
39+
if (gamesDir.exists()) {
40+
include(":modules:games:content")
41+
} else {
42+
logger.lifecycle("⚠️ Submodule ':modules:games:content' not included — folder not found: $gamesDir")
43+
}

0 commit comments

Comments
 (0)