Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion DemoApp/DemoAppKotlin/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ android {
namespace "co.optable.androidsdkdemo"

defaultConfig {
// TODO: Change
applicationId "co.optable.androidsdkdemo"
minSdkVersion 21
targetSdkVersion 34
Expand Down
16 changes: 5 additions & 11 deletions android_sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,10 @@ plugins {
id("de.nanogiants.android-versioning") version "2.4.0"
}

// TODO: Check
//apply plugin: 'de.mobilej.unmock'

//unMock {
// keep "android.net.Uri"
// keepStartingWith "libcore."
// keepAndRename "java.nio.charset.Charsets" to "xjava.nio.charset.Charsets"
//}

android {
compileSdk 34

defaultConfig {
// TODO: Check
namespace "co.optable"
minSdkVersion 23
targetSdkVersion 34
Expand Down Expand Up @@ -70,7 +60,11 @@ dependencies {

implementation 'com.google.android.gms:play-services-ads:24.6.0'

testImplementation 'junit:junit:4.13.2'
// Unit tests
testImplementation("junit:junit:4.13.2")
testImplementation("org.robolectric:robolectric:4.16")

// UI tests
androidTestImplementation 'androidx.test.ext:junit:1.2.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import android.net.Uri
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotEquals
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner

/**
* OptableSDK unit tests
*/
@RunWith(RobolectricTestRunner::class)
class OptableSDKUnitTest {

// TODO: Fix
@Test
fun eid_isCorrect() {
val expected = "e:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3"
Expand Down