Skip to content

Commit

Permalink
Merge pull request #66 from mattrob33/fix/play-store-availability
Browse files Browse the repository at this point in the history
Fix Play Store availability
  • Loading branch information
mattrob33 authored Jan 26, 2024
2 parents 1fb2c74 + 7c0030d commit 4a3dd01
Show file tree
Hide file tree
Showing 45 changed files with 135 additions and 347 deletions.
14 changes: 8 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

plugins {
id("com.android.application")
kotlin("android")
kotlin("kapt")
id("dagger.hilt.android.plugin")
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.hilt)
}

data class Version(
Expand All @@ -29,17 +29,19 @@ val localProps = Version(
* local.properties when running local builds.
*/

val appVersionCode: Int = 31
val appVersionCode: Int = 32
// cliProps.code ?:
// localProps.code ?:
// throw InvalidUserDataException("No versionCode provided. You must provide a version code via CLI properties or local.properties.")

val appVersionName: String = "8.0.0"
val appVersionName: String = "8.0.1"
// cliProps.name ?:
// localProps.name ?:
// throw InvalidUserDataException("No versionName provided. You must provide a version name via CLI properties or local.properties.")

android {
namespace="com.mattrobertson.greek.reader"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mattrobertson.greek.reader">
>

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
Expand Down
20 changes: 0 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
buildscript {
repositories {
mavenCentral()
google()
}

dependencies {
classpath("com.android.tools.build:gradle:${libs.versions.agp.get()}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${libs.versions.hilt.get()}")
}
}

allprojects {
repositories {
mavenCentral()
google()
}
}

tasks.register("clean", Delete::class) {
delete(rootProject.buildDir)
}
1 change: 1 addition & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ plugins {

repositories {
mavenCentral()
gradlePluginPortal()
}
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/AppConfig.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import org.gradle.api.JavaVersion
object AppConfig {

const val minSdk = 21
const val compileSdk = 32
const val compileSdk = 34
const val targetSdk = compileSdk
const val buildTools = "30.0.3"
const val buildTools = "34.0.0"

const val jvmTarget = "1.8"
val javaCompatibility = JavaVersion.VERSION_1_8
const val jvmTarget = "17"
val javaCompatibility = JavaVersion.VERSION_17

}
8 changes: 5 additions & 3 deletions core/db-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
}

android {
namespace="com.mattrobertson.greek.reader.db.api"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion core/db-api/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mattrobertson.greek.reader.db.api">
>

</manifest>

This file was deleted.

8 changes: 5 additions & 3 deletions core/db-internal/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
}

android {
namespace="com.mattrobertson.greek.reader.db.internal"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion core/db-internal/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mattrobertson.greek.reader.db.internal">
>

</manifest>

This file was deleted.

10 changes: 5 additions & 5 deletions core/settings/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import org.jetbrains.kotlin.kapt3.base.Kapt.kapt

plugins {
id("com.android.library")
id("kotlin-android")
kotlin("kapt")
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
}

android {
namespace="com.mattrobertson.greek.reader.settings"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down
2 changes: 1 addition & 1 deletion core/settings/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mattrobertson.greek.reader.settings">
>

</manifest>
17 changes: 10 additions & 7 deletions core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import com.google.protobuf.gradle.*

plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
id("com.google.protobuf") version "0.8.12"
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.protobuf)
}

android {
namespace="com.mattrobertson.greek.reader.ui"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down Expand Up @@ -63,12 +65,13 @@ dependencies {

protobuf {
protoc {
// latest version number: https://mvnrepository.com/artifact/com.google.protobuf/protoc
artifact = "com.google.protobuf:protoc:3.10.0"
// find latest version number here:
// https://mvnrepository.com/artifact/com.google.protobuf/protoc
artifact = libs.protobuf.protoc.get().toString()
}
generateProtoTasks {
all().forEach { task ->
task.plugins{
task.builtins {
create("java") {
option("lite")
}
Expand Down
2 changes: 1 addition & 1 deletion core/ui/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mattrobertson.greek.reader.ui">
>

</manifest>

This file was deleted.

6 changes: 4 additions & 2 deletions core/verseref/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
plugins {
id("com.android.library")
id("kotlin-android")
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
}

android {
namespace = "com.mattrobertson.greek.reader.verseref"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down
2 changes: 1 addition & 1 deletion core/verseref/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mattrobertson.greek.reader.verseref">
>

</manifest>
12 changes: 6 additions & 6 deletions feature/audio/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import org.jetbrains.kotlin.kapt3.base.Kapt.kapt

plugins {
id("com.android.library")
kotlin("android")
kotlin("kapt")
id("dagger.hilt.android.plugin")
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.kapt)
alias(libs.plugins.hilt)
}

android {
namespace="com.mattrobertson.greek.reader.audio"

compileSdk = AppConfig.compileSdk
buildToolsVersion = AppConfig.buildTools

Expand Down

This file was deleted.

Loading

0 comments on commit 4a3dd01

Please sign in to comment.