Skip to content
Merged
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
9 changes: 9 additions & 0 deletions .github/workflows/core-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
branches:
- 'main'
- 'develop'
pull_request:
branches:
- 'develop'
paths:
- 'core/**'
- 'build.gradle.kts'
- '.github/workflows/core-build.yaml'

jobs:
build:
Expand All @@ -25,5 +32,7 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build and lint
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: core:assemble
1 change: 1 addition & 0 deletions .github/workflows/core-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
arguments: core:publish
env:
CI: true
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_IN_MEMORY }}
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/crypto-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ on:
branches:
- 'main'
- 'develop'
pull_request:
branches:
- 'develop'
paths:
- 'crypto/**'
- 'build.gradle.kts'
- '.github/workflows/crypto-build.yaml'

jobs:
build:
Expand All @@ -27,5 +34,7 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build and lint
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: crypto:assemble
1 change: 1 addition & 0 deletions .github/workflows/crypto-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
arguments: crypto:publish
env:
CI: true
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_IN_MEMORY }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build dokka
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: dokkaHtmlMultiModule
- name: "Upload to S3"
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/lightspark-sdk-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ on:
branches:
- 'main'
- 'develop'
pull_request:
branches:
- 'develop'
paths:
- 'lightspark-sdk/**'
- 'core/**'
- 'build.gradle.kts'
- '.github/workflows/lightspark-sdk-build.yaml'

jobs:
build:
Expand All @@ -28,5 +36,7 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build and lint
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: lightspark-sdk:assemble
1 change: 1 addition & 0 deletions .github/workflows/lightspark-sdk-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
arguments: lightspark-sdk:publish
env:
CI: true
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_IN_MEMORY }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-branch-cut.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ jobs:
fi
- name: Bump Version
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: "${{ env.sdk_name }}:bumpVersion -PnewVersion=${{ env.rel_version }}"
- name: Build
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: "${{ env.sdk_name }}:assemble"
- name: Merge version updates
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/wallet-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ on:
branches:
- 'main'
- 'develop'
pull_request:
branches:
- 'develop'
paths:
- 'wallet-sdk/**'
- 'core/**'
- 'build.gradle.kts'
- '.github/workflows/wallet-build.yaml'

jobs:
build:
Expand All @@ -28,5 +36,7 @@ jobs:
uses: gradle/wrapper-validation-action@ccb4328a959376b642e027874838f60f8e596de3
- name: Build and lint
uses: gradle/gradle-build-action@v2.4.2
env:
CI: true
with:
arguments: wallet-sdk:assemble
1 change: 1 addition & 0 deletions .github/workflows/wallet-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
arguments: wallet-sdk:publish
env:
CI: true
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY_IN_MEMORY }}
Expand Down
7 changes: 5 additions & 2 deletions androidwalletdemo/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties
import java.io.FileInputStream
import java.util.*
import com.android.build.gradle.internal.cxx.configure.gradleLocalProperties

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
Expand All @@ -18,7 +18,10 @@ try {
throw RuntimeException("Unable to load version.properties", e)
}

val jwtServerUrl: String = gradleLocalProperties(rootDir).getProperty("jwtServerUrl")
val isCI: Boolean = System.getenv("CI") == "true"
val jwtServerUrl: String = if (isCI) "" else
gradleLocalProperties(rootDir).getProperty("jwtServerUrl")
?: throw Error("You must set the jwtServerUrl property in a local.properties file")

android {
namespace = "com.lightspark.androidwalletdemo"
Expand Down