diff --git a/Intro/androidApp/build.gradle.kts b/Intro/androidApp/build.gradle.kts index 637e634..ce5fa17 100644 --- a/Intro/androidApp/build.gradle.kts +++ b/Intro/androidApp/build.gradle.kts @@ -30,6 +30,7 @@ dependencies { } android { + namespace = "io.realm.example.kmmsample.androidApp" signingConfigs { getByName("debug") { keyAlias = "androiddebugkey" @@ -65,3 +66,9 @@ android { targetCompatibility = JavaVersion.VERSION_1_8 } } + +tasks.withType().all { + kotlinOptions { + jvmTarget = "1.8" + } +} diff --git a/Intro/androidApp/src/main/AndroidManifest.xml b/Intro/androidApp/src/main/AndroidManifest.xml index d32969c..d6ec95e 100644 --- a/Intro/androidApp/src/main/AndroidManifest.xml +++ b/Intro/androidApp/src/main/AndroidManifest.xml @@ -16,8 +16,7 @@ ~ limitations under the License. --> - + - + diff --git a/Intro/shared/src/androidUnitTest/kotlin/io/realm/example/kmmsample/GreetingTestAndroid.kt b/Intro/shared/src/androidUnitTest/kotlin/io/realm/example/kmmsample/GreetingTestAndroid.kt new file mode 100644 index 0000000..e9e48e2 --- /dev/null +++ b/Intro/shared/src/androidUnitTest/kotlin/io/realm/example/kmmsample/GreetingTestAndroid.kt @@ -0,0 +1,30 @@ +/* + * Copyright 2020 JetBrains s.r.o. + * Copyright 2020 Realm Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package io.realm.example.kmmsample + +import org.junit.Assert.assertTrue +import org.junit.Test + +class GreetingTestAndroid { + + @Test + fun testExample() { + assertTrue("Check Android is mentioned", Greeting().greeting().contains("Android")) + } +}