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

App/Service: Revise the getIpAddress method #31

Merged
merged 3 commits into from
Jun 3, 2024

Conversation

wooksong
Copy link
Member

This patch revises the getIpAddress method to return the proper localhost address corresponding to the emulator or the real target. Moreover, the platform-type variables are eliminated.

Signed-off-by: Wook Song wook16.song@samsung.com

Copy link
Contributor

@niley7464 niley7464 left a comment

Choose a reason for hiding this comment

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

I am learning a lot about Kotlin grammar by reviewing your PR 😊
LGTM!

Copy link
Member

@myungjoo myungjoo left a comment

Choose a reason for hiding this comment

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

LGTM.

@wooksong seems to have some weird editor configuration :)

wooksong added 3 commits June 3, 2024 13:39
This patch introduces a property to check that the app is running
on the Android Emulator.

Signed-off-by: Wook Song <wook16.song@samsung.com>
Several properties in the Application class are dynamically bound
after the application launches, which means accessing those properties
before bound incurs NPE. To avoid such unintended NPE, this patch
introduces the App singleton class holding those properties like
applicationContext.

Signed-off-by: Wook Song <wook16.song@samsung.com>
This patch revises the getIpAddress method to return the proper localhost
address corresponding to the emulator or the real target. Moreover, the
platform type variables are eliminated.

Signed-off-by: Wook Song <wook16.song@samsung.com>
@wooksong wooksong merged commit 2aa41cd into nnstreamer:main Jun 3, 2024
2 checks passed
@wooksong wooksong deleted the AppContext branch June 3, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants