-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from dzmpr/develop
v1.1.0
- Loading branch information
Showing
58 changed files
with
375 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
|
||
[*.{kt,kts}] | ||
indent_size = 4 | ||
ij_continuation_indent_size = 4 | ||
ij_kotlin_allow_trailing_comma = true | ||
ij_kotlin_allow_trailing_comma_on_call_site = true | ||
ij_kotlin_name_count_to_use_star_import = 9999 | ||
ij_kotlin_name_count_to_use_star_import_for_members = 9999 | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
ij_yaml_indent_sequence_value = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
name: Tests | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow pull request events but only for the "main" branch | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
tests: | ||
name: Run unit tests | ||
runs-on: macos-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '11' | ||
- name: Test with Gradle | ||
run: ./gradlew test | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '8' | ||
|
||
- name: Check public API | ||
run: ./gradlew apiCheck | ||
|
||
- name: Run tests | ||
# Temporary run tests only for JVM target, because ios/watchos/tvos tests fail. | ||
# TODO: https://youtrack.jetbrains.com/issue/KT-54814 | ||
run: ./gradlew jvmTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Changelog | ||
* Add kotlin multiplatform support. | ||
* Add public API validation. | ||
|
||
### Dependencies | ||
| Dependency | Version | | ||
|------------|:--------------:| | ||
| Kotlin | `1.7.20` | | ||
| KSP | `1.7.20-1.0.7` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
public final class ru/cookedapp/trckr/core/TrckrBuilder { | ||
public final fun addAdapter (Lru/cookedapp/trckr/core/adapter/TrackerAdapter;)V | ||
public final fun addParameterConverter (Lru/cookedapp/trckr/core/converter/ParameterConverter;)V | ||
public final fun addTypeConverter (Lru/cookedapp/trckr/core/converter/TypeConverter;)V | ||
} | ||
|
||
public abstract interface class ru/cookedapp/trckr/core/TrckrCore { | ||
public abstract fun track (Lru/cookedapp/trckr/core/event/TrckrEvent;)V | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/TrckrCoreImplKt { | ||
public static final fun createTrckr (Lkotlin/jvm/functions/Function1;)Lru/cookedapp/trckr/core/TrckrCore; | ||
} | ||
|
||
public abstract interface class ru/cookedapp/trckr/core/adapter/TrackerAdapter { | ||
public abstract fun trackEvent (Ljava/lang/String;Ljava/util/Map;)V | ||
} | ||
|
||
public abstract interface annotation class ru/cookedapp/trckr/core/annotations/Event : java/lang/annotation/Annotation { | ||
public static final field Companion Lru/cookedapp/trckr/core/annotations/Event$Companion; | ||
public static final field NAME_PROPERTY_NAME Ljava/lang/String; | ||
public static final field SKIP_ADAPTERS_PROPERTY_NAME Ljava/lang/String; | ||
public abstract fun name ()Ljava/lang/String; | ||
public abstract fun skipAdapters ()[Ljava/lang/Class; | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/annotations/Event$Companion { | ||
} | ||
|
||
public abstract interface annotation class ru/cookedapp/trckr/core/annotations/Param : java/lang/annotation/Annotation { | ||
public static final field Companion Lru/cookedapp/trckr/core/annotations/Param$Companion; | ||
public static final field NAME_PROPERTY_NAME Ljava/lang/String; | ||
public static final field STRATEGY_PROPERTY_NAME Ljava/lang/String; | ||
public abstract fun name ()Ljava/lang/String; | ||
public abstract fun strategy ()Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/annotations/Param$Companion { | ||
} | ||
|
||
public abstract interface annotation class ru/cookedapp/trckr/core/annotations/Tracker : java/lang/annotation/Annotation { | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/annotations/data/TrackStrategy : java/lang/Enum { | ||
public static final field DEFAULT Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
public static final field SKIP_IF_NULL Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
public static final field TRACK_NULL Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
public static fun valueOf (Ljava/lang/String;)Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
public static fun values ()[Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
} | ||
|
||
public abstract interface class ru/cookedapp/trckr/core/converter/ParameterConverter { | ||
public abstract fun convert (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object; | ||
} | ||
|
||
public abstract interface class ru/cookedapp/trckr/core/converter/TypeConverter { | ||
public abstract fun convert (Ljava/lang/Object;)Ljava/lang/Object; | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/event/TrckrEvent { | ||
public fun <init> (Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V | ||
public final fun component1 ()Ljava/lang/String; | ||
public final fun component2 ()Ljava/util/List; | ||
public final fun component3 ()Ljava/util/List; | ||
public final fun copy (Ljava/lang/String;Ljava/util/List;Ljava/util/List;)Lru/cookedapp/trckr/core/event/TrckrEvent; | ||
public static synthetic fun copy$default (Lru/cookedapp/trckr/core/event/TrckrEvent;Ljava/lang/String;Ljava/util/List;Ljava/util/List;ILjava/lang/Object;)Lru/cookedapp/trckr/core/event/TrckrEvent; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getName ()Ljava/lang/String; | ||
public final fun getParameters ()Ljava/util/List; | ||
public final fun getSkipAdapters ()Ljava/util/List; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/exceptions/TrckrBuilderException : ru/cookedapp/trckr/core/exceptions/TrckrException { | ||
public fun <init> (Ljava/lang/String;)V | ||
public fun getMessage ()Ljava/lang/String; | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/exceptions/TrckrConversionException : ru/cookedapp/trckr/core/exceptions/TrckrException { | ||
public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public abstract class ru/cookedapp/trckr/core/exceptions/TrckrException : java/lang/Throwable { | ||
public fun <init> ()V | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/extensions/TrckrBuilderExtensionsKt { | ||
public static final fun addAdapters (Lru/cookedapp/trckr/core/TrckrBuilder;[Lru/cookedapp/trckr/core/adapter/TrackerAdapter;)V | ||
public static final fun addConverters (Lru/cookedapp/trckr/core/TrckrBuilder;[Lru/cookedapp/trckr/core/converter/ParameterConverter;)V | ||
public static final fun addConverters (Lru/cookedapp/trckr/core/TrckrBuilder;[Lru/cookedapp/trckr/core/converter/TypeConverter;)V | ||
} | ||
|
||
public final class ru/cookedapp/trckr/core/param/TrckrParam { | ||
public fun <init> (Ljava/lang/String;Lru/cookedapp/trckr/core/annotations/data/TrackStrategy;Ljava/lang/Object;)V | ||
public final fun component1 ()Ljava/lang/String; | ||
public final fun component2 ()Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
public final fun component3 ()Ljava/lang/Object; | ||
public final fun copy (Ljava/lang/String;Lru/cookedapp/trckr/core/annotations/data/TrackStrategy;Ljava/lang/Object;)Lru/cookedapp/trckr/core/param/TrckrParam; | ||
public static synthetic fun copy$default (Lru/cookedapp/trckr/core/param/TrckrParam;Ljava/lang/String;Lru/cookedapp/trckr/core/annotations/data/TrackStrategy;Ljava/lang/Object;ILjava/lang/Object;)Lru/cookedapp/trckr/core/param/TrckrParam; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getName ()Ljava/lang/String; | ||
public final fun getStrategy ()Lru/cookedapp/trckr/core/annotations/data/TrackStrategy; | ||
public final fun getValue ()Ljava/lang/Object; | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
Oops, something went wrong.