This file contains hidden or 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
# zap-api-scan rule configuration file | |
# Change WARN to IGNORE to ignore rule or FAIL to fail if rule matches | |
# Active scan rules set to IGNORE will not be run which will speed up the scan | |
# Only the rule identifiers are used - the names are just for info | |
# You can add your own messages to each rule by appending them after a tab on each line. | |
0 WARN (Directory Browsing - Active/release) | |
10010 WARN (Cookie No HttpOnly Flag - Passive/release) | |
10011 WARN (Cookie Without Secure Flag - Passive/release) | |
10012 WARN (Password Autocomplete in Browser - Passive/release) | |
10015 WARN (Incomplete or No Cache-control and Pragma HTTP Header Set - Passive/release) |
This file contains hidden or 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
<?php | |
$morse_code = [ | |
#LETRAS | |
"a" => ".-", | |
"b" => "-...", | |
"c" => "-.-.", | |
"d" => "-..", | |
"e" => ".", |
This file contains hidden or 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 Context.doInstallation(packageName: String) { | |
try { | |
//LOG | |
Timber.d(getString(R.string.INTENT_GOOGLEPLAY)) | |
//Intenta abrir google play | |
startActivity(Intent(Intent.ACTION_VIEW).apply { | |
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) |
This file contains hidden or 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
//VERSION GROOVY | |
implementation fileTree(include: ['*.jar'], dir: 'libs') | |
implementation "androidx.core:core-ktx:1.8.0" | |
//VERSION DSL | |
implementation(fileTree("libs") { include(listOf("*.jar")) }) | |
implementation("androidx.core:core-ktx:1.8.0") |
This file contains hidden or 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
//VERSION GROOVY | |
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-kapt' | |
apply plugin: 'com.google.gms.google-services' | |
//VERSION DSL | |
plugins { | |
id("com.android.application") | |
id("kotlin-android") |
This file contains hidden or 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
//VERSION GROOVY | |
buildTypes { | |
release { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
signingConfig signingConfigs.mysign | |
} | |
debug {} |
This file contains hidden or 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
//Version GROOVY | |
defaultConfig { | |
applicationId "com.myapp" | |
minSdkVersion 23 | |
targetSdkVersion 31 | |
versionCode 32 | |
versionName "1.0" | |
} | |
//VERSION DSL |
This file contains hidden or 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
//VERSION GROOVY | |
dependencies { | |
classpath "com.android.tools.build:gradle:7.2.1" | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21" | |
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0" | |
} | |
//VERSION DSL | |
dependencies { | |
classpath("com.android.tools.build:gradle:7.2.1") |
This file contains hidden or 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
//VERSION GROOVY | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} | |
//VERSION DSL | |
tasks.register("clean", Delete::class) { | |
delete(rootProject.buildDir) | |
} |
This file contains hidden or 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
include(":app") | |
rootProject.name = "Kotlin DSL" |
OlderNewer