{"id":20330249,"url":"https://github.com/sabo99/firebaseauth-phonenumber","last_synced_at":"2025-06-14T16:33:07.438Z","repository":{"id":170699168,"uuid":"439023961","full_name":"sabo99/FirebaseAuth-PhoneNumber","owner":"sabo99","description":"Firebase Authentication with Phone Number \u0026 Kotlin Programming Android Studio","archived":false,"fork":false,"pushed_at":"2022-01-31T04:29:56.000Z","size":1450,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T12:24:30.495Z","etag":null,"topics":["android-studio","firebase-auth","firebase-phone-authentication","kotlin-android"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/sabo99.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-12-16T14:44:30.000Z","updated_at":"2024-07-01T11:23:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c467855-cc7d-478e-80d4-883d23b67265","html_url":"https://github.com/sabo99/FirebaseAuth-PhoneNumber","commit_stats":null,"previous_names":["sabo99/firebaseauth-phonenumber"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sabo99/FirebaseAuth-PhoneNumber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabo99%2FFirebaseAuth-PhoneNumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabo99%2FFirebaseAuth-PhoneNumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabo99%2FFirebaseAuth-PhoneNumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabo99%2FFirebaseAuth-PhoneNumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sabo99","download_url":"https://codeload.github.com/sabo99/FirebaseAuth-PhoneNumber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sabo99%2FFirebaseAuth-PhoneNumber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259845627,"owners_count":22920779,"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-studio","firebase-auth","firebase-phone-authentication","kotlin-android"],"created_at":"2024-11-14T20:15:41.674Z","updated_at":"2025-06-14T16:33:07.399Z","avatar_url":"https://github.com/sabo99.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"https://img.icons8.com/color/48/000000/firebase.png\"/\u003e  Firebase Authentication with Phone Number\n\nAuthentication Android application using \u003ca href=\"https://firebase.google.com/\"\u003e`Firebase`\u003c/a\u003e with the login system using **Phone Number**\n\n\n### **App Features Firebase Authentication with Phone Number** :\n\n- **_Firebase_**\n  - Authentication with `PhoneNumber`\n  - Verification with `SmsCode`\n- **_Country Code Picker_**\n  - Change Country Code | Ex : `(+62) ID`\n  - Auto Detect Country Code\n\n## Important!\n\n### Add Firebase to your Android project go to \u003ca href=\"https://firebase.google.com/docs/android/setup\"\u003e`Firebase Setup`\u003c/a\u003e\n\n\u003cbr\u003e\n\n## Design UI App Firebase Authentication with Phone Number\n\n### **`Preview Firebase Auth with Phone Number`**\n\n\u003cimg src=\"Screenshot_App/Screenshot 2021-12-16 213623.png\" height=\"500\"/\u003e\n\n### **`Preview UI FirebaseAuth-PhoneNumber`**\n| Name Page    | Preview UI            |  \n| :----------: | :--------------------: | \n| `OTP Send`         | \u003cimg src=\"Screenshot_App/1639664111362.jpg\" height=\"500\"/\u003e | \n| `OTP Send with Phone Number`         | \u003cimg src=\"Screenshot_App/1639664111368.jpg\" height=\"500\"/\u003e | \n| `Country Code Picker`  | \u003cimg src=\"Screenshot_App/1639664111355.jpg\" height=\"500\"/\u003e | \n| `OTP Verify`  | \u003cimg src=\"Screenshot_App/1639664111347.jpg\" height=\"500\"/\u003e | \n| `OTP Verify - Resend SmsCode`  | \u003cimg src=\"Screenshot_App/1639664111341.jpg\" height=\"500\"/\u003e | \n| `Home`  | \u003cimg src=\"Screenshot_App/1639664111376.jpg\" height=\"500\"/\u003e | \n\n\u003cbr\u003e\n\n## Result on Firebase Console\n\n### **`Authentication`**\n\u003cimg src=\"Screenshot_App/Screenshot 2021-12-16 212044.png\"/\u003e\n\n\n\n\u003cbr\u003e\n\n## Dependencies used\n\n```groovy\n   /** Firebase */\n    implementation platform('com.google.firebase:firebase-bom:29.0.2')\n    implementation 'com.google.firebase:firebase-analytics-ktx'\n    implementation 'com.google.firebase:firebase-auth-ktx'\n\n    implementation 'com.hbb20:ccp:2.5.0'\n\n```\n\n### Integration Step Used Binding in Kotlin\n\n1. Add **viewBinding `true`** \u003ca href=\"./app/build.gradle\"\u003e`build.gralde (Module)`\u003c/a\u003e\n\n```groovy\nandroid {\n   ...\n   buildFeatures {\n      viewBinding true\n   }\n}\n```\n\n2. Activity Kotlin Class\n\n```kotlin\nclass MainActivity : AppCompatActivity() {\n\n    /** Add this */\n    private lateinit var binding: ActivityMainBinding\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        /** Add this */\n        binding = ActivityMainBinding.inflate(layoutInflater)\n\n        /** Change this */\n        setContentView(binding.root)\n\n        /** Without findViewById */\n        binding.textView.text = \"Bye bye findViewById\"\n    }\n}\n```\n\n3. Activity Java Class\n\n```java\npublic class MainActivity extends AppCompatActivity {\n\n    /** Add this */\n    private ActivityMainBinding binding;\n\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        /** Add this */\n        binding = ActivityMainBinding.inflate(getLayoutInflater());\n\n        /** Change this */\n        setContentView(binding.getRoot());\n\n        /** Without findViewById */\n        binding.textView.setText(\"Bye bye findViewById\");\n    }\n}\n```\n\n**binding** in kotlin can be used directly without initializing **findViewById** on widgets in layout xml","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabo99%2Ffirebaseauth-phonenumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsabo99%2Ffirebaseauth-phonenumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsabo99%2Ffirebaseauth-phonenumber/lists"}