Skip to content

Commit

Permalink
I have worked on:
Browse files Browse the repository at this point in the history
- Fixed api key issue not fetching
  • Loading branch information
AliAzaz committed Sep 25, 2023
1 parent c0e665d commit 72fb909
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dispatch_git_artifact_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: chmod +x gradlew

- name: Upload API Key to gradle properties 🔥
run: sed -i "s|PIXABAY_KEY|${{secrets.PIXABAY_KEY}}|g" ./gradle.properties
run: sed -i "s|REPLACEABLE_PIXABAY_KEY|${{secrets.PIXABAY_KEY}}|g" ./gradle.properties

- name: Build debugging APK 🔥
run: bash ./gradlew assembleDebug
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual_dispatch_app_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: chmod +x gradlew

- name: Upload API Key to gradle properties 🔥
run: sed -i "s|PIXABAY_KEY|${{secrets.PIXABAY_KEY}}|g" ./gradle.properties
run: sed -i "s|REPLACEABLE_PIXABAY_KEY|${{secrets.PIXABAY_KEY}}|g" ./gradle.properties

- name: Build - APK 🔥
run: bash ./gradlew assemble${{env.APP_TYPE}}
Expand Down
2 changes: 0 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ android {
versionCode ConfigurationData.versionCode
versionName ConfigurationData.versionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes.configureEach {
buildConfigField "String", "PIXABAY_KEY", "\"${PIXABAY_KEY}\""
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
#For CICD build genearation
PIXABAY_KEY=PIXABAY_KEY
PIXABAY_KEY=REPLACEABLE_PIXABAY_KEY

0 comments on commit 72fb909

Please sign in to comment.