Skip to content

Commit

Permalink
Update formatting to match rest of Cash / Block projects
Browse files Browse the repository at this point in the history
  • Loading branch information
tir38 committed Oct 15, 2024
1 parent 1961c25 commit 74876c3
Show file tree
Hide file tree
Showing 82 changed files with 4,631 additions and 4,631 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root = true
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down
94 changes: 47 additions & 47 deletions afterpay/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,79 +14,79 @@
* limitations under the License.
*/
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.vanniktech.maven.publish)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.parcelize)
alias(libs.plugins.vanniktech.maven.publish)
alias(libs.plugins.kotlin.serialization)
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.java.get()))
}
toolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.java.get()))
}
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.java.get()))
}
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(libs.versions.java.get()))
}
}

android {
compileSdk = libs.versions.compileSdkVersion.get().toInt()
compileSdk = libs.versions.compileSdkVersion.get().toInt()

defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.compileSdkVersion.get().toInt()
defaultConfig {
minSdk = libs.versions.minSdk.get().toInt()
targetSdk = libs.versions.compileSdkVersion.get().toInt()

val VERSION_NAME: String by project
buildConfigField("String", "AfterpayLibraryVersion", "\"$VERSION_NAME\"")
val VERSION_NAME: String by project
buildConfigField("String", "AfterpayLibraryVersion", "\"$VERSION_NAME\"")

consumerProguardFiles("consumer-rules.pro")
}
consumerProguardFiles("consumer-rules.pro")
}

buildFeatures {
buildConfig = true
}
buildFeatures {
buildConfig = true
}

buildTypes {
create("staging") {
initWith(getByName("debug"))
}
buildTypes {
create("staging") {
initWith(getByName("debug"))
}
}

compileOptions {
isCoreLibraryDesugaringEnabled = true
}
compileOptions {
isCoreLibraryDesugaringEnabled = true
}

namespace = "com.afterpay.android"
namespace = "com.afterpay.android"
}

dependencies {
implementation(libs.kotlinCoroutinesAndroid)
implementation(libs.kotlinSerializationJson)
implementation(libs.kotlinCoroutinesJdk8)
implementation(libs.androidxLifecycleRuntimeKtx)
implementation(libs.kotlinCoroutinesAndroid)
implementation(libs.kotlinSerializationJson)
implementation(libs.kotlinCoroutinesJdk8)
implementation(libs.androidxLifecycleRuntimeKtx)

implementation(libs.androidxCoreKtx)
implementation(libs.androidxAppcompat)
implementation(libs.androidxCoreKtx)
implementation(libs.androidxAppcompat)

testImplementation(libs.junit)
coreLibraryDesugaring(libs.androidToolsDesugarJdk)
testImplementation(libs.kotlinCoroutinesTest)
testImplementation(libs.mockK)
testImplementation(libs.junit)
coreLibraryDesugaring(libs.androidToolsDesugarJdk)
testImplementation(libs.kotlinCoroutinesTest)
testImplementation(libs.mockK)
}

tasks.withType<Sign> {
val version = project.version.toString()
onlyIf { !version.endsWith("SNAPSHOT") }
val version = project.version.toString()
onlyIf { !version.endsWith("SNAPSHOT") }
}

signing {
useInMemoryPgpKeys(
findProperty("signingKeyId").toString(),
findProperty("signingKey").toString(),
findProperty("signingPassword").toString(),
)
useInMemoryPgpKeys(
findProperty("signingKeyId").toString(),
findProperty("signingKey").toString(),
findProperty("signingPassword").toString(),
)
}
Loading

0 comments on commit 74876c3

Please sign in to comment.