Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup improvement #44

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
32 changes: 30 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,34 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Spotless check
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'corretto'
java-version: 17
- name: spotless
run: ./gradlew spotlessCheck

api_check:
name: API check
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
distribution: 'corretto'
java-version: 17
- name: API check
run: ./gradlew apiCheck

build:
strategy:
matrix:
Expand All @@ -32,7 +60,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v4.1.7

- name: Java and Gradle set up
if: matrix.platform != 'ios'
Expand Down Expand Up @@ -69,7 +97,7 @@ jobs:
if: matrix.platform == 'web-wasm'
run: ./scripts/build_web_wasm.sh

# Web-WASM
# Web-JS
- name: Grant execute permission for Web JS script
if: matrix.platform == 'web-js'
run: chmod +x ./scripts/build_web_js.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/setup/java-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
# Setup java
- name: Setup JDK 17
id: setup_jdk
uses: actions/setup-java@v4
uses: actions/setup-java@v4.3.0
with:
distribution: "corretto"
java-version: 17
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {
alias(libs.plugins.spotless) apply false
alias(libs.plugins.kotlin.cocoapods) apply false
alias(libs.plugins.compose.compiler.report.generator) apply false
alias(libs.plugins.kotlin.binary.compatibility) apply false
}

// Compose Compiler Metrics
Expand Down
20 changes: 11 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
[versions]
activityCompose = "1.9.2"
kotlin = "2.0.20-RC2"
agp = "8.5.2"
compose-plugin = "1.6.11"
jetlime = "3.0.1"
jetbrainsCompose = "1.6.11"
activityCompose = "1.9.2"
junit = "4.13.2"
junitVersion = "1.2.1"
kotlin = "2.0.20-RC2"
kotlinxCollectionsImmutable = "0.3.7"
truth = "1.3.0"
vanniktech = "0.28.0"
immutableCollections = "0.3.7"
truth = "1.4.2"
vanniktech = "0.29.0"
dokka = "1.9.20"
report = "1.4.0"
spotless = "6.25.0"
androidxTest = "1.6.2"
kotlinBinaryCompatibility = "0.16.3"

[libraries]
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "junitVersion" }
Expand All @@ -22,19 +23,20 @@ androidx-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest" }
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activityCompose" }
truth = { module = "com.google.truth:truth", version.ref = "truth" }

kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlinxCollectionsImmutable" }
kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "immutableCollections" }
jetlime = { module = "io.github.pushpalroy:jetlime", version.ref = "jetlime" }
junit = { module = "junit:junit", version.ref = "junit" }
dokka-android = { module = "org.jetbrains.dokka:android-documentation-plugin", version.ref = "dokka" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "jetbrainsCompose" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
compose-compiler-report-generator = { id = "dev.shreyaspatil.compose-compiler-report-generator", version.ref = "report" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-cocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }
nexus-vanniktech-publish = { id = "com.vanniktech.maven.publish", version.ref = "vanniktech" }
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }
kotlin-binary-compatibility = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "kotlinBinaryCompatibility" }
136 changes: 136 additions & 0 deletions jetlime/api/android/jetlime.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
public final class com/pushpal/jetlime/ComposableSingletons$JetLimeExtendedEventKt {
public static final field INSTANCE Lcom/pushpal/jetlime/ComposableSingletons$JetLimeExtendedEventKt;
public static field lambda-1 Lkotlin/jvm/functions/Function3;
public fun <init> ()V
public final fun getLambda-1$jetlime_release ()Lkotlin/jvm/functions/Function3;
}

public final class com/pushpal/jetlime/EventPointAnimation {
public static final field $stable I
public fun equals (Ljava/lang/Object;)Z
public final fun getAnimationSpec ()Landroidx/compose/animation/core/InfiniteRepeatableSpec;
public final fun getInitialValue ()F
public final fun getTargetValue ()F
public fun hashCode ()I
}

