Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compile_version = 32
sdk_version = "1.5.0"
compile_version = 34
sdk_version = "1.6.0"

kotlin_version = "1.9.25"
}
Expand All @@ -18,6 +18,7 @@ buildscript {

plugins {
id("com.gradleup.nmcp.aggregation") version "1.0.3"
id("com.gradleup.nmcp") version "1.0.3" apply false
}

allprojects {
Expand Down
26 changes: 0 additions & 26 deletions scripts/publish-module.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,6 @@ apply plugin: 'signing'
group = PUBLISH_GROUP_ID
version = sdk_version // Set up version in build.gradle at project's root

task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
// Android libraries
from android.sourceSets.main.java.srcDirs
from android.sourceSets.main.kotlin.srcDirs
} else {
// Pure kotlin libraries
from sourceSets.main.java.srcDirs
from sourceSets.main.kotlin.srcDirs
}
}

task androidJavadocJar(type: Jar) {
archiveClassifier.set('javadoc')
// Empty Javadoc JAR for Maven Central requirement
}

artifacts {
archives androidSourcesJar
archives androidJavadocJar
}

afterEvaluate {
publishing {
publications {
Expand All @@ -42,9 +19,6 @@ afterEvaluate {
from components.java
}

artifact androidSourcesJar
artifact androidJavadocJar

pom {
name = PUBLISH_ARTIFACT_ID
description = 'Kinde Android SDK'
Expand Down
15 changes: 11 additions & 4 deletions sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'com.gradleup.nmcp'
}

android {
Expand Down Expand Up @@ -35,6 +36,12 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}

dependencies {
Expand All @@ -43,13 +50,13 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.3.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.7.0'

implementation "com.squareup.retrofit2:retrofit:2.12.0"
implementation "com.squareup.retrofit2:converter-gson:2.12.0"
implementation "androidx.browser:browser:1.10.0"
implementation "com.squareup.retrofit2:retrofit:2.11.0"
implementation "com.squareup.retrofit2:converter-gson:2.11.0"
implementation "androidx.browser:browser:1.8.0"

// Previously embedded, now declared as regular dependencies
api "net.openid:appauth:0.11.1"
implementation "com.squareup.retrofit2:converter-scalars:2.12.0"
implementation "com.squareup.retrofit2:converter-scalars:2.11.0"
implementation "org.threeten:threetenbp:1.7.3"
}

Expand Down