-
Notifications
You must be signed in to change notification settings - Fork 125
Commit bc7fb54
jonsimantovgoogle-labs-jules[bot]a-maurice
authoredRemove deprecated Google Mobile Ads (GMA) C++ SDK (#1768)
* Remove deprecated Google Mobile Ads (GMA) C++ SDK
This commit removes the entire GMA C++ SDK from the Firebase C++ SDK, including all references to it across all platforms (iOS, Desktop, and Android).
Changes include:
- Deletion of the core `gma` directory and its contents.
- Removal of GMA from CMakeLists.txt files.
- Removal of GMA from Gradle build files.
- Removal of GMA from iOS Podfiles.
- Removal of GMA from integration tests and UI tests.
- Removal of GMA from build scripts and CI workflows.
- Updates to documentation (README.md, Doxyfile) to reflect the removal, while preserving release notes related to past GMA versions and adding a new note about its removal.
* Refine: Silently skip GMA secrets in restore_secrets.py
This commit removes the explicit print statement when skipping GMA-related
encrypted files in `scripts/gha/restore_secrets.py`. The script will
now silently ignore these files, aligning with the complete removal of
the GMA SDK and avoiding unnecessary log output.
* Ensure restore_secrets.py skips GMA paths
This commit ensures that `scripts/gha/restore_secrets.py` correctly
skips processing for any GMA-related encrypted files. The existing
check `if api == "gma": continue` should prevent attempts to write
decrypted secrets to the `gma/integration_test` directory, which no
longer exists after the removal of the GMA SDK.
This submission is to confirm the CI tests against this version of the
script.
* Fix: Strengthen GMA skip logic in restore_secrets.py
This commit further refines `scripts/gha/restore_secrets.py` to prevent
attempts to write to the deleted `gma/integration_test` directory.
Changes include:
- Initializing `dest_paths` as an empty list.
- More careful construction of `dest_paths` based on whether `FLAGS.artifact`
is set, ensuring that GMA paths are not inadvertently created.
- Explicitly continuing the loop if no valid destination path is determined
for a file, preventing unnecessary decryption or write attempts.
- Adding redundant checks to ensure GMA paths are not processed before file
write operations as a final safeguard.
This should robustly address the `FileNotFoundError` previously observed in CI.
* Fix: Remove sensitive logging from restore_secrets.py
This commit removes print statements from `scripts/gha/restore_secrets.py` that were logging potentially sensitive file paths. This addresses security alerts raised by the GitHub Advanced Security bot regarding clear-text logging of sensitive information.
* Refactor: Remove GMA secrets directory instead of adding skip logic
This commit simplifies the removal of the GMA SDK by deleting the
`scripts/gha-encrypted/gma` directory entirely. This is a cleaner
solution than adding skip logic to `restore_secrets.py` and resolves
the `FileNotFoundError` in the CI by removing the source of the problem.
The `restore_secrets.py` script has been reverted to its original state.
* Fix: Forcefully remove gma secrets directory
This commit ensures the complete removal of the GMA SDK by forcefully
deleting the `scripts/gha-encrypted/gma` directory. This is the root
cause of the `FileNotFoundError` in the CI and is the cleanest solution.
The `restore_secrets.py` script remains in its original state, as the
problem is resolved by removing the gma secrets it was attempting to process.
* Address feedback and update readmes
* Remove the GMA source code
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: a-maurice <amaurice@google.com>1 parent 664b2a2 commit bc7fb54
File tree
170 files changed
+31
-24305
lines changed- .github/workflows
- Android
- app
- build_scripts
- ios
- docs
- gma
- gma_resources
- integration_test
- Images.xcassets
- AppIcon.appiconset
- LaunchImage.launchimage
- gradle/wrapper
- integration_test.xcodeproj
- res
- layout
- values
- src
- src_java/com/google/firebase/gma/internal/cpp
- src
- android
- ump
- common
- ump
- include/firebase
- gma
- internal
- ump
- ios
- ump
- stub
- ump
- ios_pod
- release_build_files
- Android
- scripts
- gha-encrypted/gma
- gha
- integration_testing
- ui_testing
- uitest_android/app/src/androidTest/java/com/google/firebase/uitest
- uitest_apple/FirebaseCppUITestAppUITests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
170 files changed
+31
-24305
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | - | ||
20 | + | ||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 | - | ||
189 | + | ||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
|
Lines changed: 3 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
12 | - | ||
13 | - | ||
14 | 11 |
| |
15 | 12 |
| |
16 | 13 |
| |
| |||
68 | 65 |
| |
69 | 66 |
| |
70 | 67 |
| |
71 | - | ||
72 | - | ||
73 | - | ||
74 | - | ||
75 | 68 |
| |
76 | 69 |
| |
77 | 70 |
| |
78 | 71 |
| |
79 | - | ||
72 | + | ||
80 | 73 |
| |
81 | 74 |
| |
82 | 75 |
| |
83 | 76 |
| |
84 | - | ||
77 | + | ||
85 | 78 |
| |
86 | 79 |
| |
87 | 80 |
| |
| |||
165 | 158 |
| |
166 | 159 |
| |
167 | 160 |
| |
168 | - | ||
161 | + | ||
169 | 162 |
| |
170 | 163 |
| |
171 | 164 |
| |
|
Lines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | - | ||
31 | - | ||
32 | 30 |
| |
33 | 31 |
| |
34 | 32 |
| |
| |||
52 | 50 |
| |
53 | 51 |
| |
54 | 52 |
| |
55 | - | ||
56 | 53 |
| |
57 | 54 |
| |
58 | 55 |
| |
| |||
94 | 91 |
| |
95 | 92 |
| |
96 | 93 |
| |
97 | - | ||
98 | - | ||
99 | - | ||
100 | 94 |
| |
101 | 95 |
| |
102 | 96 |
| |
|
Lines changed: 1 addition & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 | - | ||
52 | - | ||
53 | 51 |
| |
54 | 52 |
| |
55 | 53 |
| |
| |||
125 | 123 |
| |
126 | 124 |
| |
127 | 125 |
| |
128 | - | ||
126 | + | ||
129 | 127 |
| |
130 | - | ||
131 | 128 |
| |
132 | 129 |
| |
133 | 130 |
| |
| |||
635 | 632 |
| |
636 | 633 |
| |
637 | 634 |
| |
638 | - | ||
639 | - | ||
640 | - | ||
641 | 635 |
| |
642 | 636 |
| |
643 | 637 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | - | ||
14 | - | ||
15 | - | ||
13 | + | ||
14 | + | ||
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
| |||
117 | 116 |
| |
118 | 117 |
| |
119 | 118 |
| |
120 | - | ||
121 | 119 |
| |
122 | 120 |
| |
123 | 121 |
| |
| |||
222 | 220 |
| |
223 | 221 |
| |
224 | 222 |
| |
225 | - | ||
226 | 223 |
| |
227 | 224 |
| |
228 | 225 |
| |
|
Lines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
541 | 541 |
| |
542 | 542 |
| |
543 | 543 |
| |
544 | - | ||
545 | - | ||
546 | - | ||
547 | - | ||
548 | - | ||
549 | - | ||
550 | - | ||
551 | - | ||
552 | - | ||
553 | - | ||
554 | - | ||
555 | 544 |
| |
556 | 545 |
| |
557 | 546 |
| |
| |||
580 | 569 |
| |
581 | 570 |
| |
582 | 571 |
| |
583 | - | ||
584 | 572 |
| |
585 | 573 |
| |
586 | 574 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | - | ||
30 | + | ||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | - | ||
5 | + | ||
6 | 6 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | - | ||
16 | + | ||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
|
Lines changed: 0 additions & 156 deletions
This file was deleted.
0 commit comments