public final class com/pushpal/jetlime/EventPointType {
public static final field $stable I
public static final field Companion Lcom/pushpal/jetlime/EventPointType$Companion;
public synthetic fun <init> (Ljava/lang/String;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/Color;Ljava/lang/Float;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun equals (Ljava/lang/Object;)Z
public final fun getFillPercent ()Ljava/lang/Float;
public final fun getIcon ()Landroidx/compose/ui/graphics/painter/Painter;
public final fun getTint-QN2ZGVo ()Landroidx/compose/ui/graphics/Color;
public final fun getType ()Ljava/lang/String;
public fun hashCode ()I
public final fun isCustom ()Z
public final fun isEmptyOrFilled ()Z
public final fun isFilled ()Z
}

public final class com/pushpal/jetlime/EventPointType$Companion {
public final fun custom-0Yiz4hI (Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/Color;)Lcom/pushpal/jetlime/EventPointType;
public static synthetic fun custom-0Yiz4hI$default (Lcom/pushpal/jetlime/EventPointType$Companion;Landroidx/compose/ui/graphics/painter/Painter;Landroidx/compose/ui/graphics/Color;ILjava/lang/Object;)Lcom/pushpal/jetlime/EventPointType;
public final fun filled (F)Lcom/pushpal/jetlime/EventPointType;
public static synthetic fun filled$default (Lcom/pushpal/jetlime/EventPointType$Companion;FILjava/lang/Object;)Lcom/pushpal/jetlime/EventPointType;
public final fun getDefault ()Lcom/pushpal/jetlime/EventPointType;
public final fun getEMPTY ()Lcom/pushpal/jetlime/EventPointType;
}

public final class com/pushpal/jetlime/EventPosition {
public static final field $stable I
public static final field Companion Lcom/pushpal/jetlime/EventPosition$Companion;
public fun equals (Ljava/lang/Object;)Z
public final fun getName ()Ljava/lang/String;
public fun hashCode ()I
public final fun isNotEnd ()Z
}

public final class com/pushpal/jetlime/EventPosition$Companion {
public final fun dynamic (II)Lcom/pushpal/jetlime/EventPosition;
}

public final class com/pushpal/jetlime/HorizontalAlignment : java/lang/Enum {
public static final field BOTTOM Lcom/pushpal/jetlime/HorizontalAlignment;
public static final field TOP Lcom/pushpal/jetlime/HorizontalAlignment;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lcom/pushpal/jetlime/HorizontalAlignment;
public static fun values ()[Lcom/pushpal/jetlime/HorizontalAlignment;
}

public final class com/pushpal/jetlime/ItemsList {
public static final field $stable I
public fun <init> (Ljava/util/List;)V
public fun equals (Ljava/lang/Object;)Z
public final fun getItems ()Ljava/util/List;
public fun hashCode ()I
}

public final class com/pushpal/jetlime/JetLimeDefaults {
public static final field $stable I
public static final field INSTANCE Lcom/pushpal/jetlime/JetLimeDefaults;
public final fun columnStyle-QGmBr7U (FFFLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/PathEffect;Lcom/pushpal/jetlime/VerticalAlignment;Landroidx/compose/runtime/Composer;II)Lcom/pushpal/jetlime/JetLimeStyle;
public final fun lineGradientBrush-OcLOKmE (Lkotlinx/collections/immutable/ImmutableList;JJILandroidx/compose/runtime/Composer;II)Landroidx/compose/ui/graphics/Brush;
public final fun lineSolidBrush-Iv8Zu3U (JLandroidx/compose/runtime/Composer;II)Landroidx/compose/ui/graphics/Brush;
public final fun rowStyle-QGmBr7U (FFFLandroidx/compose/ui/graphics/Brush;Landroidx/compose/ui/graphics/PathEffect;Lcom/pushpal/jetlime/HorizontalAlignment;Landroidx/compose/runtime/Composer;II)Lcom/pushpal/jetlime/JetLimeStyle;
}

public final class com/pushpal/jetlime/JetLimeEventDefaults {
public static final field $stable I
public static final field INSTANCE Lcom/pushpal/jetlime/JetLimeEventDefaults;
public final fun eventStyle-Wv_uGHg (Lcom/pushpal/jetlime/EventPosition;Lcom/pushpal/jetlime/EventPointType;JJFLcom/pushpal/jetlime/EventPointAnimation;FJLandroidx/compose/runtime/Composer;II)Lcom/pushpal/jetlime/JetLimeEventStyle;
public final fun pointAnimation (FFLandroidx/compose/animation/core/InfiniteRepeatableSpec;Landroidx/compose/runtime/Composer;II)Lcom/pushpal/jetlime/EventPointAnimation;
}

public final class com/pushpal/jetlime/JetLimeEventKt {
public static final fun JetLimeEvent (Landroidx/compose/ui/Modifier;Lcom/pushpal/jetlime/JetLimeEventStyle;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V
}

public final class com/pushpal/jetlime/JetLimeEventStyle {
public static final field $stable I
public fun equals (Ljava/lang/Object;)Z
public final fun getPointAnimation ()Lcom/pushpal/jetlime/EventPointAnimation;
public final fun getPointColor-0d7_KjU ()J
public final fun getPointFillColor-0d7_KjU ()J
public final fun getPointRadius-D9Ej5fM ()F
public final fun getPointStrokeColor-0d7_KjU ()J
public final fun getPointStrokeWidth-D9Ej5fM ()F
public final fun getPointType ()Lcom/pushpal/jetlime/EventPointType;
public final fun getPosition ()Lcom/pushpal/jetlime/EventPosition;
public fun hashCode ()I
public final fun setPosition (Lcom/pushpal/jetlime/EventPosition;)Lcom/pushpal/jetlime/JetLimeEventStyle;
public final fun setPosition (Lcom/pushpal/jetlime/EventPosition;)V
}

public final class com/pushpal/jetlime/JetLimeExtendedEventKt {
public static final fun JetLimeExtendedEvent-hGBTI10 (Landroidx/compose/ui/Modifier;Lcom/pushpal/jetlime/JetLimeEventStyle;Lkotlin/jvm/functions/Function3;FLkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;II)V
}

public final class com/pushpal/jetlime/JetLimeListKt {
public static final fun JetLimeColumn (Lcom/pushpal/jetlime/ItemsList;Landroidx/compose/ui/Modifier;Lcom/pushpal/jetlime/JetLimeStyle;Landroidx/compose/foundation/lazy/LazyListState;Landroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;II)V
public static final fun JetLimeRow (Lcom/pushpal/jetlime/ItemsList;Landroidx/compose/ui/Modifier;Lcom/pushpal/jetlime/JetLimeStyle;Landroidx/compose/foundation/lazy/LazyListState;Landroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function5;Landroidx/compose/runtime/Composer;II)V
public static final fun getLocalJetLimeStyle ()Landroidx/compose/runtime/ProvidableCompositionLocal;
}

public final class com/pushpal/jetlime/JetLimeStyle {
public static final field $stable I
public fun equals (Ljava/lang/Object;)Z
public final fun getContentDistance-D9Ej5fM ()F
public final fun getItemSpacing-D9Ej5fM ()F
public final fun getLineBrush ()Landroidx/compose/ui/graphics/Brush;
public final fun getLineHorizontalAlignment ()Lcom/pushpal/jetlime/HorizontalAlignment;
public final fun getLineThickness-D9Ej5fM ()F
public final fun getLineVerticalAlignment ()Lcom/pushpal/jetlime/VerticalAlignment;
public final fun getPathEffect ()Landroidx/compose/ui/graphics/PathEffect;
public fun hashCode ()I
}

public final class com/pushpal/jetlime/VerticalAlignment : java/lang/Enum {
public static final field LEFT Lcom/pushpal/jetlime/VerticalAlignment;
public static final field RIGHT Lcom/pushpal/jetlime/VerticalAlignment;
public static fun getEntries ()Lkotlin/enums/EnumEntries;
public static fun valueOf (Ljava/lang/String;)Lcom/pushpal/jetlime/VerticalAlignment;
public static fun values ()[Lcom/pushpal/jetlime/VerticalAlignment;
}

Loading
Loading