Skip to content

Commit

Permalink
update gradle version
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Jan 22, 2025
1 parent 81b7ffb commit 8c1a235
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SDK_NAME := liblantern
SDK_DIR := sdk
AAR_OUTPUT := lanternsdk-android.aar
SDK_OUTPUT := sdk-debug.aar
SDK_OUTPUT := sdk-release.aar
LIBS_DIR := $(SDK_DIR)/libs
BUILD_DIR := build
PROD_FLAG := -ldflags "-s -w"
Expand Down Expand Up @@ -30,13 +30,11 @@ copy-aar:
build: build-aar copy-aar

# Build SDK
release: build sdk-debug copy-sdk
release: build sdk-release copy-sdk
@echo "Building SDK.."
$(GRADLEW) assembleRelease

copy-sdk:
ls build/sdk/outputs
ls build/sdk/outputs/aar
cp build/sdk/outputs/aar/$(SDK_OUTPUT) example/libs

sdk-debug:
Expand Down
Empty file removed build/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repositories {
dependencies {

//implementation project(':sdk')
implementation files('libs/sdk-debug.aar')
implementation files('libs/sdk-release.aar')
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
implementation fileTree(dir: "libs", include: ["*.jar"])

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
3 changes: 1 addition & 2 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
Expand Down
23 changes: 23 additions & 0 deletions sdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
id 'signing'
}

apply plugin: 'com.kezong.fat-aar'
Expand Down Expand Up @@ -65,7 +67,28 @@ android {
}
}

publishing {
publications {
release(MavenPublication) {
groupId = 'org.getlantern.lantern'
artifactId = 'sdk'
version = '1.0.0'

}
}

repositories {
maven {
name = "ossrh"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")

credentials {
username = project.findProperty("mavenCentralUsername") ?: System.getenv("MAVEN_USERNAME")
password = project.findProperty("mavenCentralPassword") ?: System.getenv("MAVEN_PASSWORD")
}
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: '*.jar')
Expand Down

0 comments on commit 8c1a235

Please sign in to comment.