Skip to content

MS-989 SimFace in dev builds only#1203

Merged
luhmirin-s merged 2 commits into
mainfrom
feature/MS-989-simface-in-dev-only
Jun 4, 2025
Merged

MS-989 SimFace in dev builds only#1203
luhmirin-s merged 2 commits into
mainfrom
feature/MS-989-simface-in-dev-only

Conversation

@luhmirin-s
Copy link
Copy Markdown
Contributor

@luhmirin-s luhmirin-s commented May 29, 2025

JIRA ticket
Will be released in: 2025.2.0

Notable changes

  • Only bundle the SimFace in the debug build. Other build types have stub implementation to make the DI happy.
  • Opted not to bother with splitting configuration into build types as it would be extremely complex for almost no return - the simFace field in the config should only be provided to dev projects by the backend, so there is little to no risk of it affecting the release build. The code itself does not add any noticeable difference in the APK file.
  • Also, bump SimFace dependency to a version that does not bundle test images.

APK breakdown

Both APKs were generated from the same code/commit:

Screenshot 2025-05-29 at 11 24 13

Testing guidance

  • Create dev, staging and release builds from the same commit and check the APK sizes and contents using the analyze tool.

Additional work checklist

  • Effect on other features and security has been considered
  • Design document marked as "In development" (if applicable)
  • External (Gitbook) and internal (Confluence) Documentation is up to date (or ticket created)
  • Test cases in Testiny are up to date (or ticket created)
  • Other teams notified about the changes (if applicable)

@cla-bot cla-bot Bot added the ... label May 29, 2025
@luhmirin-s luhmirin-s changed the title MS-989 SimFace in dev builds only [WIP] MS-989 SimFace in dev builds only May 29, 2025
@luhmirin-s luhmirin-s changed the title [WIP] MS-989 SimFace in dev builds only MS-989 SimFace in dev builds only May 29, 2025
@luhmirin-s luhmirin-s requested review from a team, BurningAXE, TristramN, alex-vt, alexandr-simprints, meladRaouf and ybourgery and removed request for a team May 29, 2025 12:19
@luhmirin-s luhmirin-s marked this pull request as ready for review May 29, 2025 12:19
if (version == rocV3BioSdk.version) rocV3BioSdk else rocV1BioSdk
}
FaceConfiguration.BioSdk.SIM_FACE -> resolveSimFaceVersionUseCase()
FaceConfiguration.BioSdk.RANK_ONE -> resolveRankOneVersionUseCase()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's a matter of preference but do we really need to extract something as simple as the version resolving? It seems the overhead is higher than the code itself.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is not necessary, but it has the benefit of isolating each SDK's logic.

Honestly, I was just trying a lot of things to minimise the amount of classes that we would need to duplicate per build type and this is a by-product of the experimentation. We can simplify it when the need for build types is gone.

Copy link
Copy Markdown
Contributor

@BurningAXE BurningAXE left a comment

Choose a reason for hiding this comment

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

Awesome that we won't inflate release size needlessly!

@luhmirin-s luhmirin-s force-pushed the feature/MS-988-simface-integration branch from 974b4a4 to 6167762 Compare June 3, 2025 09:52
@luhmirin-s luhmirin-s force-pushed the feature/MS-989-simface-in-dev-only branch from 7b69efe to fa6a305 Compare June 3, 2025 09:52
@luhmirin-s luhmirin-s force-pushed the feature/MS-988-simface-integration branch from 6167762 to 76fc303 Compare June 3, 2025 10:18
@luhmirin-s luhmirin-s force-pushed the feature/MS-989-simface-in-dev-only branch from fa6a305 to ae4e39e Compare June 3, 2025 10:18
@luhmirin-s luhmirin-s force-pushed the feature/MS-988-simface-integration branch from 76fc303 to 7f07880 Compare June 3, 2025 13:53
@luhmirin-s luhmirin-s force-pushed the feature/MS-988-simface-integration branch from 7f07880 to be324d3 Compare June 3, 2025 15:17
@luhmirin-s luhmirin-s force-pushed the feature/MS-989-simface-in-dev-only branch from ae4e39e to 659fe32 Compare June 3, 2025 15:18
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 3, 2025

Base automatically changed from feature/MS-988-simface-integration to main June 4, 2025 06:29
@luhmirin-s luhmirin-s merged commit 46453c8 into main Jun 4, 2025
12 checks passed
@luhmirin-s luhmirin-s deleted the feature/MS-989-simface-in-dev-only branch June 4, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants