{"id":18611098,"url":"https://github.com/loginradius/android-sdk","last_synced_at":"2025-04-10T22:33:00.535Z","repository":{"id":33686511,"uuid":"37339286","full_name":"LoginRadius/android-sdk","owner":"LoginRadius","description":"The LoginRadius Android library will let you integrate LoginRadius' customer identity platform with your native Android mobile application(s).","archived":false,"fork":false,"pushed_at":"2024-07-26T10:48:44.000Z","size":57491,"stargazers_count":1,"open_issues_count":3,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-25T06:07:21.632Z","etag":null,"topics":["android-sdk","hacktoberfest","identity-management","loginradius","loginradius-sdk","native-apps","native-module","single-sign-on","social-login"],"latest_commit_sha":null,"homepage":"https://www.loginradius.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LoginRadius.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-12T18:59:50.000Z","updated_at":"2024-07-24T08:46:37.000Z","dependencies_parsed_at":"2024-01-04T06:23:18.634Z","dependency_job_id":"a9a10608-2d33-4710-949a-2f3c1e5f05cc","html_url":"https://github.com/LoginRadius/android-sdk","commit_stats":null,"previous_names":[],"tags_count":36,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoginRadius%2Fandroid-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoginRadius%2Fandroid-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoginRadius%2Fandroid-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LoginRadius%2Fandroid-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LoginRadius","download_url":"https://codeload.github.com/LoginRadius/android-sdk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248310508,"owners_count":21082433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-sdk","hacktoberfest","identity-management","loginradius","loginradius-sdk","native-apps","native-module","single-sign-on","social-login"],"created_at":"2024-11-07T03:12:37.775Z","updated_at":"2025-04-10T22:32:55.520Z","avatar_url":"https://github.com/LoginRadius.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoginRadius Android SDK\n![Home Image](http://docs.lrcontent.com/resources/github/banner-1544x500.png)\n\n## Introduction ##\nLoginRadius is an Identity Management Platform that simplifies user registration while securing data. LoginRadius Platform simplifies and secures your user registration process, increases conversion with Social Login that combines 30 major social platforms, and offers a full solution with Traditional Customer Registration. You can gather a wealth of user profile data from Social Login or Traditional Customer Registration.\n\nLoginRadius centralizes it all in one place, making it easy to manage and access. Easily integrate LoginRadius with all of your third-party applications, like MailChimp, Google Analytics, Livefyre, and many more, making it easy to utilize the data you are capturing.\n\nLoginRadius helps businesses boost user engagement on their web/mobile platform, manage online identities, utilize social media for marketing, capture accurate consumer data, and get unique social insight into their customer base.\n\nPlease visit [here](http://www.loginradius.com/) for more information.\n\n\n\n#### There are two projects in the library:\na. demo - This is the demo application.    \nb. androidSDK -This is the LoginRadius SDK.\n\n\n# Installing\n\nLoginRadius is now using Gradle.\n\nUse the following dependency in your project:\n\n```\nimplementation 'com.loginradius.android:androidsdk:5.2.0'\n\n```\n\nLoginRadius SDK is now available as an AAR dependency. You can add it using File \u003e New Module \u003e Import .JAR/.AAR Package. Then, add it to your build.gradle:\n\n```\ncompile project(':androidsdk-release')\n\n```\n\n## Initialize SDK\n\nBefore using the SDK, you must initialize the SDK with the help of the following code:\n\n\n\n```\nLoginRadiusSDK.Initialize init = new LoginRadiusSDK.Initialize();\n```\n\n### Credential Encryption (Optional)\n\nLoginRadius provides an extra level of security for Api Credentials inside the SDK using key store encryption, this encryption will encrypt the Api Key \u0026 Site Name, to enable this encryption you need to pass  ```true``` into `setIsEncryption` function.\n\n```\ninit.setIsEncryption(true);\n```\n\n\u003e \u003cb\u003eNote:\u003c/b\u003e  For enabling encryption ``init.setIsEncryption(true)`` need to be added before initializing the API key and Site Name. \n\n\n\u003cbr\u003e \n\n### Initialize API credentials (Required)\nBefore using the SDK, you must initialize the Api credentials with the help of the following code\n\n```\ninit.setApiKey(\"\u003cyour-api-key\u003e\");\ninit.setSiteName(\"\u003cyour-site-name\u003e\");\n```\nFor step by step guide on getting Api Credentials from Login Radius Admin Console, please refer to this [document](https://www.loginradius.com/docs/api/v2/admin-console/platform-security/api-key-and-secret/#api-key-and-secret)\n\n### Referer Header (Optional)\n\nThe referer header is used to determine the registration source from which the user has created the account and is synced in the  RegistrationSource field for the user profile. When initializing the SDK, you can optionally specify Referer Header.\n\n```\ninit.setReferer(\"\u003cReferer-Header-Value\u003e\");\n```\n\n\n\n### Custom Header (Optional)\nYou can optionally specify Custom Header. This feature allows you to add the Custom header in an API request, you can add multiple headers using key, value pair.\n\n\n```\nMap\u003cString,String\u003e customHeader=new HashMap\u003cString, String\u003e();\ncustomHeader.put(\"\u003cCustom-Header-Name\u003e\", \"\u003cCustom-Header-Value\u003e\");\ncustomHeader.put(\"\u003cCustom-Header-Name1\u003e\", \"\u003cCustom-Header-Value1\u003e\");\ninit.setCustomHeader(customHeader);\n       \n```\n\n\n### Facebook Login\nFor Native Facebook Login Add the following meta data to your Android Manifest inside the application tag:\n```\n\n\u003cmeta-data\n    android:name=\"com.facebook.sdk.ApplicationId\"\n    android:value=\"facebook_app_id\" /\u003e\n \u003cmeta-data \n    android:name=\"com.facebook.sdk.ClientToken\" \n    android:value=\"facebook_client_token\"/\u003e\n\n```\n\n### Encryption of Sensitive information\n\nLoginRadius provides key store encryption for sensitive information, you can leverage the following helper functions for encryption and decryption of sensitive information stored inside your project.\n\n\u003e Note: These helper function require Android 6/Api Level 23 or higher, \n\n\n#### \u003cb\u003eEncryption\u003c/b\u003e\nTo encrypt the sensitive information using the helper function `encryptData()` please use the following code\n```java\nif (Build.VERSION.SDK_INT \u003e= Build.VERSION_CODES.M) {\n    String dataToBeEncrypted=\"\u003cdata-to-be-encrypted\u003e\";\n    String result=LoginRadiusEncryptor.encryptData(dataToBeEncrypted);\n    System.out.println(result);\n}\n```\n\n\n#### \u003cb\u003eDecryption\u003c/b\u003e\n\nThe encrypted data will be decrypted using the helper function `decryptData()` please use the following code to decrypt the data.\n\n\n```java\nif (Build.VERSION.SDK_INT \u003e= Build.VERSION_CODES.M) {\n     String encryptedData=\"\u003cencryptedData\u003e\";\n     String result= LoginRadiusEncryptor.decryptData(encryptedData);\n     System.out.println(result);\n}\n```\n\n\u003e `Build.VERSION.SDK_INT \u003e= Build.VERSION_CODES.M` indicates that the above helper function should only be called on the API level 23 or higher\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floginradius%2Fandroid-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floginradius%2Fandroid-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floginradius%2Fandroid-sdk/lists"}