Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPN-6290 - Stop using the glean sdk generator script #9326

Merged
merged 12 commits into from
Apr 16, 2024

Conversation

brizental
Copy link
Contributor

@brizental brizental commented Apr 4, 2024

We should do the same for Android. Let's do it in a separate PR because this is currently breaking CI IIUC.

Doing Android here since fixing things for iOS broke them for Android.

@brizental brizental changed the title Chore - Stop using the glean sdk generator script Chore - [iOS] Stop using the glean sdk generator script Apr 4, 2024
@brizental brizental force-pushed the chore-kill-sdk-generator branch from 52fbc57 to 9646c12 Compare April 4, 2024 16:23
@brizental brizental changed the title Chore - [iOS] Stop using the glean sdk generator script VPN-6290 - [iOS] Stop using the glean sdk generator script Apr 9, 2024
@brizental brizental force-pushed the chore-kill-sdk-generator branch 2 times, most recently from 900ce15 to 15f3abb Compare April 11, 2024 08:16
@brizental brizental changed the title VPN-6290 - [iOS] Stop using the glean sdk generator script VPN-6290 - Stop using the glean sdk generator script Apr 11, 2024
@brizental brizental requested a review from strseb April 11, 2024 08:31
@brizental
Copy link
Contributor Author

@strseb I am assuming now we don't need to run gradle twice in cmake.sh? From local testing it seems to work -- the apk was created fine with just cmake build --build -j${nproc}... Let me know though.

@@ -52,6 +41,8 @@ android {
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion

buildConfigField "int", "VERSION_CODE", System.getenv("VERSIONCODE") ?: "99999"
buildConfigField "String", "VERSION_NAME", '"' + (System.getenv("SHORTVERSION") ?: "") + '"'
buildConfigField "String", "VERSIONCODE" , '"' +System.getenv("VERSIONCODE") + '"'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why twice?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, one is "VERSIONCODE" and the other is "VERSION_CODE" 👀

It's good you commented here. It reminds me I had a little issue with these variables.

You and the internet had told me I should use versionName and versionCode here and they would set these variables. That didn't work though, that is why I used buildConfigField here instead.

Also, I set these in a bunch of places, but I could not figure out how to just set it once. I don't like the way it is right now :(

@brizental brizental force-pushed the chore-kill-sdk-generator branch from aae3f96 to fed0f15 Compare April 15, 2024 15:58
dependencyResolutionManagement {
versionCatalogs {
create("gleanLibs") {
from(files("$gleanVendoredPath/gradle/libs.versions.toml"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neeeat

@brizental brizental requested a review from a team as a code owner April 16, 2024 11:55
@brizental brizental requested review from jcristau and removed request for a team April 16, 2024 11:55
@brizental brizental force-pushed the chore-kill-sdk-generator branch 4 times, most recently from 591a944 to 1823996 Compare April 16, 2024 13:30
@brizental brizental enabled auto-merge (squash) April 16, 2024 13:30
@github-actions github-actions bot added the 🛬 Landing This PR is marked as "auto-merge" label Apr 16, 2024
@brizental brizental force-pushed the chore-kill-sdk-generator branch from 1823996 to 05d0dad Compare April 16, 2024 14:52
@brizental brizental merged commit 55a0ad8 into main Apr 16, 2024
119 of 123 checks passed
@brizental brizental deleted the chore-kill-sdk-generator branch April 16, 2024 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛬 Landing This PR is marked as "auto-merge"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants