Skip to content

Commit

Permalink
fix: SDK version in lib config
Browse files Browse the repository at this point in the history
  • Loading branch information
ttypic committed Jan 22, 2025
1 parent 0a791f6 commit a0a135e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chat-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ android {
buildConfig {
packageName("com.ably.chat")
useKotlinOutput { internalVisibility = true }
buildConfigField("APP_VERSION", provider { "\"${version}\"" })
buildConfigField("APP_VERSION", provider { version.toString() })
}

dependencies {
Expand Down
12 changes: 12 additions & 0 deletions chat-android/src/test/java/com/ably/chat/BuildConfigTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.ably.chat

import org.junit.Assert.assertTrue
import org.junit.Test

class BuildConfigTest {

@Test
fun `should hold app version without extra quotes`() {
assertTrue("""^\d+.\d+.\d+$""".toRegex().matches(BuildConfig.APP_VERSION))
}
}

0 comments on commit a0a135e

Please sign in to comment.