Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
haizerdev committed Oct 2, 2021
1 parent 377f466 commit 5985991
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 35 deletions.
38 changes: 19 additions & 19 deletions anzid_gradle/shared_gradle_configuration_for_adroid_lib.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ android {
targetSdkVersion(30)
}

buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
}
}

flavorDimensions "default"
productFlavors {
dev {

}
prod {

}

}
// buildTypes {
// debug {
// minifyEnabled false
// }
// release {
// minifyEnabled false
// }
// }
//
// flavorDimensions "default"
// productFlavors {
// dev {
//
// }
// prod {
//
// }
//
// }
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class AppSignatureSmsVerificationHelper(context: Context) {
}

fun loggedAppSignature() {
Log.v(TAG, "app signature hash for type-${BuildConfig.BUILD_TYPE} and flavor-${BuildConfig.FLAVOR} : $appSignature")
Log.v(TAG, "app signature hash for type-${BuildConfig.BUILD_TYPE} : $appSignature")
}

/**
Expand Down
6 changes: 0 additions & 6 deletions utils/src/main/java/com/anzid/utils/logs/AnzidLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ public static void wtf(Throwable t) {
}

public static void v(String message, Throwable t) {
if(BuildUtilKt.isPlayBuild()) return;
if (loggers != null) {
for (Logger logger : loggers) {
logger.v(message, t);
Expand All @@ -69,7 +68,6 @@ public static void v(String message, Throwable t) {
}

public static void d(String message, Throwable t) {
if(BuildUtilKt.isPlayBuild()) return;
if (loggers != null) {
for (Logger logger : loggers) {
logger.d(message, t);
Expand All @@ -78,7 +76,6 @@ public static void d(String message, Throwable t) {
}

public static void i(String message, Throwable t) {
if(BuildUtilKt.isPlayBuild()) return;
if (loggers != null) {
for (Logger logger : loggers) {
logger.i(message, t);
Expand All @@ -87,7 +84,6 @@ public static void i(String message, Throwable t) {
}

public static void w(String message, Throwable t) {
if(BuildUtilKt.isPlayBuild()) return;
if (loggers != null) {
for (Logger logger : loggers) {
logger.w(message, t);
Expand All @@ -96,7 +92,6 @@ public static void w(String message, Throwable t) {
}

public static void e(String message, Throwable t) {
if(BuildUtilKt.isPlayBuild()) return;
if (loggers != null) {
for (Logger logger : loggers) {
logger.e(message, t);
Expand All @@ -105,7 +100,6 @@ public static void e(String message, Throwable t) {
}

public static void wtf(String message, Throwable t) {
if(BuildUtilKt.isPlayBuild()) return;
if (loggers != null) {
for (Logger logger : loggers) {
logger.wtf(message, t);
Expand Down
10 changes: 1 addition & 9 deletions utils/src/main/java/com/anzid/utils/utils/BuildUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@ package com.anzid.utils.utils
import com.anzid.utils.BuildConfig
import com.anzid.utils.Constants

fun isInternalBuild() = BuildConfig.FLAVOR == Constants.FLAVOR_INTERNAL

fun isPlayBuild() = BuildConfig.FLAVOR == Constants.FLAVOR_PLAY

fun isReleaseBuildType() = BuildConfig.BUILD_TYPE == Constants.BUILD_TYPE_RELEASE

fun isDebugBuildType() = BuildConfig.BUILD_TYPE == Constants.BUILD_TYPE_DEBUG

fun isInternalRelease() = isInternalBuild() && isReleaseBuildType()

fun isPlayRelease() = isPlayBuild() && isReleaseBuildType()
fun isDebugBuildType() = BuildConfig.BUILD_TYPE == Constants.BUILD_TYPE_DEBUG

0 comments on commit 5985991

Please sign in to comment.