Skip to content

Commit

Permalink
ci: add python script to remove fdc
Browse files Browse the repository at this point in the history
  • Loading branch information
thatfiredev committed Oct 2, 2024
1 parent a2e39b7 commit d7fcb93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
uses: gradle/gradle-build-action@v2
- name: Check Snippets
run: python scripts/checksnippets.py
# TODO(thatfiredev): remove this once github.com/firebase/quickstart-android/issues/1672 is fixed
- name: Remove Firebase Data Connect from CI
run: python scripts/ci_remove_fdc.py
- name: Copy mock google_services.json
run: ./copy_mock_google_services_json.sh
- name: Build with Gradle (Pull Request)
Expand Down
8 changes: 8 additions & 0 deletions scripts/ci_remove_fdc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# TODO(thatfiredev): remove this once github.com/firebase/quickstart-android/issues/1672 is fixed
with open('settings.gradle.kts', 'r') as file:
filedata = file.read()

filedata = filedata.replace('":dataconnect:app",', '')

with open('settings.gradle.kts', 'w') as file:
file.write(filedata)

0 comments on commit d7fcb93

Please sign in to comment.