Skip to content

Commit

Permalink
[document]添加about_secret.gradle.md文档;更新部分依赖版本
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyD666 committed Oct 20, 2021
1 parent 18ce8f1 commit 8b1a7b8
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import android.widget.*
import androidx.core.view.children
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector
import com.shuyu.gsyvideoplayer.utils.CommonUtil
import com.shuyu.gsyvideoplayer.utils.Debuger
import com.shuyu.gsyvideoplayer.utils.GSYVideoType
Expand Down Expand Up @@ -141,6 +140,9 @@ open class AnimeVideoPlayer : StandardGSYVideoPlayer {
// 控件没有显示
private var mUiCleared: Boolean = true

// 显示系统时间
private var mSystemTimeTextView: TextView? = null

constructor(context: Context) : super(context)

constructor(context: Context, fullFlag: Boolean?) : super(context, fullFlag)
Expand Down Expand Up @@ -175,6 +177,7 @@ open class AnimeVideoPlayer : StandardGSYVideoPlayer {
mRestoreScreenTextView = findViewById(R.id.tv_restore_screen)
mTouchDownHighSpeedTextView = findViewById(R.id.tv_touch_down_high_speed)
mBiggerSurface = findViewById(R.id.bigger_surface)
mSystemTimeTextView = findViewById(R.id.tv_system_time)

mRightContainer?.gone()
mSettingContainer?.gone()
Expand Down
15 changes: 14 additions & 1 deletion app/src/main/res/layout/layout_anime_video_player_land.xml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,18 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<com.skyd.imomoe.view.component.textview.TypefaceTextView
android:id="@+id/tv_system_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:textColor="@color/foreground_white_skin"
android:textSize="16sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/iv_setting"
app:layout_constraintTop_toTopOf="parent"
tools:text="17:00" />
</androidx.constraintlayout.widget.ConstraintLayout>

<TextView
Expand Down Expand Up @@ -357,7 +369,8 @@
android:layout_alignParentEnd="true"
android:background="@color/gray_2"
android:clickable="true"
android:focusable="true">
android:focusable="true"
tools:visibility="gone">

<LinearLayout
android:layout_width="wrap_content"
Expand Down
44 changes: 44 additions & 0 deletions doc/about_secret.gradle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# 关于secret.gradle文件

- #### 为什么没有上传此文件到Github?

此文件包括了一些敏感信息,例如安装包签名密码、各种密钥等,因此没有上传到Github上。

- #### 编译时提示缺少此文件怎么办?

你可以尝试将用到此文件内容的代码全部注释。

- #### 此文件的内容结构是怎样的?

```groovy
def secret = [:]
// ===== in Code =====
def buildConfigField = [:]
buildConfigField.UMENG_MESSAGE_SECRET = "..."
secret.buildConfigField = buildConfigField
def shieldTextList = [:]
shieldTextList.SHIELD_TEXT = '{..., ..., ...}'
secret.shieldTextList = shieldTextList
// ===== in Code end =====
// ===== sign key =====
def sign = [:]
sign.RELEASE_KEY_ALIAS = "..."
sign.RELEASE_KEY_PASSWORD = "..."
sign.RELEASE_STORE_PASSWORD = "..."
secret.sign = sign
// ===== sign key end =====
// ===== in Manifest =====
def manifestPlaceholders = [:]
manifestPlaceholders.UMENG_APPKEY_VALUE = "..."
secret.manifestPlaceholders = manifestPlaceholders
// ===== in Manifest end =====
ext.secret = secret
```



4 changes: 2 additions & 2 deletions version.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ jsoup.jsoup = "org.jsoup:jsoup:1.13.1"
deps.jsoup = jsoup

def shuyu = [:]
shuyu.GSYVideoPlayer = "com.shuyu:GSYVideoPlayer:8.1.0"
shuyu.GSYVideoPlayer = "com.github.CarGuo.GSYVideoPlayer:GSYVideoPlayer:v8.1.6-jitpack"
deps.shuyu = shuyu

def getActivity = [:]
getActivity.XXPermissions = "com.github.getActivity:XXPermissions:11.6"
getActivity.XXPermissions = "com.github.getActivity:XXPermissions:12.5"
deps.getActivity = getActivity

def filedownloader = [:]
Expand Down

0 comments on commit 8b1a7b8

Please sign in to comment.