Skip to content

Commit

Permalink
Merge pull request #353 from vkubiv/feat-default-versioning-info
Browse files Browse the repository at this point in the history
feat(sdk): default versioning info.
  • Loading branch information
rolsonquadras authored Mar 23, 2023
2 parents 3ac461a + a777e6b commit 5f4b9cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ endif
ALPINE_VER ?= 3.16
GO_VER ?= 1.19

NEW_VERSION ?= $(shell git describe --tags --always `git rev-list --tags --max-count=1`)-SNAPSHOT-$(shell git rev-parse --short=7 HEAD)
GIT_REV ?= $(shell git rev-parse HEAD)
BUILD_TIME ?= $(shell date)

export TERM := xterm-256color

ANDROID_EMULATOR_NAME ?= WalletSDKDeviceEmulator
Expand All @@ -38,11 +42,11 @@ unit-test:

.PHONY: generate-android-bindings
generate-android-bindings:
@make generate-android-bindings -C ./cmd/wallet-sdk-gomobile
@GIT_REV="${GIT_REV}" NEW_VERSION="${NEW_VERSION}" BUILD_TIME="${BUILD_TIME}" make generate-android-bindings -C ./cmd/wallet-sdk-gomobile

.PHONY: generate-ios-bindings
generate-ios-bindings:
@make generate-ios-bindings -C ./cmd/wallet-sdk-gomobile
@GIT_REV="${GIT_REV}" NEW_VERSION="${NEW_VERSION}" BUILD_TIME="${BUILD_TIME}" make generate-ios-bindings -C ./cmd/wallet-sdk-gomobile

.PHONY: copy-android-bindings
copy-android-bindings:
Expand Down
2 changes: 1 addition & 1 deletion demo/app/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.kotlin_version = '1.6.10'
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
Expand Down

0 comments on commit 5f4b9cc

Please sign in to comment.