Skip to content

Commit

Permalink
Merge pull request #11 from sebastinto/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sebastinto authored Sep 11, 2022
2 parents e550f32 + cebfdb4 commit 13b9117
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 27 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id("com.android.application") version "7.2.1" apply false
id("com.android.library") version "7.2.1" apply false
kotlin("android") version "1.6.21" apply false
id("com.android.application") version "7.2.2" apply false
id("com.android.library") version "7.2.2" apply false
kotlin("android") version "1.7.10" apply false
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}

Expand Down
8 changes: 4 additions & 4 deletions buildSrc/src/main/kotlin/Configuration.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*/

object Configuration {
const val compileSdk = 31
const val targetSdk = 31
const val compileSdk = 33
const val targetSdk = 33
const val minSdk = 21
private const val majorVersion = 1
private const val minorVersion = 0
private const val patchVersion = 2
private const val patchVersion = 3
private const val qualifier = ""
const val versionName = "$majorVersion.$minorVersion.$patchVersion$qualifier"
const val sampleVersionCode = 2
const val sampleVersionCode = 3
const val sampleVersionName = "$majorVersion.$minorVersion.$patchVersion"
const val groupId = "com.tobianoapps"
const val artifactId = "bulletin"
Expand Down
23 changes: 12 additions & 11 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@ import Versions.materialVersion
import Versions.okhttpVersion

object Versions {
internal const val activityComposeVersion = "1.2.0-alpha08"
internal const val composeNavigationVersion = "2.5.0-beta01"
const val composeVersion = "1.2.0-beta02"
internal const val okhttpVersion = "4.9.3"
internal const val activityComposeVersion = "1.5.1"
internal const val composeNavigationVersion = "2.5.1"
internal const val composeVersion = "1.2.1"
const val composeCompilerVersion = "1.3.1"
internal const val okhttpVersion = "4.10.0"

const val materialVersion = "1.7.0-alpha01"
const val appcompatVersion = "1.4.1"
const val constraintLayoutVersion = "2.1.3"
const val materialVersion = "1.7.0-beta01"
const val appcompatVersion = "1.5.0"
const val constraintLayoutVersion = "2.1.4"
}

object Dependencies {
Expand All @@ -41,7 +42,7 @@ object Dependencies {
const val composeTooling = "androidx.compose.ui:ui-tooling:$composeVersion"
const val composeToolingPreview = "androidx.compose.ui:ui-tooling-preview:$composeVersion"

const val coreKtx = "androidx.core:core-ktx:1.7.0"
const val coreKtx = "androidx.core:core-ktx:1.8.0"

/* OkHttp */
const val okhttpBom = "com.squareup.okhttp3:okhttp-bom:$okhttpVersion"
Expand All @@ -64,8 +65,8 @@ object Dependencies {
const val testJunit = "junit:junit:4.13.2"
const val testTruth = "com.google.truth:truth:1.1.3"
const val testJson = "org.json:json:20220320"
const val testCoroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.2"
const val mockitoCore = "org.mockito:mockito-core:4.6.0"
const val testCoroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4"
const val mockitoCore = "org.mockito:mockito-core:4.8.0"
const val mockitoKotlin = "com.nhaarman:mockito-kotlin:1.6.0"
const val mockWebServer = "com.squareup.okhttp3:mockwebserver:4.9.3"
const val mockWebServer = "com.squareup.okhttp3:mockwebserver:4.10.0"
}
5 changes: 1 addition & 4 deletions bulletin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ android {
}

composeOptions {
kotlinCompilerExtensionVersion = Versions.composeVersion
kotlinCompilerExtensionVersion = Versions.composeCompilerVersion
}
}

Expand All @@ -77,9 +77,6 @@ dependencies {
implementation(platform(okhttpBom))
implementation(okhttp)

/*** Text Generator ***/
implementation(loremKotlinum)

/*** JAVA 8+ APIS ANDROID SDK < 26 ***/
coreLibraryDesugaring(desugar)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import java.util.*
class ExtensionsTest {

private val epochMillis = 1646113134534L
private val textZoneId = ZoneId.of("America/Chicago")

private val new = Change(changeType = NEW, summary = "new")
private val fixed = Change(changeType = FIXED, summary = "fixed")
Expand Down Expand Up @@ -110,7 +111,7 @@ class ExtensionsTest {
@Test
fun `localDate extensions without param return correct LocalDate`() {
Truth
.assertThat(epochMillis.localDate())
.assertThat(epochMillis.localDate(zoneId = textZoneId))
.isEqualTo("Feb 28, 2022")
}

Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ android {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = Versions.composeVersion
kotlinCompilerExtensionVersion = Versions.composeCompilerVersion
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import androidx.compose.ui.unit.sp
import com.tobianoapps.bulletin.components.BulletinScreen
import com.tobianoapps.bulletin.util.capitalized
import com.tobianoapps.bulletin.util.forceShowSnackbar
import com.tobianoapps.bulletin.util.generateRandomBulletin
import com.tobianoapps.sample.util.generateRandomBulletin
import com.tobianoapps.sample.data.customBulletinConfig
import com.tobianoapps.sample.data.customShape
import kotlinx.coroutines.launch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import androidx.compose.ui.unit.dp
import com.tobianoapps.bulletin.components.BulletinScreen
import com.tobianoapps.bulletin.data.config.BulletinConfig
import com.tobianoapps.bulletin.util.allCaps
import com.tobianoapps.bulletin.util.generateRandomBulletin
import com.tobianoapps.sample.util.generateRandomBulletin

@Composable
fun SampleDialogContentBulletin(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.tobianoapps.bulletin.util
package com.tobianoapps.sample.util

import com.tobianoapps.bulletin.data.*
import cz.quanti.quase.loremkotlinum.Lorem
Expand Down

0 comments on commit 13b9117

Please sign in to comment.