Skip to content

Commit

Permalink
CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Jan 22, 2025
1 parent 8c1a235 commit 0dbe5d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 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-release.aar
AAR_OUTPUT := lantern-android.aar
SDK_OUTPUT := lanternsdk-android.aar
LIBS_DIR := $(SDK_DIR)/libs
BUILD_DIR := build
PROD_FLAG := -ldflags "-s -w"
Expand All @@ -27,12 +27,11 @@ copy-aar:
mkdir -p $(LIBS_DIR)
cp $(BUILD_DIR)/$(AAR_OUTPUT) $(LIBS_DIR)/$(AAR_OUTPUT)

build: build-aar copy-aar
build: build-aar copy-aar sdk-release
echo "Lantern SDK: build/$(SDK_OUTPUT)"

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

copy-sdk:
cp build/sdk/outputs/aar/$(SDK_OUTPUT) example/libs
Expand All @@ -42,10 +41,14 @@ sdk-debug:

sdk-release:
$(GRADLEW) clean :$(SDK_DIR):assembleRelease
cp build/sdk/outputs/aar/sdk-release.aar build/$(SDK_OUTPUT)

example-debug:
$(GRADLEW) $(EXAMPLE_PROJECT):assembleDebug

example-release:
$(GRADLEW) $(EXAMPLE_PROJECT):assembleDebug

clean:
rm -rf $(LIBS_DIR)/$(AAR_OUTPUT)
rm -rf $(BUILD_DIR)
2 changes: 1 addition & 1 deletion sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'

embed(name:'lanternsdk-android', ext:'aar')
embed(name:'lantern-android', ext:'aar')

implementation 'androidx.appcompat:appcompat:1.7.0'
}
Expand Down

0 comments on commit 0dbe5d5

Please sign in to comment.