Skip to content

Commit 7d3d0b4

Browse files
committed
add resend action, version updates
1 parent 7fa7b5a commit 7d3d0b4

File tree

4 files changed

+36
-7
lines changed

4 files changed

+36
-7
lines changed

.idea/modules.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amplifyframework/build.gradle.kts

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2+
13
plugins {
24
kotlin("multiplatform")
35
id("com.android.library")
@@ -9,14 +11,14 @@ version = System.getenv()["GITHUB_RUN_NUMBER"] ?: "1"
911

1012
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi::class)
1113
kotlin {
12-
targetHierarchy.default()
14+
applyDefaultHierarchyTemplate()
1315
androidTarget {
1416
publishLibraryVariants("release")
1517
}
1618
listOf(
1719
iosX64(),
1820
iosArm64(),
19-
iosSimulatorArm64()
21+
iosSimulatorArm64(),
2022
).forEach {
2123
it.binaries.framework {
2224
baseName = "amplifyframework"
@@ -34,7 +36,7 @@ kotlin {
3436
implementation(platform("org.kotlincrypto.hash:bom:0.3.0"))
3537
implementation("org.kotlincrypto.hash:sha2")
3638
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
37-
implementation("io.ktor:ktor-client-core:2.3.5")
39+
implementation("io.ktor:ktor-client-core:2.3.6")
3840
}
3941
}
4042
val commonTest by getting {
@@ -83,3 +85,18 @@ publishing {
8385
}
8486
}
8587
}
88+
89+
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile> {
90+
kotlinOptions {
91+
freeCompilerArgs += "-Xexpect-actual-classes"
92+
}
93+
}
94+
95+
tasks.withType<DependencyUpdatesTask> {
96+
checkForGradleUpdate = true
97+
rejectVersionIf {
98+
listOf("-dev-", "-alpha").any { word ->
99+
candidate.version.contains(word)
100+
}
101+
}
102+
}

amplifyframework/src/commonMain/kotlin/com/jump/sdk/amplifyframework/CognitoAction.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ enum class CognitoAction(val headerValue: String) {
66
FORGOT_PASSWORD("AWSCognitoIdentityProviderService.ForgotPassword"),
77
INITIATE_AUTH("AWSCognitoIdentityProviderService.InitiateAuth"),
88
RESPOND_TO_AUTH_CHALLENGE("AWSCognitoIdentityProviderService.RespondToAuthChallenge"),
9+
RESEND_CONFIRMATION_CODE("AWSCognitoIdentityProviderService.ResendConfirmationCode"),
910
SIGN_UP("AWSCognitoIdentityProviderService.SignUp"),
1011
}

build.gradle.kts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
plugins {
2-
id("com.android.library").version("8.2.0-rc01").apply(false)
3-
kotlin("multiplatform").version("1.9.10").apply(false)
4-
id("io.gitlab.arturbosch.detekt") version "1.23.1"
2+
id("com.android.library").version("8.2.0-rc02").apply(false)
3+
kotlin("multiplatform").version("1.9.20").apply(false)
4+
id("io.gitlab.arturbosch.detekt") version "1.23.3"
55
id("com.github.ben-manes.versions") version "0.49.0"
66
}
77

@@ -22,6 +22,7 @@ allprojects {
2222
}
2323
apply(plugin = "io.gitlab.arturbosch.detekt")
2424
detekt {
25+
allRules = true
2526
config.setFrom(files(rootProject.file("detekt.yml")))
2627
reports {
2728
xml.required.set(true)
@@ -32,7 +33,7 @@ allprojects {
3233
}
3334
}
3435
dependencies {
35-
val detektVersion = "1.23.1"
36+
val detektVersion = "1.23.3"
3637
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:$detektVersion")
3738
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")
3839
detektPlugins("com.braisgabin.detekt:kotlin-compiler-wrapper:0.0.4")

0 commit comments

Comments
 (0)