Skip to content

Introduce safe property access for Unity NDK and export paths#14

Merged
teogor merged 1 commit intomainfrom
feature/unity-properties-api
Feb 23, 2024
Merged

Introduce safe property access for Unity NDK and export paths#14
teogor merged 1 commit intomainfrom
feature/unity-properties-api

Conversation

@teogor
Copy link
Copy Markdown
Owner

@teogor teogor commented Feb 23, 2024

Summary:

This PR adds an internal API (@InternalDrifterApi) to provide safer and more flexible access to Drifter properties from Gradle build scripts. It introduces the getSafeDrifterUnityPathNdk() and getSafeDrifterUnityPathExport() functions to ensure required properties are present and handle errors gracefully.

Motivation:

  • Prevent potential crashes due to missing properties.
  • Improve error handling and provide informative messages.
  • Allow for future changes to property handling without breaking external code.

Usage:

android {
  unityOptions(
    ndkPath = getSafeDrifterUnityPathNdk()
    exportFolder = getSafeDrifterUnityPathExport()
  )
}

@teogor teogor added @priority-medium @feature New feature or request labels Feb 23, 2024
@teogor teogor added this to the 1.0.0-alpha02 milestone Feb 23, 2024
@teogor teogor self-assigned this Feb 23, 2024
@teogor teogor merged commit d9a7887 into main Feb 23, 2024
@zeobot zeobot Bot deleted the feature/unity-properties-api branch February 23, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@feature New feature or request @priority-medium

Projects

Development

Successfully merging this pull request may close these issues.

1 participant