diff --git a/convention-plugins/src/main/kotlin/module.publication.gradle.kts b/convention-plugins/src/main/kotlin/module.publication.gradle.kts index 253681e2..1d54f0d9 100644 --- a/convention-plugins/src/main/kotlin/module.publication.gradle.kts +++ b/convention-plugins/src/main/kotlin/module.publication.gradle.kts @@ -48,12 +48,14 @@ publishing { } signing { - useInMemoryPgpKeys( - System.getenv("OSSRH_GPG_SECRET_KEY_ID"), - System.getenv("OSSRH_GPG_SECRET_KEY"), - System.getenv("OSSRH_GPG_SECRET_KEY_PASSWORD"), - ) - sign(publishing.publications) + if(System.getenv("OSSRH_GPG_SECRET_KEY") != null) { + useInMemoryPgpKeys( + System.getenv("OSSRH_GPG_SECRET_KEY_ID"), + System.getenv("OSSRH_GPG_SECRET_KEY"), + System.getenv("OSSRH_GPG_SECRET_KEY_PASSWORD"), + ) + sign(publishing.publications) + } } // TODO: remove after https://youtrack.jetbrains.com/issue/KT-46466 is fixed diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 00000000..72948148 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,4 @@ +jdk: + - openjdk17 +install: + - ./gradlew assemble publishToMavenLocal -x test \ No newline at end of file diff --git a/richeditor-compose-spellcheck/api/android/richeditor-compose-spellcheck.api b/richeditor-compose-spellcheck/api/android/richeditor-compose-spellcheck.api index a2f1a12b..d25e415d 100644 --- a/richeditor-compose-spellcheck/api/android/richeditor-compose-spellcheck.api +++ b/richeditor-compose-spellcheck/api/android/richeditor-compose-spellcheck.api @@ -75,8 +75,3 @@ public final class com/mohamedrejeb/richeditor/compose/spellcheck/ui/SpellChecke public static final fun SpellCheckedRichTextEditor (Landroidx/compose/ui/Modifier;ZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/text/KeyboardOptions;Landroidx/compose/foundation/text/KeyboardActions;ZIIILkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function1;Landroidx/compose/foundation/interaction/MutableInteractionSource;Landroidx/compose/ui/graphics/Brush;Lcom/mohamedrejeb/richeditor/compose/spellcheck/SpellCheckState;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;III)V } -public final class com/mohamedrejeb/richeditor/compose/spellcheck/utils/SpellCheckUtilsKt { - public static final fun isSpelledCorrectly (Ljava/lang/String;Ljava/util/List;)Z - public static final fun spellingIsCorrect (Ljava/util/List;Ljava/lang/String;)Z -} - diff --git a/richeditor-compose-spellcheck/api/desktop/richeditor-compose-spellcheck.api b/richeditor-compose-spellcheck/api/desktop/richeditor-compose-spellcheck.api index 3fe4521e..cf1e758f 100644 --- a/richeditor-compose-spellcheck/api/desktop/richeditor-compose-spellcheck.api +++ b/richeditor-compose-spellcheck/api/desktop/richeditor-compose-spellcheck.api @@ -75,8 +75,3 @@ public final class com/mohamedrejeb/richeditor/compose/spellcheck/ui/SpellChecke public static final fun SpellCheckedRichTextEditor (Landroidx/compose/ui/Modifier;ZLandroidx/compose/ui/text/TextStyle;Landroidx/compose/foundation/text/KeyboardOptions;Landroidx/compose/foundation/text/KeyboardActions;ZIIILkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function1;Landroidx/compose/foundation/interaction/MutableInteractionSource;Landroidx/compose/ui/graphics/Brush;Lcom/mohamedrejeb/richeditor/compose/spellcheck/SpellCheckState;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;III)V } -public final class com/mohamedrejeb/richeditor/compose/spellcheck/utils/SpellCheckUtilsKt { - public static final fun isSpelledCorrectly (Ljava/lang/String;Ljava/util/List;)Z - public static final fun spellingIsCorrect (Ljava/util/List;Ljava/lang/String;)Z -} - diff --git a/richeditor-compose-spellcheck/api/richeditor-compose-spellcheck.klib.api b/richeditor-compose-spellcheck/api/richeditor-compose-spellcheck.klib.api index b2e1931a..fe63174e 100644 --- a/richeditor-compose-spellcheck/api/richeditor-compose-spellcheck.klib.api +++ b/richeditor-compose-spellcheck/api/richeditor-compose-spellcheck.klib.api @@ -70,8 +70,6 @@ final val com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_riched final val com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheckMenuState_MissSpelling$stableprop // com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheckMenuState_MissSpelling$stableprop|#static{}com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheckMenuState_MissSpelling$stableprop[0] final val com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheckState$stableprop // com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheckState$stableprop|#static{}com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheckState$stableprop[0] -final fun (kotlin.collections/List).com.mohamedrejeb.richeditor.compose.spellcheck.utils/spellingIsCorrect(kotlin/String): kotlin/Boolean // com.mohamedrejeb.richeditor.compose.spellcheck.utils/spellingIsCorrect|spellingIsCorrect@kotlin.collections.List(kotlin.String){}[0] -final fun (kotlin/String).com.mohamedrejeb.richeditor.compose.spellcheck.utils/isSpelledCorrectly(kotlin.collections/List): kotlin/Boolean // com.mohamedrejeb.richeditor.compose.spellcheck.utils/isSpelledCorrectly|isSpelledCorrectly@kotlin.String(kotlin.collections.List){}[0] final fun com.mohamedrejeb.richeditor.compose.spellcheck.ui/SpellCheckedRichTextEditor(androidx.compose.ui/Modifier?, kotlin/Boolean, androidx.compose.ui.text/TextStyle?, androidx.compose.foundation.text/KeyboardOptions?, androidx.compose.foundation.text/KeyboardActions?, kotlin/Boolean, kotlin/Int, kotlin/Int, kotlin/Int, kotlin/Function4?, kotlin/Function1?, androidx.compose.foundation.interaction/MutableInteractionSource?, androidx.compose.ui.graphics/Brush?, com.mohamedrejeb.richeditor.compose.spellcheck/SpellCheckState?, kotlin/Function3, androidx.compose.runtime/Composer, kotlin/Int, kotlin/Unit>?, androidx.compose.runtime/Composer?, kotlin/Int, kotlin/Int, kotlin/Int) // com.mohamedrejeb.richeditor.compose.spellcheck.ui/SpellCheckedRichTextEditor|SpellCheckedRichTextEditor(androidx.compose.ui.Modifier?;kotlin.Boolean;androidx.compose.ui.text.TextStyle?;androidx.compose.foundation.text.KeyboardOptions?;androidx.compose.foundation.text.KeyboardActions?;kotlin.Boolean;kotlin.Int;kotlin.Int;kotlin.Int;kotlin.Function4?;kotlin.Function1?;androidx.compose.foundation.interaction.MutableInteractionSource?;androidx.compose.ui.graphics.Brush?;com.mohamedrejeb.richeditor.compose.spellcheck.SpellCheckState?;kotlin.Function3,androidx.compose.runtime.Composer,kotlin.Int,kotlin.Unit>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int;kotlin.Int){}[0] final fun com.mohamedrejeb.richeditor.compose.spellcheck/SpellCheckTextContextMenuProvider(androidx.compose.ui/Modifier, com.mohamedrejeb.richeditor.compose.spellcheck/SpellCheckMenuState, kotlin/Function2, androidx.compose.runtime/Composer?, kotlin/Int) // com.mohamedrejeb.richeditor.compose.spellcheck/SpellCheckTextContextMenuProvider|SpellCheckTextContextMenuProvider(androidx.compose.ui.Modifier;com.mohamedrejeb.richeditor.compose.spellcheck.SpellCheckMenuState;kotlin.Function2;androidx.compose.runtime.Composer?;kotlin.Int){}[0] final fun com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheck$stableprop_getter(): kotlin/Int // com.mohamedrejeb.richeditor.compose.spellcheck/com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheck$stableprop_getter|com_mohamedrejeb_richeditor_compose_spellcheck_SpellCheck$stableprop_getter(){}[0]