Skip to content

ci: Dynamic package name and bundle identifier for multi-app builds#7264

Draft
Copilot wants to merge 3 commits into
developfrom
copilot/fix-package-name-issues
Draft

ci: Dynamic package name and bundle identifier for multi-app builds#7264
Copilot wants to merge 3 commits into
developfrom
copilot/fix-package-name-issues

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 3, 2025

What

PR #7261 automated releases for OBF/OPFF/OPF but had critical configuration issues preventing proper builds:

Android:

  • Package name hardcoded to org.openfoodfacts.scanner in build.gradle.kts - now reads from PACKAGE_NAME env var
  • PACKAGE_NAME not passed to build step - now propagated in workflow
  • Keystore decrypt script referenced non-existent obf_keystore.jks.gpg - now uses scanner_keystore.jks.gpg (temporary until proper migration)
  • Google Play API JSON not explicitly set - now specified in Fastfile

iOS:

  • Bundle identifier hardcoded to org.openfoodfacts.scanner in Xcode project - now dynamically updated via update_app_identifier in Fastfile before build

Example: Building OBF now works as:

PACKAGE_NAME: org.openbeautyfacts.scanner
APP_IDENTIFIER: org.openbeautyfacts.scanner
KEYSTORE_FILE: obf_keystore.jks

Remaining External Actions Required:

  • iOS certificates for OBF/OPFF/OPF bundle IDs (not in ios-certificates repo yet)
  • OBF keystore migration from old repo (OpenBeautyFactsProd.keyobf_keystore.jks.gpg)
  • Separate Google Play API JSON files per app (currently all use OFF's)

See MULTI_APP_RELEASE_FIXES.md for complete details.

Screenshot

N/A - CI/CD configuration changes

Fixes bug(s)

Part of

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/openfoodfacts/openfoodfacts-androidapp/contents/fastlane/envfiles
    • Triggering command: /usr/bin/curl curl -sL REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Task</issue_title>
<issue_description>The work done in #7261 has several issues:

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 3, 2025 10:49
…ilds

Co-authored-by: teolemon <1689815+teolemon@users.noreply.github.com>
Co-authored-by: teolemon <1689815+teolemon@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix package name issues for iOS and Android builds fix: Dynamic package name and bundle identifier for multi-app builds Dec 3, 2025
Copilot AI requested a review from teolemon December 3, 2025 10:57
@github-actions github-actions Bot added 🍎 iOS iOS specific issues or PRs Android GitHub labels Dec 3, 2025
@teolemon teolemon changed the title fix: Dynamic package name and bundle identifier for multi-app builds ci: Dynamic package name and bundle identifier for multi-app builds Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android GitHub 🍎 iOS iOS specific issues or PRs

Projects

Status: 💬 To discuss and validate

Development

Successfully merging this pull request may close these issues.

Task

2 participants