This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import android.graphics.BlurMaskFilter | |
import android.util.AttributeSet | |
import com.google.android.material.textview.MaterialTextView | |
import com.gooo_group.gooo.R | |
class BlurTextView(context: Context, attrs: AttributeSet) : MaterialTextView(context, attrs) { | |
init { | |
val typedArray = context.theme.obtainStyledAttributes( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### https://medium.com/proandroiddev/how-we-reduced-our-gradle-build-times-by-over-80-51f2b6d6b05b | |
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC | |
android.useAndroidX=true | |
android.enableJetifier=true | |
kotlin.code.style=official | |
kotlin.incremental=true | |
org.gradle.vfs.watch=true | |
org.gradle.configureondemand=true | |
org.gradle.parallel=true | |
org.gradle.caching=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':jacocoFullReport'. | |
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$3(ExecuteActionsTaskExecuter.java:186) | |
Caused by: : Error while creating report | |
at org.jacoco.ant.ReportTask.execute(ReportTask.java:502) | |
Caused by: java.io.IOException: Error while analyzing PersonalRequestHelper.class. | |
at org.jacoco.core.analysis.Analyzer.analyzerError(Analyzer.java:162) | |
Caused by: java.lang.IllegalStateException: Unexpected SMAP line: *S KotlinDebug | |
at org.jacoco.core.internal.analysis.filter.KotlinInlineFilter.getFirstGeneratedLineNumber(KotlinInlineFilter.java:98) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun getBuildNumber(): String { | |
val buildNumber = System.getenv()["BUILD_NUMBER"] | |
return buildNumber ?: "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.androidinappreviews | |
import android.os.Bundle | |
import android.util.Log | |
import androidx.appcompat.app.AppCompatActivity | |
import com.example.androidinappreviews.databinding.ActivityMainBinding | |
import com.google.android.play.core.review.ReviewManagerFactory | |
class MainActivity : AppCompatActivity() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git update-index --chmod=+x gradlew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Android App or Android Lib Module | |
plugins { | |
id(GradlePlugins.androidLib) | |
id(GradlePlugins.kotlinAndroid) | |
} | |
android { | |
kotlinOptions { | |
jvmTarget = "1.8" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.filipkowicz.headeritemdecorator | |
/* | |
solution based on - based on Sevastyan answer on StackOverflow | |
changes: | |
- take to account views offsets | |
- transformed to Kotlin | |
- now works on viewHolders |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.android.build.gradle.api.ApplicationVariant | |
import com.android.build.gradle.api.BaseVariantOutput | |
import com.android.build.gradle.internal.api.BaseVariantOutputImpl | |
android { | |
//... | |
applicationVariants.all(ApplicationVariantAction()) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'jacoco' | |
// Filter out modules | |
def jacocoCoveredProject = subprojects.findAll { project -> | |
project.name == "app" || project.name == "data" || project.name == "domain" | |
} | |
def coveredProject = subprojects | |
println("All subprojects:") | |
println(subprojects.name) |
NewerOlder