Register icon indicating copy to clipboard operation
Register copied to clipboard

Mark all APP module resources as private

Open wdziemia opened this issue 7 years ago • 2 comments

All resources in a library default to public. To make all resources implicitly private, you must define at least one specific attribute as public. Resources include all files in your project’s res/ directory, such as images. To prevent users of your library from accessing resources intended only for internal use, you should use this automatic private designation mechanism by declaring one or more public resources.

To declare a public resource, add a declaration to your library’s public.xml file. If you haven’t added public resources before, you need to create the public.xml file in the res/values/ directory of your library.

The following example code creates two public string resources with the names mylib_app_name and mylib_public_string:

wdziemia avatar Jun 20 '17 02:06 wdziemia

@wdziemia this seems like something that we should still do. Should we include in 1.0?

candidcold avatar Mar 31 '20 15:03 candidcold

Yea this would be nice

wdziemia avatar Mar 31 '20 17:03 wdziemia