Skip to content

Commit 9c4eeb1

Browse files
Issue 1 - initial structure
1 parent 2ea9241 commit 9c4eeb1

File tree

12 files changed

+42
-30
lines changed

12 files changed

+42
-30
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
Dependencies.Retrofit.list.forEach { implementation(it) }
2+
implementation(project(Dependencies.Module.core_networking))
33
Dependencies.Kotlin.list.forEach { implementation(it) }
44
Dependencies.Support.list.forEach { implementation(it) }
55

app/src/androidTest/java/com/codandotv/streamplayerapp/ExampleInstrumentedTest.kt

Lines changed: 0 additions & 24 deletions
This file was deleted.

build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
}
88
dependencies {
99
classpath(Dependencies.Gradle.kotlinPlugin)
10+
classpath(Dependencies.Gradle.kotlinGradlePlugin)
1011
classpath(Dependencies.Gradle.androidTools)
1112
classpath(kotlin(Dependencies.Gradle.gradlePlugin, Versions.kotlin_version))
1213
}
@@ -92,9 +93,6 @@ fun Project.configureAppAndroid() {
9293
fun Project.configureAndroidLibrary() {
9394
apply(plugin = "com.android.library")
9495
apply(plugin = "org.jetbrains.kotlin.android")
95-
96-
configure<com.android.build.gradle.BaseExtension> {
97-
}
9896
}
9997

10098
tasks.register("clean").configure {

buildSrc/src/main/java/Dependencies.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ object Dependencies {
88
const val runnerPackage = "androidx.test.runner.AndroidJUnitRunner"
99

1010
object Module {
11+
const val core_networking = ":core-networking"
1112
}
1213

1314
val modules: List<String> by lazy {
1415
Module::class.memberProperties.map {
15-
it.name
16+
it.name.replace("_","-")
1617
}
1718
}
1819

@@ -21,6 +22,7 @@ object Dependencies {
2122
"org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin_version}"
2223
const val androidTools = "com.android.tools.build:gradle:${Versions.gradle_plugin_version}"
2324
const val gradlePlugin = "gradle-plugin"
25+
const val kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:${Versions.kotlin_version}"
2426
}
2527

2628
object Kotlin : GroupLibs {

buildSrc/src/main/java/Versions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ object Versions {
2121
const val constraint_motion_version = "2.1.3"
2222
const val kotlin_version = "1.8.0"
2323
const val androidx_core_ktx = "1.1.0"
24-
const val viewmodel_version = "2.0.0"
24+
const val viewmodel_version = "2.2.0"
2525
const val mockWebServer = "4.10.0"
2626
}

core-networking/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

core-networking/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dependencies {
2+
Dependencies.Retrofit.list.forEach { implementation(it) }
3+
Dependencies.Kotlin.list.forEach { implementation(it) }
4+
Dependencies.Support.list.forEach { implementation(it) }
5+
6+
Dependencies.UnitTest.list.forEach { testImplementation(it) }
7+
Dependencies.AndroidTest.list.forEach { androidTestImplementation(it) }
8+
}

core-networking/consumer-rules.pro

Whitespace-only changes.

core-networking/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile

0 commit comments

Comments
 (0)