-
in root project
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
-
in
app
level:dependencies { implementation 'com.github.worklifebeyond:wlb-role-helper-android:<latest_version>' }
// get global roles ArrayList<String> globalRoles = WlbRoleHelper.getGlobalRoles("111")); // ["student", "instructor", "organization"] // get organization roles ArrayList<String> orgRoles = WlbRoleHelper.getOrgRoles("00010000")); // ["organization-hr-admin"] if(orgRoles.get(0).equals(Roles.ORGANIZATION_HR_ADMIN)){ // true }
See [Test](https://github.com/worklifebeyond/wlb-role-helper- android/blob/master/wlbrolehelper/src/test/java/com/github/worklifebeyond/RoleUnitTest.java) for details.
-
Notifications
You must be signed in to change notification settings - Fork 0
worklifebeyond/wlb-role-helper-android
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published