├── share ├── OAuth │ ├── .gitignore │ ├── libs │ │ ├── open_sdk_r5886_lite.jar │ │ ├── org.apache.http.legacy.jar │ │ └── core-4.1.0-openDefaultRelease.aar │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ └── values │ │ │ │ │ └── strings.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── yanxuwen │ │ │ │ │ └── OAuth │ │ │ │ │ ├── AuthPlatform.java │ │ │ │ │ ├── AuthType.java │ │ │ │ │ ├── OAuthListener.java │ │ │ │ │ ├── OAuthPlatformListener.java │ │ │ │ │ ├── PlatformWeixin │ │ │ │ │ ├── WXInfo.java │ │ │ │ │ ├── WXLogin.java │ │ │ │ │ ├── WeixinUtils.java │ │ │ │ │ ├── Util.java │ │ │ │ │ ├── MyWXEntryActivity.java │ │ │ │ │ └── WXShare.java │ │ │ │ │ ├── OAuthID.java │ │ │ │ │ ├── PlatformSina │ │ │ │ │ ├── SinaLogin.java │ │ │ │ │ ├── SinaUtils.java │ │ │ │ │ └── SinaShare.java │ │ │ │ │ ├── Utils │ │ │ │ │ ├── JsonUtils.java │ │ │ │ │ ├── HTTPSTrustManager.java │ │ │ │ │ └── TrustAllSSLSocketFactory.java │ │ │ │ │ ├── PlatformQQ │ │ │ │ │ ├── QQLogin.java │ │ │ │ │ ├── QQInfo.java │ │ │ │ │ ├── QQUtils.java │ │ │ │ │ └── QQShare2.java │ │ │ │ │ └── OAuthUtils.java │ │ │ └── AndroidManifest.xml │ │ └── test │ │ │ └── java │ │ │ └── renovate │ │ │ └── umshare │ │ │ └── ExampleUnitTest.java │ ├── res │ │ └── values │ │ │ ├── umeng_socialize_shareview_strings.xml │ │ │ ├── umeng_socialize_colors.xml │ │ │ ├── umeng_socialize_strings.xml │ │ │ └── umeng_socialize_style.xml │ ├── proguard-rules.pro │ └── build.gradle ├── app │ ├── .gitignore │ ├── debug.keystore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── layout │ │ │ │ │ └── activity_main.xml │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ ├── zhengchen │ │ │ │ │ └── yixinxiangfo │ │ │ │ │ │ └── wxapi │ │ │ │ │ │ └── WXEntryActivity.java │ │ │ │ │ └── yanxuwen │ │ │ │ │ └── share │ │ │ │ │ ├── WelcomeActivity.java │ │ │ │ │ └── MainActivity.java │ │ │ └── AndroidManifest.xml │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── yanxuwen │ │ │ └── share │ │ │ └── ExampleUnitTest.java │ ├── proguard-rules.pro │ └── build.gradle ├── settings.gradle ├── .idea │ ├── copyright │ │ └── profiles_settings.xml │ ├── modules.xml │ ├── runConfigurations.xml │ ├── gradle.xml │ ├── compiler.xml │ └── misc.xml ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── .gitignore ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew └── README.md /share/OAuth/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /share/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /share/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':OAuth' 2 | -------------------------------------------------------------------------------- /share/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/debug.keystore -------------------------------------------------------------------------------- /share/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | share 3 | 4 | -------------------------------------------------------------------------------- /share/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /share/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /share/OAuth/libs/open_sdk_r5886_lite.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/OAuth/libs/open_sdk_r5886_lite.jar -------------------------------------------------------------------------------- /share/OAuth/libs/org.apache.http.legacy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/OAuth/libs/org.apache.http.legacy.jar -------------------------------------------------------------------------------- /share/OAuth/libs/core-4.1.0-openDefaultRelease.aar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/OAuth/libs/core-4.1.0-openDefaultRelease.aar -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /share/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yanxuwen/share/HEAD/share/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /share/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /share/OAuth/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | UMShare 3 | 文件不存在 4 | 5 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/AuthPlatform.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth; 2 | 3 | /** 4 | * Created by yanxuwen on 2017/9/22. 5 | * 授权平台 6 | */ 7 | 8 | public enum AuthPlatform { 9 | QQ,WX,SINA 10 | } 11 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/AuthType.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth; 2 | 3 | /** 4 | * Created by yanxuwen on 2017/9/26. 5 | * 授权类型 6 | */ 7 | 8 | public enum AuthType { 9 | LOGIN,USERINFO,SHARE 10 | } 11 | -------------------------------------------------------------------------------- /share/app/src/main/java/com/zhengchen/yixinxiangfo/wxapi/WXEntryActivity.java: -------------------------------------------------------------------------------- 1 | package com.zhengchen.yixinxiangfo.wxapi; 2 | 3 | import com.yanxuwen.OAuth.PlatformWeixin.MyWXEntryActivity; 4 | 5 | public class WXEntryActivity extends MyWXEntryActivity {} -------------------------------------------------------------------------------- /share/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Sep 26 17:29:54 CST 2017 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-3.3-all.zip 7 | -------------------------------------------------------------------------------- /share/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #FFFFFFFF 7 | 8 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/OAuthListener.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth; 2 | 3 | /** 4 | * Created by yanxuwen on 2017/9/22. 5 | */ 6 | 7 | public interface OAuthListener { 8 | public void onAuthError(AuthPlatform platform,AuthType mAuthType); 9 | public void onAuthComplete(AuthPlatform mplatform,AuthType mAuthType,Object object); 10 | public void onAuthCancel(AuthPlatform platform,AuthType mAuthType); 11 | } 12 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/OAuthPlatformListener.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth; 2 | 3 | /** 4 | * Created by yanxuwen on 2017/9/22. 5 | */ 6 | 7 | public interface OAuthPlatformListener { 8 | public void onPlatformError(AuthPlatform platform,AuthType mAuthType); 9 | public void onPlatformComplete(AuthPlatform platform,AuthType mAuthType,Object object); 10 | public void onPlatformCancel(AuthPlatform platform,AuthType mAuthType); 11 | } 12 | -------------------------------------------------------------------------------- /share/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /share/app/src/main/java/com/yanxuwen/share/WelcomeActivity.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.share; 2 | 3 | import android.app.Activity; 4 | import android.content.Intent; 5 | import android.os.Bundle; 6 | 7 | /** 8 | * Created by yanxuwen on 2017/9/29. 9 | */ 10 | 11 | public class WelcomeActivity extends Activity{ 12 | protected void onCreate(Bundle savedInstanceState) { 13 | super.onCreate(savedInstanceState); 14 | startActivity(new Intent(this,MainActivity.class)); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /share/OAuth/src/test/java/renovate/umshare/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package renovate.umshare; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /share/app/src/test/java/com/yanxuwen/share/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.share; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /share/OAuth/res/values/umeng_socialize_shareview_strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 分享到新浪微博 4 | 分享到豆瓣 5 | 分享到人人网 6 | 7 | 分享到腾讯微博 8 | 分享到twitter 9 | 分享到领英 10 | -------------------------------------------------------------------------------- /share/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /share/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /share/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /share/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /share/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.3.1' 9 | classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0' 10 | classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1' 11 | 12 | // NOTE: Do not place your application dependencies here; they belong 13 | // in the individual module build.gradle files 14 | } 15 | 16 | } 17 | 18 | allprojects { 19 | repositories { 20 | jcenter() 21 | maven { url "https://jitpack.io" } 22 | } 23 | } 24 | task clean(type: Delete) { 25 | delete rootProject.buildDir 26 | } 27 | -------------------------------------------------------------------------------- /share/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 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/PlatformWeixin/WXInfo.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth.PlatformWeixin; 2 | 3 | /** 4 | * Created by yanxuwen on 2017/9/26. 5 | */ 6 | 7 | public class WXInfo { 8 | /** 9 | * nickname : xxx 10 | * sex : 11 | * headimgurl : xxxx 12 | */ 13 | 14 | private String nickname; 15 | private String sex; 16 | private String headimgurl; 17 | 18 | public String getNickname() { 19 | return nickname; 20 | } 21 | 22 | public void setNickname(String nickname) { 23 | this.nickname = nickname; 24 | } 25 | 26 | public String getSex() { 27 | return sex; 28 | } 29 | 30 | public void setSex(String sex) { 31 | this.sex = sex; 32 | } 33 | 34 | public String getHeadimgurl() { 35 | return headimgurl; 36 | } 37 | 38 | public void setHeadimgurl(String headimgurl) { 39 | this.headimgurl = headimgurl; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /share/OAuth/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 D:\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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /share/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 D:\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 | 19 | # Uncomment this to preserve the line number information for 20 | # debugging stack traces. 21 | #-keepattributes SourceFile,LineNumberTable 22 | 23 | # If you keep the line number information, uncomment this to 24 | # hide the original source file name. 25 | #-renamesourcefileattribute SourceFile 26 | -------------------------------------------------------------------------------- /share/OAuth/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /share/OAuth/res/values/umeng_socialize_colors.xml: -------------------------------------------------------------------------------- 1 | 2 | #F4F4F4 3 | #2c3035 4 | #333333 5 | #FFFFFF 6 | #E6E6E6 7 | #999999 8 | #464f61 9 | #959696 10 | #666666 11 | #EEEEEE 12 | #595959 13 | #C4C4C4 14 | #F8F8F8 15 | #F4F4F4 16 | #D4E0E5 17 | #ffffff 18 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/OAuthID.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth; 2 | 3 | import android.content.Context; 4 | 5 | import com.sina.weibo.sdk.WbSdk; 6 | import com.sina.weibo.sdk.auth.AuthInfo; 7 | 8 | /** 9 | * Created by yanxuwen on 2017/9/30. 10 | */ 11 | 12 | public class OAuthID { 13 | public static String QQkey=""; 14 | public static String WXkey=""; 15 | public static String WX_secret=""; 16 | public static String SINAkey=""; 17 | public static String redirectUrl="";//新浪的回调地址 18 | public static final String SCOPE = 19 | "email,direct_messages_read,direct_messages_write," 20 | + "friendships_groups_read,friendships_groups_write,statuses_to_me_read," 21 | + "follow_app_official_microblog," + "invitation_write"; 22 | 23 | /** 24 | * 配置第三方登录 25 | * @param context 26 | * @param QQ QQkey 必传 27 | * @param WX 微信 key 必传 28 | * @param WX_secret 微信secret 可选,没有传的话,只能获取code,无法获取token跟用户信息 29 | * @param SINA 新浪key 必传 30 | * @param redirectUrl 必传 31 | */ 32 | public static void init(Context context,String QQ, String WX,String WX_secret, String SINA, String redirectUrl){ 33 | OAuthID.QQkey=QQ; 34 | OAuthID.WXkey=WX; 35 | OAuthID.WX_secret=WX_secret; 36 | OAuthID.SINAkey=SINA; 37 | OAuthID.redirectUrl=redirectUrl; 38 | WbSdk.install(context,new AuthInfo(context,OAuthID.SINAkey,redirectUrl,OAuthID.SCOPE)); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /share/OAuth/src/main/java/com/yanxuwen/OAuth/PlatformSina/SinaLogin.java: -------------------------------------------------------------------------------- 1 | package com.yanxuwen.OAuth.PlatformSina; 2 | 3 | /** 4 | * Created by yanxuwen on 2017/9/27. 5 | */ 6 | 7 | public class SinaLogin { 8 | /** 9 | * uid : xxx 10 | * access_token : 11 | * expires_in : 12 | * refresh_token : 13 | * phone_num : 14 | */ 15 | 16 | private String uid; 17 | private String access_token; 18 | private String expires_in; 19 | private String refresh_token; 20 | private String phone_num; 21 | 22 | public String getUid() { 23 | return uid; 24 | } 25 | 26 | public void setUid(String uid) { 27 | this.uid = uid; 28 | } 29 | 30 | public String getAccess_token() { 31 | return access_token; 32 | } 33 | 34 | public void setAccess_token(String access_token) { 35 | this.access_token = access_token; 36 | } 37 | 38 | public String getExpires_in() { 39 | return expires_in; 40 | } 41 | 42 | public void setExpires_in(String expires_in) { 43 | this.expires_in = expires_in; 44 | } 45 | 46 | public String getRefresh_token() { 47 | return refresh_token; 48 | } 49 | 50 | public void setRefresh_token(String refresh_token) { 51 | this.refresh_token = refresh_token; 52 | } 53 | 54 | public String getPhone_num() { 55 | return phone_num; 56 | } 57 | 58 | public void setPhone_num(String phone_num) { 59 | this.phone_num = phone_num; 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /share/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 |