Skip to content

添加在 Hook 资源时获取宿主原始资源的扩展功能 #36

@buffcow

Description

@buffcow

框架中貌似没有封装获取app资源的方法
例如我要获取app的string,要经过以下步骤:

val id = appResources!!.getIdentifier(
                    "example_name",
                    "string",
                    packageName
                )
appResources.getString(id)

这样略显麻烦,有什么优雅的方法可以代替吗

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions