Skip to content

Commit

Permalink
Merge pull request #14 from LDRAlighieri/alighieri/binary-compatibili…
Browse files Browse the repository at this point in the history
…ty-validator

Add binary compatibility validator
  • Loading branch information
LDRAlighieri authored Feb 11, 2023
2 parents 9acf28f + f03b4fa commit 399e6ea
Show file tree
Hide file tree
Showing 19 changed files with 2,094 additions and 8 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ on:
push:
branches:
- master
tags:
- '*'

jobs:
deploy:
Expand All @@ -30,7 +28,11 @@ jobs:

- name: Deploy to Sonatype
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: ./gradlew publish --no-parallel --max-workers 1 -Dorg.gradle.internal.http.connectionTimeout=120000 -Dorg.gradle.internal.http.socketTimeout=120000
run: |
./gradlew publish --no-parallel \
--max-workers 1 \
-Dorg.gradle.internal.http.connectionTimeout=120000 \
-Dorg.gradle.internal.http.socketTimeout=120000
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
Expand Down
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,25 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import io.gitlab.arturbosch.detekt.Detekt

// https://youtrack.jetbrains.com/issue/KTIJ-19369
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.binary.compatibility.validator)
alias(libs.plugins.detekt)
alias(libs.plugins.gver)
}

// Binary compatibility validator
apiValidation {
ignoredProjects.add("sample")
ignoredPackages.add("ru/ldralighieri/corbind/internal")
}

