-
Notifications
You must be signed in to change notification settings - Fork 19
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 #55 from mirzemehdi/rel_v2.1.0
Release v2.1.0
- Loading branch information
Showing
50 changed files
with
1,175 additions
and
151 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 |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
distribution: 'temurin' | ||
|
||
- name: Setup gradle | ||
uses: gradle/gradle-build-action@v2.4.2 | ||
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | ||
|
||
- name: Check api | ||
run: ./gradlew apiCheck | ||
|
@@ -59,7 +59,7 @@ jobs: | |
distribution: 'temurin' | ||
|
||
- name: Setup gradle | ||
uses: gradle/gradle-build-action@v2.4.2 | ||
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | ||
|
||
- name: Test ${{ matrix.config.target }} targets | ||
continue-on-error: ${{ matrix.config.continueOnError }} | ||
|
@@ -84,7 +84,7 @@ jobs: | |
distribution: 'temurin' | ||
|
||
- name: Setup gradle | ||
uses: gradle/gradle-build-action@v2.4.2 | ||
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
@@ -101,73 +101,32 @@ jobs: | |
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
|
||
- name: Create new release from tag | ||
env: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
token: ${{ env.github_token }} | ||
|
||
|
||
create-staging-repository: | ||
runs-on: ubuntu-latest | ||
name: Create staging repository | ||
needs: release | ||
outputs: | ||
repository_id: ${{ steps.create.outputs.repository_id }} | ||
steps: | ||
- id: create | ||
uses: nexus-actions/[email protected] | ||
with: | ||
username: mirzemehdi | ||
password: ${{ secrets.SONATYPE_PASSWORD }} | ||
staging_profile_id: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} | ||
description: Created by GitHub Actions | ||
base_url: https://s01.oss.sonatype.org/service/local/ | ||
|
||
publish: | ||
name: Publish to Maven | ||
runs-on: macos-latest | ||
needs: create-staging-repository | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Setup gradle | ||
uses: gradle/[email protected] | ||
|
||
- name: Write secrets to local.properties | ||
run: | | ||
echo sonatypeUsername="${SONATYPE_USERNAME}" >> "local.properties" | ||
echo sonatypePassword="${SONATYPE_PASSWORD}" >> "local.properties" | ||
echo gpgKeyPassword="${GPG_KEY_PASSWORD}" >> "local.properties" | ||
echo gpgKeySecret="${GPG_KEY_SECRET}" >> "local.properties" | ||
env: | ||
SONATYPE_REPOSITORY_ID: ${{ needs.create-staging-repository.outputs.repository_id }} | ||
SONATYPE_USERNAME: mirzemehdi | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_KEY_PASSWORD: ${{ secrets.GPG_KEY_PASSWORD }} | ||
GPG_KEY_SECRET: ${{ secrets.GPG_KEY_SECRET }} | ||
|
||
- name: Release to sonatype | ||
run: ./gradlew publishAllPublicationsToMavenRepository | ||
|
||
close-staging-repository: | ||
name: Close staging repository | ||
runs-on: ubuntu-latest | ||
needs: [ create-staging-repository, publish ] | ||
if: ${{ always() && needs.create-staging-repository.result == 'success' }} | ||
steps: | ||
- name: Close staging repository | ||
uses: nexus-actions/release-nexus-staging-repo@6632a81bfab63557b2717e8423b0a620ae5aa414 | ||
- name: Publish to sonatype | ||
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 | ||
with: | ||
username: mirzemehdi | ||
password: ${{ secrets.SONATYPE_PASSWORD }} | ||
staging_repository_id: ${{ needs.create-staging-repository.outputs.repository_id }} | ||
base_url: https://s01.oss.sonatype.org/service/local/ | ||
arguments: | | ||
publishToSonatype | ||
closeAndReleaseSonatypeStagingRepository | ||
- name: Create new release from tag | ||
env: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
generate_release_notes: true | ||
token: ${{ env.github_token }} | ||
|
||
|
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
public final class com/mmk/kmpauth/core/Extensions_androidKt { | ||
public static final fun getActivity (Landroid/content/Context;)Landroidx/activity/ComponentActivity; | ||
} | ||
|
||
public abstract interface annotation class com/mmk/kmpauth/core/KMPAuthInternalApi : java/lang/annotation/Annotation { | ||
} | ||
|
||
public abstract interface class com/mmk/kmpauth/core/UiContainerScope { | ||
public abstract fun onClick ()V | ||
} | ||
|
||
public abstract class com/mmk/kmpauth/core/di/KMPKoinComponent : org/koin/core/component/KoinComponent { | ||
public fun <init> ()V | ||
public fun getKoin ()Lorg/koin/core/Koin; | ||
} | ||
|
||
public final class com/mmk/kmpauth/core/di/LibDependencyInitializer { | ||
public static final field INSTANCE Lcom/mmk/kmpauth/core/di/LibDependencyInitializer; | ||
public final fun getKoinApp ()Lorg/koin/core/KoinApplication; | ||
public final fun initialize (Ljava/util/List;)V | ||
public final fun initialize (Lorg/koin/core/module/Module;)V | ||
public static synthetic fun initialize$default (Lcom/mmk/kmpauth/core/di/LibDependencyInitializer;Ljava/util/List;ILjava/lang/Object;)V | ||
} | ||
|
||
public final class com/mmk/kmpauth/core/di/PlatformModule_androidKt { | ||
public static final fun isAndroidPlatform ()Z | ||
} | ||
|
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,24 @@ | ||
public abstract interface annotation class com/mmk/kmpauth/core/KMPAuthInternalApi : java/lang/annotation/Annotation { | ||
} | ||
|
||
public abstract interface class com/mmk/kmpauth/core/UiContainerScope { | ||
public abstract fun onClick ()V | ||
} | ||
|
||
public abstract class com/mmk/kmpauth/core/di/KMPKoinComponent : org/koin/core/component/KoinComponent { | ||
public fun <init> ()V | ||
public fun getKoin ()Lorg/koin/core/Koin; | ||
} | ||
|
||
public final class com/mmk/kmpauth/core/di/LibDependencyInitializer { | ||
public static final field INSTANCE Lcom/mmk/kmpauth/core/di/LibDependencyInitializer; | ||
public final fun getKoinApp ()Lorg/koin/core/KoinApplication; | ||
public final fun initialize (Ljava/util/List;)V | ||
public final fun initialize (Lorg/koin/core/module/Module;)V | ||
public static synthetic fun initialize$default (Lcom/mmk/kmpauth/core/di/LibDependencyInitializer;Ljava/util/List;ILjava/lang/Object;)V | ||
} | ||
|
||
public final class com/mmk/kmpauth/core/di/PlatformModule_jvmKt { | ||
public static final fun isAndroidPlatform ()Z | ||
} | ||
|
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
9 changes: 9 additions & 0 deletions
9
kmpauth-core/src/jsMain/kotlin/com/mmk/kmpauth/core/di/PlatformModule.js.kt
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 @@ | ||
package com.mmk.kmpauth.core.di | ||
|
||
import com.mmk.kmpauth.core.KMPAuthInternalApi | ||
import org.koin.core.module.Module | ||
import org.koin.dsl.module | ||
|
||
@KMPAuthInternalApi | ||
public actual fun isAndroidPlatform(): Boolean = false | ||
internal actual val platformModule: Module = module { } |
9 changes: 9 additions & 0 deletions
9
kmpauth-core/src/jvmMain/kotlin/com/mmk/kmpauth/core/di/PlatformModule.jvm.kt
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 @@ | ||
package com.mmk.kmpauth.core.di | ||
|
||
import com.mmk.kmpauth.core.KMPAuthInternalApi | ||
import org.koin.core.module.Module | ||
import org.koin.dsl.module | ||
|
||
@KMPAuthInternalApi | ||
public actual fun isAndroidPlatform(): Boolean = false | ||
internal actual val platformModule: Module = module { } |
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,39 @@ | ||
public final class com/mmk/kmpauth/firebase/apple/AppleButtonUiContainerKt { | ||
public static final fun AppleButtonUiContainer (Landroidx/compose/ui/Modifier;Ljava/util/List;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
public static final fun AppleButtonUiContainer (Landroidx/compose/ui/Modifier;Ljava/util/List;Lkotlin/jvm/functions/Function1;ZLkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
} | ||
|
||
public abstract interface class com/mmk/kmpauth/firebase/apple/AppleSignInRequestScope { | ||
} | ||
|
||
public final class com/mmk/kmpauth/firebase/apple/AppleSignInRequestScope$Email : com/mmk/kmpauth/firebase/apple/AppleSignInRequestScope { | ||
public static final field $stable I | ||
public static final field INSTANCE Lcom/mmk/kmpauth/firebase/apple/AppleSignInRequestScope$Email; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/mmk/kmpauth/firebase/apple/AppleSignInRequestScope$FullName : com/mmk/kmpauth/firebase/apple/AppleSignInRequestScope { | ||
public static final field $stable I | ||
public static final field INSTANCE Lcom/mmk/kmpauth/firebase/apple/AppleSignInRequestScope$FullName; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/mmk/kmpauth/firebase/github/GithubButtonUiContainerKt { | ||
public static final fun GithubButtonUiContainer (Landroidx/compose/ui/Modifier;Ljava/util/List;Ljava/util/Map;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
public static final fun GithubButtonUiContainer (Landroidx/compose/ui/Modifier;Ljava/util/List;Ljava/util/Map;ZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
} | ||
|
||
public final class com/mmk/kmpauth/firebase/google/GoogleButtonUiContainerFirebaseKt { | ||
public static final fun GoogleButtonUiContainerFirebase (Landroidx/compose/ui/Modifier;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
public static final fun GoogleButtonUiContainerFirebase (Landroidx/compose/ui/Modifier;ZLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
} | ||
|
||
public final class com/mmk/kmpauth/firebase/oauth/OAuthContainer_androidKt { | ||
public static final fun OAuthContainer (Landroidx/compose/ui/Modifier;Ldev/gitlive/firebase/auth/OAuthProvider;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
public static final fun OAuthContainer (Landroidx/compose/ui/Modifier;Ldev/gitlive/firebase/auth/OAuthProvider;Lkotlin/jvm/functions/Function1;ZLkotlin/jvm/functions/Function3;Landroidx/compose/runtime/Composer;II)V | ||
} | ||
|
Oops, something went wrong.