Skip to content

Commit d567c57

Browse files
committed
style(lint): delint gradle files
1 parent 48624ba commit d567c57

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

tests/android/app/build.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'com.google.gms.google-services'
33
apply plugin: 'com.google.firebase.crashlytics'
4-
apply plugin: "com.google.firebase.firebase-perf"
4+
apply plugin: 'com.google.firebase.firebase-perf'
55

66
import com.android.build.OutputFile
77

@@ -10,7 +10,7 @@ project.ext.react = [
1010
]
1111

1212
// up to mono root
13-
apply from: "../../node_modules/react-native/react.gradle"
13+
apply from: '../../node_modules/react-native/react.gradle'
1414

1515
/**
1616
* The preferred build flavor of JavaScriptCore.
@@ -41,14 +41,14 @@ android {
4141
compileSdkVersion rootProject.ext.compileSdkVersion
4242
aaptOptions {
4343
// https://firebase.google.com/docs/ml/android/use-custom-models#local_model
44-
noCompress "tflite"
44+
noCompress 'tflite'
4545
}
4646
defaultConfig {
47-
applicationId "com.invertase.testing"
47+
applicationId 'com.invertase.testing'
4848
minSdkVersion rootProject.ext.minSdkVersion
4949
targetSdkVersion rootProject.ext.targetSdkVersion
5050
versionCode 1
51-
versionName "1.0"
51+
versionName '1.0'
5252

5353
// detox
5454
testBuildType System.getProperty('testBuildType', 'debug')
@@ -60,16 +60,16 @@ android {
6060
reset()
6161
enable enableSeparateBuildPerCPUArchitecture
6262
universalApk false // If true, also generate a universal APK
63-
include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
63+
include 'armeabi-v7a', 'x86', 'arm64-v8a', 'x86_64'
6464
}
6565
}
6666

6767
signingConfigs {
6868
release {
69-
storeFile file("keystore.jks")
70-
storePassword "12345678"
71-
keyAlias "key0"
72-
keyPassword "12345678"
69+
storeFile file('keystore.jks')
70+
storePassword '12345678'
71+
keyAlias 'key0'
72+
keyPassword '12345678'
7373
}
7474
}
7575

@@ -80,7 +80,7 @@ android {
8080
}
8181
release {
8282
minifyEnabled true
83-
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
83+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
8484
proguardFile "${rootProject.projectDir}/../node_modules/detox/android/detox/proguard-rules-app.pro"
8585
signingConfig signingConfigs.release
8686
firebaseCrashlytics {
@@ -106,7 +106,7 @@ android {
106106
variant.outputs.each { output ->
107107
// For each separate APK per architecture, set a unique version code as described here:
108108
// https://developer.android.com/studio/build/configure-apk-splits.html
109-
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
109+
def versionCodes = ['armeabi-v7a': 1, 'x86': 2, 'arm64-v8a': 3, 'x86_64': 4]
110110
def abi = output.getFilter(OutputFile.ABI)
111111
if (abi != null) { // null for the universal-debug, universal-release variants
112112
output.versionCodeOverride =
@@ -139,7 +139,7 @@ dependencies {
139139
/* ------------------------
140140
* TESTING SDKS/LIBRARIES
141141
* ------------------------ */
142-
androidTestImplementation(project(path: ":detox"))
142+
androidTestImplementation(project(path: ':detox'))
143143
}
144144

145145
apply from: file('../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle'); applyNativeModulesAppBuildGradle(project)

tests/android/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ allprojects {
6464

6565
// collect all our modules for reporting
6666
subprojects.forEach { project ->
67-
if (project.name.contains("react-native-firebase")) {
67+
if (project.name.contains('react-native-firebase')) {
6868
rootProject.ext.firebaseModulePaths << project.projectDir
6969
}
7070
}
7171

7272
subprojects {
73-
task listAllDependencies(type: DependencyReportTask) {}
73+
task listAllDependencies(type: DependencyReportTask) { }
7474

7575
// Force all subprojects to use one and only one set of versions
7676
ext {
@@ -80,8 +80,8 @@ subprojects {
8080
targetSdk = rootProject.ext.targetSdkVersion
8181
}
8282
afterEvaluate { project ->
83-
if (!project.name.equalsIgnoreCase("app")
84-
&& project.hasProperty("android")) {
83+
if (!project.name.equalsIgnoreCase('app')
84+
&& project.hasProperty('android')) {
8585
android {
8686
compileSdkVersion compileSdk
8787
buildToolsVersion buildTools
@@ -90,10 +90,10 @@ subprojects {
9090
targetSdkVersion targetSdk
9191
}
9292
}
93-
}
93+
}
9494

9595
// Configure testing settings - if set in module build.gradle files they affect library consumers
96-
if (project.name.contains("react-native-firebase")
96+
if (project.name.contains('react-native-firebase')
9797
&& project.hasProperty('android')) {
9898
android {
9999
// Instrument all our modules for coverage generation
@@ -115,6 +115,6 @@ subprojects {
115115
htmlReport true
116116
}
117117
}
118-
}
118+
}
119119
}
120120
}

0 commit comments

Comments
 (0)