// Detekt
detekt {
allRules = false
Expand Down
10 changes: 10 additions & 0 deletions corbind-activity/api/corbind-activity.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public final class ru/ldralighieri/corbind/activity/OnBackPressedDispatcherBackPressesKt {
public static final fun backPresses (Landroidx/activity/OnBackPressedDispatcher;Landroidx/lifecycle/LifecycleOwner;)Lkotlinx/coroutines/flow/Flow;
public static final fun backPresses (Landroidx/activity/OnBackPressedDispatcher;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun backPresses (Landroidx/activity/OnBackPressedDispatcher;Lkotlinx/coroutines/CoroutineScope;Landroidx/lifecycle/LifecycleOwner;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun backPresses (Landroidx/activity/OnBackPressedDispatcher;Lkotlinx/coroutines/CoroutineScope;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function1;)V
public static synthetic fun backPresses$default (Landroidx/activity/OnBackPressedDispatcher;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun backPresses$default (Landroidx/activity/OnBackPressedDispatcher;Lkotlinx/coroutines/CoroutineScope;Landroidx/lifecycle/LifecycleOwner;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun backPresses$default (Landroidx/activity/OnBackPressedDispatcher;Lkotlinx/coroutines/CoroutineScope;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
}

85 changes: 85 additions & 0 deletions corbind-appcompat/api/corbind-appcompat.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
public final class ru/ldralighieri/corbind/appcompat/ActionMenuViewItemClicksKt {
public static final fun itemClicks (Landroidx/appcompat/widget/ActionMenuView;)Lkotlinx/coroutines/flow/Flow;
public static final fun itemClicks (Landroidx/appcompat/widget/ActionMenuView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun itemClicks (Landroidx/appcompat/widget/ActionMenuView;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun itemClicks (Landroidx/appcompat/widget/ActionMenuView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/ActionMenuView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/ActionMenuView;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/ActionMenuView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/appcompat/PopupMenuDismissesKt {
public static final fun dismisses (Landroidx/appcompat/widget/PopupMenu;)Lkotlinx/coroutines/flow/Flow;
public static final fun dismisses (Landroidx/appcompat/widget/PopupMenu;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun dismisses (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun dismisses (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function1;)V
public static synthetic fun dismisses$default (Landroidx/appcompat/widget/PopupMenu;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun dismisses$default (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun dismisses$default (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/appcompat/PopupMenuItemClicksKt {
public static final fun itemClicks (Landroidx/appcompat/widget/PopupMenu;)Lkotlinx/coroutines/flow/Flow;
public static final fun itemClicks (Landroidx/appcompat/widget/PopupMenu;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun itemClicks (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun itemClicks (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/PopupMenu;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/PopupMenu;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/appcompat/SearchViewQueryTextChangeEventsKt {
public static final fun queryTextChangeEvents (Landroidx/appcompat/widget/SearchView;)Lru/ldralighieri/corbind/internal/InitialValueFlow;
public static final fun queryTextChangeEvents (Landroidx/appcompat/widget/SearchView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun queryTextChangeEvents (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun queryTextChangeEvents (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun queryTextChangeEvents$default (Landroidx/appcompat/widget/SearchView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun queryTextChangeEvents$default (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun queryTextChangeEvents$default (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/appcompat/SearchViewQueryTextChangesKt {
public static final fun queryTextChanges (Landroidx/appcompat/widget/SearchView;)Lru/ldralighieri/corbind/internal/InitialValueFlow;
public static final fun queryTextChanges (Landroidx/appcompat/widget/SearchView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun queryTextChanges (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun queryTextChanges (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun queryTextChanges$default (Landroidx/appcompat/widget/SearchView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun queryTextChanges$default (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun queryTextChanges$default (Landroidx/appcompat/widget/SearchView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/appcompat/SearchViewQueryTextEvent {
public fun <init> (Landroidx/appcompat/widget/SearchView;Ljava/lang/CharSequence;Z)V
public final fun component1 ()Landroidx/appcompat/widget/SearchView;
public final fun component2 ()Ljava/lang/CharSequence;
public final fun component3 ()Z
public final fun copy (Landroidx/appcompat/widget/SearchView;Ljava/lang/CharSequence;Z)Lru/ldralighieri/corbind/appcompat/SearchViewQueryTextEvent;
public static synthetic fun copy$default (Lru/ldralighieri/corbind/appcompat/SearchViewQueryTextEvent;Landroidx/appcompat/widget/SearchView;Ljava/lang/CharSequence;ZILjava/lang/Object;)Lru/ldralighieri/corbind/appcompat/SearchViewQueryTextEvent;
public fun equals (Ljava/lang/Object;)Z
public final fun getQueryText ()Ljava/lang/CharSequence;
public final fun getView ()Landroidx/appcompat/widget/SearchView;
public fun hashCode ()I
public final fun isSubmitted ()Z
public fun toString ()Ljava/lang/String;
}

public final class ru/ldralighieri/corbind/appcompat/ToolbarItemClicksKt {
public static final fun itemClicks (Landroidx/appcompat/widget/Toolbar;)Lkotlinx/coroutines/flow/Flow;
public static final fun itemClicks (Landroidx/appcompat/widget/Toolbar;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun itemClicks (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun itemClicks (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/Toolbar;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun itemClicks$default (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/appcompat/ToolbarNavigationClicksKt {
public static final fun navigationClicks (Landroidx/appcompat/widget/Toolbar;)Lkotlinx/coroutines/flow/Flow;
public static final fun navigationClicks (Landroidx/appcompat/widget/Toolbar;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun navigationClicks (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun navigationClicks (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function1;)V
public static synthetic fun navigationClicks$default (Landroidx/appcompat/widget/Toolbar;ILkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun navigationClicks$default (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun navigationClicks$default (Landroidx/appcompat/widget/Toolbar;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
}

10 changes: 10 additions & 0 deletions corbind-core/api/corbind-core.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public final class ru/ldralighieri/corbind/core/NestedScrollViewScrollChangeEventsKt {
public static final fun scrollChangeEvents (Landroidx/core/widget/NestedScrollView;)Lkotlinx/coroutines/flow/Flow;
public static final fun scrollChangeEvents (Landroidx/core/widget/NestedScrollView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun scrollChangeEvents (Landroidx/core/widget/NestedScrollView;Lkotlinx/coroutines/CoroutineScope;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun scrollChangeEvents (Landroidx/core/widget/NestedScrollView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun scrollChangeEvents$default (Landroidx/core/widget/NestedScrollView;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun scrollChangeEvents$default (Landroidx/core/widget/NestedScrollView;Lkotlinx/coroutines/CoroutineScope;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun scrollChangeEvents$default (Landroidx/core/widget/NestedScrollView;Lkotlinx/coroutines/CoroutineScope;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

10 changes: 10 additions & 0 deletions corbind-drawerlayout/api/corbind-drawerlayout.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
public final class ru/ldralighieri/corbind/drawerlayout/DrawerLayoutDrawerOpenKt {
public static final fun drawerOpens (Landroidx/drawerlayout/widget/DrawerLayout;I)Lru/ldralighieri/corbind/internal/InitialValueFlow;
public static final fun drawerOpens (Landroidx/drawerlayout/widget/DrawerLayout;IILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun drawerOpens (Landroidx/drawerlayout/widget/DrawerLayout;Lkotlinx/coroutines/CoroutineScope;II)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun drawerOpens (Landroidx/drawerlayout/widget/DrawerLayout;Lkotlinx/coroutines/CoroutineScope;IILkotlin/jvm/functions/Function2;)V
public static synthetic fun drawerOpens$default (Landroidx/drawerlayout/widget/DrawerLayout;IILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun drawerOpens$default (Landroidx/drawerlayout/widget/DrawerLayout;Lkotlinx/coroutines/CoroutineScope;IIILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun drawerOpens$default (Landroidx/drawerlayout/widget/DrawerLayout;Lkotlinx/coroutines/CoroutineScope;IILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

23 changes: 23 additions & 0 deletions corbind-fragment/api/corbind-fragment.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
public final class ru/ldralighieri/corbind/fragment/FragmentManagerResultEventsKt {
public static final fun resultEvents (Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;)Lkotlinx/coroutines/flow/Flow;
public static final fun resultEvents (Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static final fun resultEvents (Landroidx/fragment/app/FragmentManager;Lkotlinx/coroutines/CoroutineScope;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;I)Lkotlinx/coroutines/channels/ReceiveChannel;
public static final fun resultEvents (Landroidx/fragment/app/FragmentManager;Lkotlinx/coroutines/CoroutineScope;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function2;)V
public static synthetic fun resultEvents$default (Landroidx/fragment/app/FragmentManager;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function2;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static synthetic fun resultEvents$default (Landroidx/fragment/app/FragmentManager;Lkotlinx/coroutines/CoroutineScope;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;IILjava/lang/Object;)Lkotlinx/coroutines/channels/ReceiveChannel;
public static synthetic fun resultEvents$default (Landroidx/fragment/app/FragmentManager;Lkotlinx/coroutines/CoroutineScope;Ljava/lang/String;Landroidx/lifecycle/LifecycleOwner;ILkotlin/jvm/functions/Function2;ILjava/lang/Object;)V
}

public final class ru/ldralighieri/corbind/fragment/FragmentResultEvent {
public fun <init> (Ljava/lang/String;Landroid/os/Bundle;)V
public final fun component1 ()Ljava/lang/String;
public final fun component2 ()Landroid/os/Bundle;
public final fun copy (Ljava/lang/String;Landroid/os/Bundle;)Lru/ldralighieri/corbind/fragment/FragmentResultEvent;
public static synthetic fun copy$default (Lru/ldralighieri/corbind/fragment/FragmentResultEvent;Ljava/lang/String;Landroid/os/Bundle;ILjava/lang/Object;)Lru/ldralighieri/corbind/fragment/FragmentResultEvent;
public fun equals (Ljava/lang/Object;)Z
public final fun getBundle ()Landroid/os/Bundle;
public final fun getRequestKey ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}

Loading

0 comments on commit 399e6ea

Please sign in to comment.