Skip to content

Commit

Permalink
Merge pull request #19 from WatchMan-Wang/shouwang351
Browse files Browse the repository at this point in the history
Shouwang351
  • Loading branch information
hexinghuaxd authored Dec 29, 2021
2 parents 493bbc8 + 99356e9 commit 24b49ac
Show file tree
Hide file tree
Showing 28 changed files with 1,359 additions and 286 deletions.
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,56 @@
# Changelog

## v3.5.1 Latest 2021/12/08
### TapAchievement
#### Optimization and fixed bugs
- 修复读取服务器数据时已达成字段无法解析的问题
### AntiAddiction
#### Optimization and fixe bugs
- 防沉迷服务端异常时增加兼容处理
- 切换账号可隐藏
- 更新切换账号的回调 code (1000 -> 1001)

## v3.5.0 2021/11/30
### TapRTC
####New Feature
- 新增 RTC(实时语音) 模块
- TapFriends
- Optimization and fixed bugs
- 根据好友码查找好友
- 根据好友码添加好友
- 查询第三方好友列表
- 关注 TapTap 好友
### TapAchievement
#### Optimization and fixed bugs
- 修复读取本地数据已达成成就识别成未达成的问题
### TapLogin
#### Optimization and fixed bugs
- 内嵌 web 登录页面支持异形刘海屏的正常展示
### TapDB
#### Optimization and fixed bugs
- 上报新增 soc 相关参数
### TapMoment
#### Optimization and fixed bugs
- 依赖更新
### TapCommon
#### Optimization and fixed bugs
- 支持性更新

## v3.3.2 2021/11/11
### TapDB
#### Optimization and fixed bugs
- 更新一些内部字段
### AntiAddiction
#### Optimization and fixed bugs
- Api 增加公用参数

## v3.3.1 2021/10/25
### TapFriends
#### New Feature
- 好友新增多语言支持
#### Optimization and fixed bugs
- 从分享页跳转到应用内且发送好友申请时,从提示改为回调。

## TapSDK v3.0.0 2021/07/16
Tips: 当前版本不支持 v2.x 升级
### TapBootstrap
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
## TapSDK - 3.1.0 For Android Demo;
## TapSDK - 3.5.1 For Android Demo;

## 运行示例程序

该示例程序成功运行打包体验的前提条件

1、已经在Tap开发者中心注册应用并获取登陆、内嵌动态等相关权限;将得到的「Client ID」和「Client Token」以及「Server URL」填入 MainActivity 中 TapSDK 初始化所需的参数;
如果你使用的不是「内建账户」方式登陆,而是采用的 TapTap 单独授权方式,则不需要配置 ServerUrl 自定义域名参数;

2、配置自己的签名信息,签名打包测试;

3、可以下载项目中的 apk-release.apk 先体验;(好友功能不便测试,因为好友申请需要好友登陆后的 userID,而我们无法提前得知体验者登陆后的userID,可以将 Demo 工程下载后更改里面的参数测试好友功能)

2、配置自己的签名信息,签名打包测试;
Binary file removed app-release.apk
Binary file not shown.
Binary file removed app/.DS_Store
Binary file not shown.
35 changes: 25 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.3"



defaultConfig {
applicationId "com.tds.demo"
minSdkVersion 21
Expand All @@ -16,11 +18,22 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

multiDexEnabled true

// ndk{
// abiFilters "arm64-v8a, x86_64"
// }

// ndk.abiFilters("arm64-v8a, x86_64")
}


buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand All @@ -44,14 +57,16 @@ dependencies {
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.flexbox:flexbox:3.0.0'
implementation name: 'TapBootStrap_3.1.0', ext: 'aar' // 必选: x.x.x 代表所下载的 SDK的版本号
implementation(name: 'TapCommon_3.1.0', ext: 'aar')
implementation(name: 'TapMoment_3.1.0', ext: 'aar')
implementation(name: 'TapLogin_3.1.0', ext: 'aar')
implementation(name: 'TapLicense_3.1.0', ext: 'aar')
implementation(name: 'TapAchievement_3.1.0', ext: 'aar')
implementation(name: 'TapDB_3.1.0', ext: 'aar')
implementation 'cn.leancloud:realtime-android:8.0.4'
implementation 'cn.leancloud:storage-android:8.0.4'
implementation name: 'TapBootStrap_3.5.1', ext: 'aar' // 必选: x.x.x 代表所下载的 SDK的版本号
implementation(name: 'TapCommon_3.5.1', ext: 'aar')
implementation(name: 'TapMoment_3.5.1', ext: 'aar')
implementation(name: 'TapLogin_3.5.1', ext: 'aar')
implementation(name: 'TapLicense_3.5.1', ext: 'aar')
implementation(name: 'TapAchievement_3.5.1', ext: 'aar')
implementation(name: 'TapDB_3.5.1', ext: 'aar')
implementation(name: 'AntiAddiction_1.0.2', ext: 'aar')
implementation(name: 'AntiAddictionUI_1.0.2', ext: 'aar')
implementation 'cn.leancloud:realtime-android:8.1.0'
implementation 'cn.leancloud:storage-android:8.1.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
}
Binary file added app/libs/AntiAddictionUI_1.0.2.aar
Binary file not shown.
Binary file added app/libs/AntiAddiction_1.0.2.aar
Binary file not shown.
Binary file removed app/libs/TapAchievement_3.1.0.aar
Binary file not shown.
Binary file added app/libs/TapAchievement_3.5.1.aar
Binary file not shown.
Binary file removed app/libs/TapBootstrap_3.1.0.aar
Binary file not shown.
Binary file added app/libs/TapBootstrap_3.5.1.aar
Binary file not shown.
Binary file removed app/libs/TapCommon_3.1.0.aar
Binary file not shown.
Binary file added app/libs/TapCommon_3.5.1.aar
Binary file not shown.
Binary file removed app/libs/TapDB_3.1.0.aar
Binary file not shown.
Binary file added app/libs/TapDB_3.5.1.aar
Binary file not shown.
Binary file added app/libs/TapFriend_3.5.1.aar
Binary file not shown.
Binary file removed app/libs/TapLicense_3.1.0.aar
Binary file not shown.
Binary file added app/libs/TapLicense_3.5.1.aar
Binary file not shown.
Binary file removed app/libs/TapLogin_3.1.0.aar
Binary file not shown.
Binary file added app/libs/TapLogin_3.5.1.aar
Binary file not shown.
Binary file not shown.
Binary file added app/libs/TapSupport_3.5.1.aar
Binary file not shown.
Binary file added app/libs/gson-2.8.6.jar
Binary file not shown.
37 changes: 36 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,39 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
-keep class com.tds.** { *;}
-keep class tds.androidx.** { *;}
-keep class com.taptap.** { *;}
-keep class com.tapsdk.** { *;}
#-keep class cn.leancloud.** { *;}
# proguard.cfg
-keepattributes Signature
-dontwarn com.jcraft.jzlib.**
-keep class com.jcraft.jzlib.** { *;}
-dontwarn sun.misc.**
-keep class sun.misc.** { *;}
-dontwarn retrofit2.**
-keep class retrofit2.** { *;}
-dontwarn io.reactivex.**
-keep class io.reactivex.** { *;}
-dontwarn sun.security.**
-keep class sun.security.** { *; }
-dontwarn com.google.**
-keep class com.google.** { *;}
-dontwarn cn.leancloud.**
-keep class cn.leancloud.** { *;}
-keep public class android.net.http.SslError
-keep public class android.webkit.WebViewClient
-dontwarn android.webkit.WebView
-dontwarn android.net.http.SslError
-dontwarn android.webkit.WebViewClient
-dontwarn android.support.**
-dontwarn org.apache.**
-keep class org.apache.** { *;}
-dontwarn okhttp3.**
-keep class okhttp3.** { *;}
-keep interface okhttp3.** { *; }
-dontwarn okio.**
-keep class okio.** { *;}
-keepattributes *Annotation*
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
package="com.example.tapsdk_android_demo">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
android:allowBackup="true"
Expand Down
Loading

0 comments on commit 24b49ac

Please sign in to comment.