TP-26487 | release build support (#36)
* TP-25794 | mock changes * TP-25794 | pair fix for release builds * TP-25794 | proguard changes * TP-25794 | revert manifest and mock changes * TP-25794 | revert gradle changes * TP-25794 | remove unused imports
This commit is contained in:
committed by
GitHub Enterprise
parent
798bebd21e
commit
26edc2a6c2
2
.github/workflows/publish_aar.yml
vendored
2
.github/workflows/publish_aar.yml
vendored
@@ -26,6 +26,6 @@ jobs:
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- name: Assemble with Stacktrace
|
||||
run: ./gradlew :navi-uitron:assembleDebug --stacktrace
|
||||
run: ./gradlew :navi-uitron:assembleRelease --stacktrace
|
||||
- name: Upload to nexus
|
||||
run: ./gradlew publish -PIS_SNAPSHOT=true -PNEXUS_URL=https://nexus.cmd.navi-tech.in/repository/maven-snapshots -PNEXUS_USERNAME=${{ secrets.NEXUS_USERNAME }} -PNEXUS_PASSWORD=${{ secrets.NEXUS_PASSWORD }}
|
||||
@@ -22,7 +22,9 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
debuggable false
|
||||
minifyEnabled true
|
||||
shrinkResources true
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
|
||||
25
app/proguard-rules.pro
vendored
25
app/proguard-rules.pro
vendored
@@ -11,11 +11,24 @@
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
-keep class **.models.** { *; }
|
||||
-keep class **.model.** { *; }
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
-keepnames class * implements android.os.Parcelable {
|
||||
public static final ** CREATOR;
|
||||
}
|
||||
-keepclassmembers class * implements android.os.Parcelable {
|
||||
public static final android.os.Parcelable$Creator *;
|
||||
}
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
#enums
|
||||
-keepclassmembers class * extends java.lang.Enum {
|
||||
<fields>;
|
||||
public static **[] values();
|
||||
public static ** valueOf(java.lang.String);
|
||||
}
|
||||
|
||||
#Gson specific classes
|
||||
-keep class com.google.gson.stream.** { *; }
|
||||
-keep class com.google.gson.FieldNamingStrategy { *; }
|
||||
-keep class com.google.gson.Gson.** { *; }
|
||||
File diff suppressed because it is too large
Load Diff
@@ -94,11 +94,17 @@ data class UiTronInteraction(
|
||||
@Parcelize
|
||||
data class BrushData(
|
||||
val brushType: String? = null,
|
||||
val colorStops: List<Pair<Float, String>>? = null,
|
||||
val colorStops: List<ColorStop>? = null,
|
||||
val tileMode: String? = null,
|
||||
val offSetData: OffSetData? = null
|
||||
) : Parcelable
|
||||
|
||||
@Parcelize
|
||||
data class ColorStop(
|
||||
val first: Float,
|
||||
val second: String,
|
||||
): Parcelable
|
||||
|
||||
@Parcelize
|
||||
data class OffSetData(
|
||||
val x: Float? = null,
|
||||
|
||||
@@ -160,14 +160,14 @@ class PagerRenderer(
|
||||
}
|
||||
}
|
||||
}
|
||||
if (property.scrollDelay.orZero() > 0) {
|
||||
LaunchedEffect(key1 = pagerState.currentPage) {
|
||||
launch {
|
||||
snapshotFlow { pagerState.currentPage }.collect { page ->
|
||||
uiTronViewModel.handleActions(pagerData?.pageChangeActions?.get(page))
|
||||
}
|
||||
LaunchedEffect(key1 = pagerState.currentPage) {
|
||||
launch {
|
||||
snapshotFlow { pagerState.currentPage }.collect { page ->
|
||||
uiTronViewModel.handleActions(pagerData?.pageChangeActions?.get(page))
|
||||
}
|
||||
launch {
|
||||
}
|
||||
launch {
|
||||
if (property.scrollDelay.orZero() > 0) {
|
||||
delay(property.scrollDelay.orZero())
|
||||
with(pagerState) {
|
||||
val target = if (currentPage < pageCount - 1) currentPage + 1 else 0
|
||||
|
||||
Reference in New Issue
Block a user