Skip to content

Commit

Permalink
Merge pull request #322 from RedrockMobile/GuoXR/bugfix
Browse files Browse the repository at this point in the history
🩹 去掉快照包
  • Loading branch information
985892345 authored Nov 14, 2022
2 parents 5346fb5 + f2dfdaf commit 954d860
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 31 deletions.
1 change: 1 addition & 0 deletions hooks/commit-msg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ declare -A commitMap=(
["technologist"]="改善开发人员体验"
["money_with_wings"]="添加赞助或与资金相关的基础设施"
["thread"]="添加或更新与多线程或并发相关的代码"
["safety_vest"]="添加或更新与验证相关的代码"
)

result=$(echo "$commitMsg" | grep ":[a-z0-9_]\+: .\+")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ open class BaseApp : Application(), InitialManager {
//因为有些sdk的初始化不是幂等的,即多次初始化会导致进程的crash。这样就会导致一些未知的问题。
//所以解决方案就是对当前进程进程判断,只在main进程初始化sdk,其余进程默认不进行sdk的初始化。
// (不排除某些sdk需要,比如友盟推送就需要在新开辟的:channel进行进行初始化)
loader.forEach { it.onAllProcess(this) }
if (isMainProcess()){
onMainProcess()
}else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ package com.mredrock.cyxbs.lib.base.spi
* @signature 我将追寻并获取我想要的答案
*/
interface InitialService {
// 所有进程的回调
fun onAllProcess(manager: InitialManager) {}
//处于主进程的调用(可以进行与隐私策略无关的sdk的初始化,因为app启动就会回调)
fun onMainProcess(manager: InitialManager) {}
//隐私策略同意的时候的回调
Expand Down
8 changes: 2 additions & 6 deletions module_course/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,8 @@ dependRxjava()
dependNetwork()
dependCoroutinesRx3()

configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}

dependencies {
// 20 级郭祥瑞封装的 Banner 库
implementation("io.github.985892345:SlideShow:2.0.0-SNAPSHOT")
// 20 级郭祥瑞封装的 Banner 库,如果有问题,欢迎来联系 👀
implementation("io.github.985892345:SlideShow:2.0.0")
}

7 changes: 2 additions & 5 deletions module_course/lib_course/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,12 @@ dependApiCourse()
dependNetwork()
dependRxjava()

configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}

dependencies {
implementation(Android.`core-ktx`)
implementation(Android.constraintlayout)
implementation(Android.viewpager2)
implementation(Android.`fragment-ktx`)
implementation(Android.cardview)
api("io.github.985892345:NetLayout:1.0.0-SNAPSHOT")
// 20 级郭祥瑞封装的课表底层控件,如果有问题,欢迎来联系 👀
api("io.github.985892345:NetLayout:1.0.0")
}
9 changes: 2 additions & 7 deletions module_dialog/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import com.mredrock.cyxbs.convention.depend.api.dependApiAccount
import com.mredrock.cyxbs.convention.depend.api.dependApiDialog
import com.mredrock.cyxbs.convention.depend.dependEventBus
import com.mredrock.cyxbs.convention.depend.dependMaterialDialog
import com.mredrock.cyxbs.convention.depend.dependPhotoView
import com.mredrock.cyxbs.convention.depend.dependRxjava
Expand All @@ -21,16 +20,12 @@ dependLibBase()
dependLibUtils()
dependLibConfig()

configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}

dependencies {
// rhino j2js引擎
// 因为最新的rhino 1.7.14 使用了javax.lang.model.SourceVersion,故不支持安卓
// 他们似乎已经修复了这个问题,但还没有发release
// https://github.com/mozilla/rhino/issues/1149org.o
implementation("org.mozilla:rhino:1.7.11")
// 20 级郭祥瑞封装的 Banner 库
implementation("io.github.985892345:SlideShow:2.0.0-SNAPSHOT")
// 20 级郭祥瑞封装的 Banner 库,如果有问题,欢迎来联系 👀
implementation("io.github.985892345:SlideShow:2.0.0")
}
8 changes: 2 additions & 6 deletions module_discover/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ dependEventBus()
dependLibUtils()
dependLibCommon() // TODO common 模块不再使用,新模块请依赖 base 和 utils 模块

configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}

dependencies {
// 20 级郭祥瑞封装的 Banner 库
implementation("io.github.985892345:SlideShow:2.0.0-SNAPSHOT")
// 20 级郭祥瑞封装的 Banner 库,如果有问题,欢迎来联系 👀
implementation("io.github.985892345:SlideShow:2.0.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="255dp"
android:layout_height="215dp"
android:layout_height="144dp"
android:background="@drawable/mine_shape_dialog_back"
android:orientation="vertical">

Expand Down Expand Up @@ -38,6 +38,7 @@
android:layout_height="1dp"
android:background="@color/common_default_divide_line_color" />

<!--这个暂时隐藏,因为掌邮没有拿到 ids 许可-->
<TextView
android:id="@+id/mine_tv_dialog_choose_type_ids"
android:layout_width="match_parent"
Expand All @@ -47,6 +48,7 @@
android:text="教务在线找回"
android:textColor="@color/common_level_two_font_color"
android:textSize="18sp"
android:visibility="gone"
tools:ignore="HardcodedText" />

</LinearLayout>
8 changes: 2 additions & 6 deletions module_store/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ dependLibBase()
dependLibUtils()
dependLibConfig()

configurations.all {
resolutionStrategy.cacheChangingModulesFor(0, TimeUnit.SECONDS)
}

dependencies {
// 20 级郭祥瑞封装的 Banner 库
implementation("io.github.985892345:SlideShow:2.0.0-SNAPSHOT")
// 20 级郭祥瑞封装的 Banner 库,如果有问题,欢迎来联系 👀
implementation("io.github.985892345:SlideShow:2.0.0")
}

0 comments on commit 954d860

Please sign in to comment.