Skip to content

Commit

Permalink
import release
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanganhtuan95ptit committed Dec 13, 2024
1 parent eb29572 commit 80310d5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 21 deletions.
27 changes: 13 additions & 14 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
}

apply from: "$rootDir/constant.gradle"
apply from: "../../1CorePrivate/config/phonetics/config.gradle"// can remove

android {
namespace "com.simple.phonetics"
Expand All @@ -16,30 +17,30 @@ android {
minSdkVersion project.ext.minSdkVersion
targetSdkVersion project.ext.targetSdkVersion

versionCode 1
versionName "1.0"
versionCode 2
versionName "1.2.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
useSupportLibrary true
}
}

// signingConfigs {
// keystore {
// keyAlias project.ext.keyAlias // can remove
// keyPassword project.ext.keyPassword // can remove
//
// storeFile file(project.ext.storeFile) // can remove
// storePassword project.ext.storePassword // can remove
// }
// }
signingConfigs {
keystore {
keyAlias project.ext.keyAlias // can remove
keyPassword project.ext.keyPassword // can remove

storeFile file(project.ext.storeFile) // can remove
storePassword project.ext.storePassword // can remove
}
}
buildTypes {
debug {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
release {
// signingConfig signingConfigs.keystore // can remove
signingConfig signingConfigs.keystore // can remove
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -77,11 +78,9 @@ dependencies {

implementation hoanganhtuan95Dependencies.analytics
implementation hoanganhtuan95Dependencies.analytics_log
// implementation hoanganhtuan95Dependencies.analytics_firebase

implementation hoanganhtuan95Dependencies.crashlytics
implementation hoanganhtuan95Dependencies.crashlytics_log
// implementation hoanganhtuan95Dependencies.crashlytics_firebase

implementation hoanganhtuan95Dependencies.detect
implementation hoanganhtuan95Dependencies.detect_mlkit
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/java/com/simple/phonetics/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class MainActivity : BaseViewModelActivity<ActivityMainBinding, MainViewModel>()

observeData()

lifecycleScope.launch {

delay(5 * 1000)
changeTheme(activity = this@MainActivity)
}
// lifecycleScope.launch {
//
// delay(5 * 1000)
// changeTheme(activity = this@MainActivity)
// }
}

private fun observeData() = with(viewModel) {
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/com/simple/phonetics/utils/AppTheme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ fun setupTheme(activity: Activity) {
colorOnBackgroundVariant = activity.getColorFromAttr(com.simple.coreapp.R.attr.colorOnBackgroundVariant),
)

Log.d("tuanha", "changeTheme: ${theme.toJson()}")

appTheme.tryEmit(theme)
}

Expand Down

0 comments on commit 80310d5

Please sign in to comment.