├── app ├── .gitignore ├── debug.keystore ├── src │ └── main │ │ ├── res │ │ ├── values │ │ │ ├── dimens.xml │ │ │ ├── colors.xml │ │ │ ├── styles.xml │ │ │ ├── arrays.xml │ │ │ └── strings.xml │ │ ├── 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 │ │ └── layout │ │ │ └── activity_main.xml │ │ ├── java │ │ ├── com │ │ │ └── tencent │ │ │ │ └── mm │ │ │ │ └── ui │ │ │ │ └── transmit │ │ │ │ └── MsgRetransmitUI.java │ │ └── ezy │ │ │ └── demo │ │ │ └── sdk3rd │ │ │ └── MainActivity.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── ezy.sdk3rd.3rd-alipay ├── .gitignore ├── libs │ └── alipaySdk-20180601.jar ├── proguard-rules.pro ├── build.gradle └── src │ └── main │ └── AndroidManifest.xml ├── ezy.sdk3rd.3rd-qq ├── .gitignore ├── libs │ └── open_sdk_r6008_lite.jar ├── README.md ├── proguard-rules.pro ├── build.gradle └── src │ └── main │ └── AndroidManifest.xml ├── ezy.sdk3rd.social ├── .gitignore ├── src │ └── main │ │ ├── java │ │ └── ezy │ │ │ └── sdk3rd │ │ │ └── social │ │ │ ├── payment │ │ │ ├── PaymentVia.java │ │ │ └── IPayable.java │ │ │ ├── sdk │ │ │ ├── OnSucceed.java │ │ │ ├── IDisposable.java │ │ │ ├── IResult.java │ │ │ ├── IFactory.java │ │ │ ├── ResultCode.java │ │ │ ├── OnCallback.java │ │ │ ├── Platform.java │ │ │ ├── DefaultFactory.java │ │ │ ├── DefaultCallback.java │ │ │ └── Sdk.java │ │ │ ├── authorize │ │ │ ├── AuthorizeVia.java │ │ │ └── IAuthorize.java │ │ │ ├── share │ │ │ ├── image │ │ │ │ ├── resource │ │ │ │ │ ├── ImageResource.java │ │ │ │ │ ├── BytesResource.java │ │ │ │ │ ├── UrlResource.java │ │ │ │ │ ├── BitmapResource.java │ │ │ │ │ ├── FileResource.java │ │ │ │ │ ├── DrawableResource.java │ │ │ │ │ └── ResIdResource.java │ │ │ │ └── ImageTool.java │ │ │ ├── IShareable.java │ │ │ ├── media │ │ │ │ ├── MoWeb.java │ │ │ │ ├── IMediaObject.java │ │ │ │ ├── MoEmoji.java │ │ │ │ ├── MoVideo.java │ │ │ │ ├── MoMusic.java │ │ │ │ └── MoImage.java │ │ │ ├── ShareTo.java │ │ │ └── ShareData.java │ │ │ ├── platforms │ │ │ ├── weixin │ │ │ │ ├── WXCallbackActivity.java │ │ │ │ ├── WXAuth.java │ │ │ │ ├── WXPayment.java │ │ │ │ ├── WXBase.java │ │ │ │ └── WXShare.java │ │ │ ├── alipay │ │ │ │ ├── Alipay.java │ │ │ │ └── Result.java │ │ │ ├── weibo │ │ │ │ ├── WBAuth.java │ │ │ │ └── WBShare.java │ │ │ ├── qq │ │ │ │ ├── QQAuth.java │ │ │ │ └── TXShare.java │ │ │ └── send │ │ │ │ └── SendShare.java │ │ │ ├── PaymentSDK.java │ │ │ ├── AuthorizeSDK.java │ │ │ ├── PlatformConfig.java │ │ │ └── ShareSDK.java │ │ └── AndroidManifest.xml ├── proguard-rules.pro └── build.gradle ├── screenshot.png ├── settings.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .idea ├── caches │ └── build_file_checksums.ser ├── vcs.xml ├── runConfigurations.xml ├── modules.xml ├── gradle.xml ├── misc.xml └── codeStyles │ └── Project.xml ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── gradlew ├── README.md └── LICENSE /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-alipay/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-qq/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/screenshot.png -------------------------------------------------------------------------------- /app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/app/debug.keystore -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':ezy.sdk3rd.social', ':ezy.sdk3rd.3rd-qq', ':ezy.sdk3rd.3rd-alipay' 2 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 16dp 3 | 4 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.idea/caches/build_file_checksums.ser: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/.idea/caches/build_file_checksums.ser -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-qq/libs/open_sdk_r6008_lite.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/ezy.sdk3rd.3rd-qq/libs/open_sdk_r6008_lite.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-alipay/libs/alipaySdk-20180601.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/czy1121/sdk3rd/HEAD/ezy.sdk3rd.3rd-alipay/libs/alipaySdk-20180601.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | local.properties 4 | app/gradle.properties 5 | .idea/workspace.xml 6 | .idea/libraries/ 7 | .idea/caches/ 8 | build/ 9 | .DS_Store 10 | */.DS_Store 11 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/payment/PaymentVia.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.payment; 2 | 3 | public class PaymentVia { 4 | public static final String Alipay = "alipay"; 5 | public static final String Wxpay = "wxpay"; 6 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/sdk/OnSucceed.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.sdk; 2 | 3 | /** 4 | * Created by ezy on 17/3/18. 5 | */ 6 | 7 | public interface OnSucceed { 8 | void onSucceed(T result); 9 | } 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/sdk/IDisposable.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.sdk; 2 | 3 | import android.content.Intent; 4 | 5 | /** 6 | * Created by ezy on 17/3/18. 7 | */ 8 | 9 | public interface IDisposable { 10 | void onDispose(); 11 | } 12 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Jan 31 14:03:23 CST 2018 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-4.6-all.zip 7 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/authorize/AuthorizeVia.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.authorize; 2 | 3 | public class AuthorizeVia { 4 | public static final String QQ = "qq"; 5 | public static final String Weibo = "weibo"; 6 | public static final String Weixin = "weixin"; 7 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/sdk/IResult.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.sdk; 2 | 3 | import android.content.Intent; 4 | 5 | /** 6 | * Created by ezy on 17/3/18. 7 | */ 8 | 9 | public interface IResult { 10 | void onResult(int requestCode, int resultCode, Intent data); 11 | } 12 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/image/resource/ImageResource.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.image.resource; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | public interface ImageResource { 6 | 7 | String toUri(); 8 | 9 | Bitmap toBitmap(); 10 | 11 | byte[] toBytes(); 12 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/sdk/IFactory.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.sdk; 2 | 3 | import android.app.Activity; 4 | 5 | /** 6 | * Created by ezy on 17/3/18. 7 | */ 8 | 9 | public interface IFactory { 10 | 11 | Platform getPlatform(); 12 | 13 | T create(Activity activity); 14 | } 15 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/authorize/IAuthorize.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.authorize; 2 | 3 | import ezy.sdk3rd.social.sdk.IResult; 4 | import ezy.sdk3rd.social.sdk.OnCallback; 5 | 6 | /** 7 | * Created by ezy on 17/3/18. 8 | */ 9 | 10 | public interface IAuthorize extends IResult { 11 | void authorize(OnCallback callback); 12 | } 13 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/payment/IPayable.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.payment; 2 | 3 | import ezy.sdk3rd.social.sdk.IResult; 4 | import ezy.sdk3rd.social.sdk.OnCallback; 5 | 6 | /** 7 | * Created by ezy on 17/3/18. 8 | */ 9 | 10 | public interface IPayable extends IResult { 11 | void pay(String data, OnCallback callback); 12 | } 13 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/IShareable.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share; 2 | 3 | import ezy.sdk3rd.social.sdk.IResult; 4 | import ezy.sdk3rd.social.sdk.OnCallback; 5 | 6 | /** 7 | * Created by ezy on 17/3/18. 8 | */ 9 | 10 | public interface IShareable extends IResult { 11 | void share(ShareData data, OnCallback callback); 12 | } 13 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/sdk/ResultCode.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.sdk; 2 | 3 | /** 4 | * Created by ezy on 17/3/18. 5 | */ 6 | 7 | public class ResultCode { 8 | public static final int RESULT_OK = 0; 9 | public static final int RESULT_PENDING = 1; 10 | public static final int RESULT_CANCELLED = 2; 11 | public static final int RESULT_FAILED = 3; 12 | 13 | } 14 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/media/MoWeb.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.media; 2 | 3 | import android.support.annotation.NonNull; 4 | 5 | public class MoWeb implements IMediaObject { 6 | 7 | public String url; 8 | 9 | public MoWeb(@NonNull String url) { 10 | this.url = url; 11 | } 12 | 13 | @Override 14 | public int type() { 15 | return TYPE_WEB; 16 | } 17 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/media/IMediaObject.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.media; 2 | 3 | public interface IMediaObject { 4 | int TYPE_INVALID = 0; 5 | int TYPE_TEXT = 1; 6 | int TYPE_IMAGE = 2; 7 | int TYPE_TEXT_IMAGE = 3; 8 | int TYPE_EMOJI = 4; 9 | int TYPE_MUSIC = 5; 10 | int TYPE_VIDEO = 6; 11 | int TYPE_WEB = 7; 12 | int TYPE_FILE = 8; 13 | 14 | int type(); 15 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/sdk/OnCallback.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.sdk; 2 | 3 | import android.app.Activity; 4 | 5 | /** 6 | * Created by ezy on 17/3/18. 7 | */ 8 | 9 | public interface OnCallback { 10 | void onStarted(Activity activity); 11 | void onCompleted(Activity activity); 12 | void onSucceed(Activity activity, T result); 13 | void onFailed(Activity activity, int code, String message); 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/java/com/tencent/mm/ui/transmit/MsgRetransmitUI.java: -------------------------------------------------------------------------------- 1 | package com.tencent.mm.ui.transmit; 2 | 3 | import android.os.Bundle; 4 | import android.support.v7.app.AppCompatActivity; 5 | import android.util.Log; 6 | 7 | public class MsgRetransmitUI extends AppCompatActivity { 8 | 9 | 10 | @Override 11 | protected void onCreate(Bundle savedInstanceState) { 12 | super.onCreate(savedInstanceState); 13 | 14 | Log.e("ezy", "" + getIntent()); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/ShareTo.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share; 2 | 3 | public class ShareTo { 4 | public static final String Weibo = "weibo"; 5 | 6 | public static final String QQ = "qq"; 7 | public static final String QZone = "qzone"; 8 | 9 | public static final String WXSession = "wxsession"; 10 | public static final String WXTimeline = "wxtimeline"; 11 | public static final String WXFavorite = "wxfavorite"; 12 | 13 | 14 | public static final String ToWXSession = "towxsession"; 15 | public static final String ToWXTimeline = "towxtimeline"; 16 | public static final String ToQQ = "toqq"; 17 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-qq/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ## manifest 5 | 6 | ``` xml 7 | 8 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | ``` 24 | 25 | 26 | ## proguard 27 | 28 | ``` 29 | ``` -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/image/resource/BytesResource.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.image.resource; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | import ezy.sdk3rd.social.share.image.ImageTool; 6 | 7 | public class BytesResource implements ImageResource { 8 | public final byte[] bytes; 9 | 10 | public BytesResource(byte[] bytes) { 11 | this.bytes = bytes; 12 | } 13 | 14 | @Override 15 | public String toUri() { 16 | return null; 17 | } 18 | 19 | @Override 20 | public Bitmap toBitmap() { 21 | return ImageTool.toBitmap(bytes); 22 | } 23 | 24 | @Override 25 | public byte[] toBytes() { 26 | return bytes; 27 | } 28 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/media/MoEmoji.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.media; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | import java.io.File; 6 | 7 | import ezy.sdk3rd.social.share.image.resource.ImageResource; 8 | 9 | public class MoEmoji extends MoImage { 10 | 11 | public MoEmoji(ImageResource source) { 12 | super(source); 13 | } 14 | 15 | public MoEmoji(File file) { 16 | super(file); 17 | } 18 | 19 | public MoEmoji(byte[] bytes) { 20 | super(bytes); 21 | } 22 | 23 | public MoEmoji(Bitmap bitmap) { 24 | super(bitmap); 25 | } 26 | 27 | @Override 28 | public int type() { 29 | return TYPE_EMOJI; 30 | } 31 | } -------------------------------------------------------------------------------- /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 /Volumes/data/cellar/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 | -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-qq/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 /Volumes/data/cellar/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 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/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 /Volumes/data/cellar/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 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/image/resource/UrlResource.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.image.resource; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | import ezy.sdk3rd.social.share.image.ImageTool; 6 | 7 | public class UrlResource implements ImageResource { 8 | public final String url; 9 | 10 | public UrlResource(String url) { 11 | this.url = url; 12 | } 13 | 14 | @Override 15 | public String toUri() { 16 | return url; 17 | } 18 | 19 | @Override 20 | public Bitmap toBitmap() { 21 | return ImageTool.toBitmap(ImageTool.loadNetImage(url)); 22 | } 23 | 24 | @Override 25 | public byte[] toBytes() { 26 | return ImageTool.loadNetImage(url); 27 | } 28 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-alipay/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 /Volumes/data/cellar/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 | -------------------------------------------------------------------------------- /ezy.sdk3rd.social/src/main/java/ezy/sdk3rd/social/share/image/resource/BitmapResource.java: -------------------------------------------------------------------------------- 1 | package ezy.sdk3rd.social.share.image.resource; 2 | 3 | import android.graphics.Bitmap; 4 | 5 | import ezy.sdk3rd.social.share.image.ImageTool; 6 | 7 | public class BitmapResource implements ImageResource { 8 | public final Bitmap bitmap; 9 | 10 | public BitmapResource(Bitmap bitmap) { 11 | this.bitmap = bitmap; 12 | } 13 | 14 | @Override 15 | public String toUri() { 16 | return null; 17 | } 18 | 19 | @Override 20 | public Bitmap toBitmap() { 21 | return bitmap; 22 | } 23 | 24 | @Override 25 | public byte[] toBytes() { 26 | return ImageTool.toBytes(bitmap, Bitmap.CompressFormat.JPEG); 27 | } 28 | } -------------------------------------------------------------------------------- /ezy.sdk3rd.3rd-qq/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id "com.github.dcendents.android-maven" version "2.0" 3 | } 4 | apply plugin: 'com.android.library' 5 | 6 | group=SDK3RD_GROUP 7 | version=SDK3RD_VERSION 8 | archivesBaseName='sdk3rd-qq' 9 | 10 | 11 | 12 | 13 | android { 14 | compileSdkVersion compile_sdk_version 15 | 16 | defaultConfig { 17 | minSdkVersion min_sdk_version 18 | targetSdkVersion target_sdk_version 19 | } 20 | buildTypes { 21 | release { 22 | minifyEnabled false 23 | } 24 | } 25 | } 26 | 27 | afterEvaluate { 28 | tasks.each { 29 | if (it.name.contains("Test")) { 30 | it.enabled = false 31 | } 32 | } 33 | } 34 | 35 | dependencies { 36 | api fileTree(dir: 'libs', include: ['*.jar']) 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |