Skip to content

Commit 04bf6d5

Browse files
committed
Cleanup
1 parent ce1b6b2 commit 04bf6d5

File tree

13 files changed

+128
-6
lines changed

13 files changed

+128
-6
lines changed

.idea/gradle.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ android {
2626
}
2727
}
2828
compileOptions {
29-
sourceCompatibility JavaVersion.VERSION_1_8
30-
targetCompatibility JavaVersion.VERSION_1_8
29+
sourceCompatibility JavaVersion.VERSION_11
30+
targetCompatibility JavaVersion.VERSION_11
3131
}
3232
kotlinOptions {
33-
jvmTarget = '1.8'
33+
jvmTarget = '11'
3434
}
3535
buildFeatures {
3636
compose true
@@ -46,6 +46,7 @@ android {
4646
}
4747

4848
dependencies {
49+
implementation project(path: ':showcase')
4950

5051
implementation 'androidx.core:core-ktx:1.7.0'
5152
implementation "androidx.compose.ui:ui:$compose_version"

app/src/main/java/com/canopas/campose/jettaptarget/MainActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ import androidx.compose.ui.unit.dp
4949
import androidx.compose.ui.unit.sp
5050
import com.canopas.campose.jettaptarget.ui.theme.JetTapTargetTheme
5151
import com.canopas.campose.jettaptarget.ui.theme.ThemeColor
52+
import com.canopas.campose.showcase.IntroShowCase
53+
import com.canopas.campose.showcase.ShowcaseProperty
5254

5355
class MainActivity : ComponentActivity() {
5456
override fun onCreate(savedInstanceState: Bundle?) {

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
buildscript {
22
ext {
3-
compose_version = '1.0.1'
3+
compose_version = '1.1.0-beta04'
44
}
55
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
66
plugins {
77
id 'com.android.application' version '7.1.0' apply false
88
id 'com.android.library' version '7.1.0' apply false
9-
id 'org.jetbrains.kotlin.android' version '1.5.21' apply false
9+
id 'org.jetbrains.kotlin.android' version '1.6.0' apply false
1010
}
1111

1212
task clean(type: Delete) {

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ dependencyResolutionManagement {
1414
}
1515
rootProject.name = "JetTapTarget"
1616
include ':app'
17+
include ':showcase'

showcase/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

showcase/build.gradle

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'org.jetbrains.kotlin.android'
4+
}
5+
6+
android {
7+
compileSdk 31
8+
9+
defaultConfig {
10+
minSdk 21
11+
targetSdk 31
12+
13+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
consumerProguardFiles "consumer-rules.pro"
15+
}
16+
17+
buildTypes {
18+
release {
19+
minifyEnabled false
20+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21+
}
22+
}
23+
24+
compileOptions {
25+
sourceCompatibility JavaVersion.VERSION_11
26+
targetCompatibility JavaVersion.VERSION_11
27+
}
28+
kotlinOptions {
29+
jvmTarget = '11'
30+
}
31+
buildFeatures {
32+
compose true
33+
}
34+
composeOptions {
35+
kotlinCompilerExtensionVersion compose_version
36+
}
37+
}
38+
39+
dependencies {
40+
41+
implementation 'androidx.core:core-ktx:1.7.0'
42+
implementation 'androidx.appcompat:appcompat:1.4.1'
43+
implementation 'com.google.android.material:material:1.5.0'
44+
implementation 'androidx.compose.ui:ui:1.0.5'
45+
testImplementation 'junit:junit:4.13.2'
46+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
47+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
48+
49+
implementation "androidx.compose.ui:ui:$compose_version"
50+
implementation "androidx.compose.material:material:$compose_version"
51+
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
52+
implementation "androidx.compose.material:material-icons-extended:$compose_version"
53+
}

showcase/consumer-rules.pro

Whitespace-only changes.

showcase/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.canopas.campose.showcase
2+
3+
import androidx.test.ext.junit.runners.AndroidJUnit4
4+
import androidx.test.platform.app.InstrumentationRegistry
5+
import org.junit.Assert.assertEquals
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
/**
10+
* Instrumented test, which will execute on an Android device.
11+
*
12+
* See [testing documentation](http://d.android.com/tools/testing).
13+
*/
14+
@RunWith(AndroidJUnit4::class)
15+
class ExampleInstrumentedTest {
16+
@Test
17+
fun useAppContext() {
18+
// Context of the app under test.
19+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
20+
assertEquals("com.canopas.campose.showcase.test", appContext.packageName)
21+
}
22+
}

0 commit comments

Comments
 (0)