├── app ├── .gitignore ├── src │ └── main │ │ ├── res │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ ├── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── styles.xml │ │ │ └── strings.xml │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ └── layout │ │ │ ├── activity_main.xml │ │ │ └── activity_sign_in.xml │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── github │ │ └── pavlospt │ │ └── signindemo │ │ ├── MainActivity.kt │ │ └── SignInActivity.kt ├── proguard-rules.pro ├── build.gradle └── google-services.json ├── authmanager ├── .gitignore ├── src │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── github │ │ └── charbgr │ │ └── authmanager │ │ ├── views │ │ ├── BaseView.kt │ │ ├── HintView.kt │ │ ├── GoogleView.kt │ │ └── SmartLockView.kt │ │ ├── AuthManagerCodes.kt │ │ ├── models │ │ └── SuccessPayload.java │ │ ├── HintsManager.kt │ │ ├── GoogleAuthManager.kt │ │ ├── AuthManager.kt │ │ └── SmartLockManager.kt ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── LICENSE ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /authmanager/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':authmanager' 2 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infamous-riddles/AuthManager/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /authmanager/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infamous-riddles/AuthManager/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infamous-riddles/AuthManager/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infamous-riddles/AuthManager/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infamous-riddles/AuthManager/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/infamous-riddles/AuthManager/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /authmanager/src/main/java/com/github/charbgr/authmanager/views/BaseView.kt: -------------------------------------------------------------------------------- 1 | package com.github.charbgr.authmanager.views 2 | 3 | import com.github.charbgr.authmanager.models.SuccessPayload 4 | 5 | interface BaseView { 6 | fun signInSuccess(signInSuccess: SuccessPayload) 7 | } -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /authmanager/src/main/java/com/github/charbgr/authmanager/views/HintView.kt: -------------------------------------------------------------------------------- 1 | package com.github.charbgr.authmanager.views 2 | 3 | import com.google.android.gms.auth.api.credentials.Credential 4 | 5 | interface HintView : BaseView { 6 | fun emailHintRequestCancelled() 7 | fun emailHintRequestFailure() 8 | fun emailHintSelected(credential: Credential?) 9 | } 10 | -------------------------------------------------------------------------------- /authmanager/src/main/java/com/github/charbgr/authmanager/views/GoogleView.kt: -------------------------------------------------------------------------------- 1 | package com.github.charbgr.authmanager.views 2 | 3 | import com.google.android.gms.common.api.Status 4 | 5 | interface GoogleView : BaseView { 6 | fun googleSignInResultFailure() 7 | fun userCancelledGoogleSignIn() 8 | fun googleSignOut(status: Status) 9 | fun googleAccessRevoked(status: Status) 10 | } 11 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /authmanager/src/main/java/com/github/charbgr/authmanager/AuthManagerCodes.kt: -------------------------------------------------------------------------------- 1 | package com.github.charbgr.authmanager 2 | 3 | 4 | class AuthManagerCodes private constructor() { 5 | 6 | companion object { 7 | @JvmField 8 | val RC_SIGN_IN = 1 9 | 10 | @JvmField 11 | val RC_CREDENTIALS_REQUEST = 2 12 | 13 | @JvmField 14 | val RC_HINT_REQUEST = 3 15 | 16 | @JvmField 17 | val RC_CREDENTIAL_SAVE = 4 18 | } 19 | 20 | } 21 | 22 | -------------------------------------------------------------------------------- /authmanager/src/main/java/com/github/charbgr/authmanager/views/SmartLockView.kt: -------------------------------------------------------------------------------- 1 | package com.github.charbgr.authmanager.views 2 | 3 | import com.google.android.gms.common.api.Status 4 | 5 | interface SmartLockView : BaseView { 6 | 7 | fun credentialSaveResolutionCancelled() 8 | fun credentialSaveResolutionFailure() 9 | 10 | fun credentialRequestFailure() 11 | fun credentialRequestResolutionFailure() 12 | fun credentialRequestCancelled() 13 | 14 | fun credentialSaveFailure() 15 | fun credentialSaveSuccess() 16 | fun credentialDelete(status: Status) 17 | } 18 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/pavlostournaris/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /authmanager/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /Users/pavlostournaris/Library/Android/sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # Intellij 36 | *.iml 37 | 38 | # Keystore files 39 | *.jks 40 | *.iml 41 | /.idea/ 42 | .idea/ 43 | .gradle 44 | /local.properties 45 | /.idea/workspace.xml 46 | /.idea/libraries 47 | .DS_Store 48 | /build 49 | /captures 50 | .externalNativeBuild 51 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | SignInDemoApp 3 | 1071636679426-2uv97ohle2q838i0dpv6j4bqblgncp06.apps.googleusercontent.com 4 | Request Hints 5 | Request User Credentials 6 | Email Address 7 | Password 8 | Save Credentials 9 | Google Sign-Out 10 | Revoke Access 11 | Credential 12 | Use it 13 | Delete it 14 | What do you want to do with the "%1$s" Credential? 15 | 16 | -------------------------------------------------------------------------------- /authmanager/src/main/java/com/github/charbgr/authmanager/models/SuccessPayload.java: -------------------------------------------------------------------------------- 1 | package com.github.charbgr.authmanager.models; 2 | 3 | import com.google.android.gms.auth.api.credentials.Credential; 4 | import com.google.android.gms.auth.api.signin.GoogleSignInAccount; 5 | 6 | public class SuccessPayload { 7 | 8 | private GoogleSignInAccount googleSignInAccount; 9 | private Credential credential; 10 | 11 | public SuccessPayload(GoogleSignInAccount googleSignInAccount, Credential credential) { 12 | this.googleSignInAccount = googleSignInAccount; 13 | this.credential = credential; 14 | } 15 | 16 | public boolean hasGoogleSignInAccount() { 17 | return googleSignInAccount != null; 18 | } 19 | 20 | public GoogleSignInAccount getGoogleSignInAccount() { 21 | return googleSignInAccount; 22 | } 23 | 24 | public boolean hasCredential() { 25 | return credential != null; 26 | } 27 | 28 | public Credential getCredential() { 29 | return credential; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /authmanager/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | apply plugin: 'kotlin-android' 3 | 4 | android { 5 | compileSdkVersion 25 6 | buildToolsVersion "25.0.1" 7 | 8 | defaultConfig { 9 | minSdkVersion 19 10 | targetSdkVersion 25 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | 15 | sourceSets { 16 | main.java.srcDirs += 'src/main/kotlin' 17 | } 18 | } 19 | 20 | tasks.withType(Javadoc).all { enabled = false } 21 | 22 | dependencies { 23 | compile 'com.android.support:appcompat-v7:25.1.0' 24 | compile 'com.google.android.gms:play-services-auth:10.0.1' 25 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 26 | } 27 | 28 | repositories { 29 | mavenCentral() 30 | } 31 | 32 | ext { 33 | PUBLISH_GROUP_ID = 'com.github.charbgr' 34 | PUBLISH_ARTIFACT_ID = 'authmanager' 35 | PUBLISH_VERSION = '1.0' 36 | } 37 | 38 | apply from: 'https://raw.githubusercontent.com/ArthurHub/release-android-library/master/android-release-aar.gradle' 39 | 40 | //apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Pavlos-Petros Tournaris 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | apply plugin: 'kotlin-android' 3 | 4 | android { 5 | compileSdkVersion 25 6 | buildToolsVersion "25.0.1" 7 | defaultConfig { 8 | applicationId "com.github.pavlospt.signindemo" 9 | minSdkVersion 21 10 | targetSdkVersion 25 11 | versionCode 1 12 | versionName "1.0" 13 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 14 | } 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 | } 20 | } 21 | } 22 | 23 | dependencies { 24 | compile fileTree(include: ['*.jar'], dir: 'libs') 25 | compile 'com.android.support:appcompat-v7:25.1.0' 26 | compile 'com.android.support:design:25.1.0' 27 | compile 'com.google.android.gms:play-services-auth:10.0.1' 28 | compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" 29 | androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 30 | exclude group: 'com.android.support', module: 'support-annotations' 31 | }) 32 | testCompile 'junit:junit:4.12' 33 | compile project(path: ':authmanager') 34 | } -------------------------------------------------------------------------------- /app/src/main/java/com/github/pavlospt/signindemo/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.github.pavlospt.signindemo 2 | 3 | import android.content.Intent 4 | import android.support.v7.app.AppCompatActivity 5 | import android.os.Bundle 6 | import android.widget.TextView 7 | 8 | class MainActivity : AppCompatActivity() { 9 | 10 | companion object { 11 | @JvmField 12 | val USER_EMAIL_KEY: String = "user-email-key" 13 | 14 | @JvmStatic 15 | fun startActivity(activity: AppCompatActivity, userEmail: String?) { 16 | val intent: Intent = Intent(activity, MainActivity::class.java) 17 | intent.putExtra(USER_EMAIL_KEY, userEmail) 18 | activity.startActivity(intent) 19 | } 20 | } 21 | 22 | private lateinit var userEmailTextView: TextView 23 | 24 | private val userEmail: String by lazy { 25 | intent.getStringExtra(USER_EMAIL_KEY) 26 | } 27 | 28 | override fun onCreate(savedInstanceState: Bundle?) { 29 | super.onCreate(savedInstanceState) 30 | setContentView(R.layout.activity_main) 31 | 32 | initViews() 33 | initData() 34 | } 35 | 36 | private fun initData() { 37 | userEmailTextView.text = userEmail 38 | } 39 | 40 | private fun initViews() { 41 | userEmailTextView = findViewById(R.id.user_email_text_view) as TextView 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | org.gradle.jvmargs=-Xmx1536m 13 | 14 | # When configured, Gradle will run in incubating parallel mode. 15 | # This option should only be used with decoupled projects. More details, visit 16 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 17 | # org.gradle.parallel=true 18 | VERSION_NAME=1.0 19 | VERSION_CODE=1 20 | GROUP=com.github.charbgr 21 | 22 | POM_DESCRIPTION=Google Sign-In and SmartLock Manager 23 | POM_URL=https://github.com/charbgr/AuthManager 24 | POM_SCM_URL=https://github.com/charbgr/AuthManager 25 | POM_SCM_CONNECTION=scm:git@github.com:charbgr/AuthManager.git 26 | POM_SCM_DEV_CONNECTION=scm:git@github.com:charbgr/AuthManager.git 27 | POM_LICENCE_NAME=MIT License 28 | POM_LICENCE_URL=https://opensource.org/licenses/MIT 29 | POM_LICENCE_DIST=repo 30 | POM_ARTIFACT_ID=authmanager 31 | POM_NAME=AuthManager 32 | POM_PACKAGING=aar 33 | POM_DEVELOPER_ID=charbgr 34 | POM_DEVELOPER_NAME=Charalampakis Vasilis -------------------------------------------------------------------------------- /app/google-services.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_info": { 3 | "project_number": "1071636679426", 4 | "project_id": "ac-schedule" 5 | }, 6 | "client": [ 7 | { 8 | "client_info": { 9 | "mobilesdk_app_id": "1:1071636679426:android:988a70013241dfe3", 10 | "android_client_info": { 11 | "package_name": "com.github.pavlospt.signindemo" 12 | } 13 | }, 14 | "oauth_client": [ 15 | { 16 | "client_id": "1071636679426-2uv97ohle2q838i0dpv6j4bqblgncp06.apps.googleusercontent.com", 17 | "client_type": 1, 18 | "android_info": { 19 | "package_name": "com.github.pavlospt.signindemo", 20 | "certificate_hash": "2968F8DCC4C9A51B7A2D2AD8F90970BAE780CBD0" 21 | } 22 | }, 23 | { 24 | "client_id": "1071636679426-bulvu8g7mq2goir8t6vmgvr5icjv26r9.apps.googleusercontent.com", 25 | "client_type": 3 26 | } 27 | ], 28 | "api_key": [ 29 | { 30 | "current_key": "AIzaSyCJ9W7RZIlO7a3rbH2zGwI7i_VHc9_Hvag" 31 | } 32 | ], 33 | "services": { 34 | "analytics_service": { 35 | "status": 1 36 | }, 37 | "appinvite_service": { 38 | "status": 1, 39 | "other_platform_oauth_client": [] 40 | }, 41 | "ads_service": { 42 | "status": 1 43 | } 44 | } 45 | } 46 | ], 47 | "configuration_version": "1" 48 | } -------------------------------------------------------------------------------- /gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_sign_in.xml: -------------------------------------------------------------------------------- 1 | 2 | 16 | 17 | 21 | 22 | 27 | 28 | 29 | 30 | 34 | 35 | 40 | 41 | 42 | 43 |