Skip to content

Commit

Permalink
[1.11.0-rc] Version 1.11.0 (#2244)
Browse files Browse the repository at this point in the history
  • Loading branch information
taridepaco authored Nov 18, 2024
2 parents d72cace + 6d38234 commit 3bdeac1
Show file tree
Hide file tree
Showing 450 changed files with 11,992 additions and 8,776 deletions.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ pipeline {
script {
echo 'Sonarqube'
sh 'chmod +x ./scripts/sonarqube.sh'
sh './scripts/sonarqube.sh'
retry(3) { // Retry up to 3 times
timeout(time: 10, unit: 'MINUTES') {
sh './scripts/sonarqube.sh'
}
}
}
}
}
Expand Down
20 changes: 8 additions & 12 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

plugins {
id("com.android.library")
id("com.google.devtools.ksp") version "${libs.versions.kotlin.get()}-1.0.16"
id("com.google.devtools.ksp") version "${libs.versions.kotlin.get()}-1.0.24"
id("kotlin-android")
id("kotlin-kapt")
id("maven-publish-conventions")
Expand Down Expand Up @@ -140,9 +140,13 @@ dependencies {
// Square libraries
api(libs.okhttp)
api(libs.okhttp.mockwebserver)
api(libs.retrofit.core)
api(libs.retrofit.jackson)
api(libs.retrofit.rxjava2)

// Ktor
api(libs.ktor)
api(libs.ktor.okhttp)
api(libs.ktor.negotiation)
api(libs.ktor.jackson)
api(libs.ktor.client.mock)

// Kotlin
api(libs.kotlinx.datetime)
Expand Down Expand Up @@ -190,14 +194,6 @@ dependencies {
}
androidTestImplementation(libs.kotlinx.coroutines.test)
androidTestImplementation(libs.androidx.paging.testing)

debugImplementation(libs.facebook.soloader)
debugImplementation(libs.facebook.flipper.core)
debugImplementation(libs.facebook.flipper.network) {
exclude(group = "com.squareup.okhttp3")
}

releaseImplementation(libs.facebook.flipper.noop)
}

detekt {
Expand Down
134 changes: 134 additions & 0 deletions core/config/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
formatting:
active: true
android: false
autoCorrect: true
AnnotationOnSeparateLine:
active: false
autoCorrect: true
AnnotationSpacing:
active: false
autoCorrect: true
ArgumentListWrapping:
active: false
autoCorrect: true
indentSize: 4
maxLineLength: 120
ChainWrapping:
active: true
autoCorrect: true
CommentSpacing:
active: true
autoCorrect: true
EnumEntryNameCase:
active: false
autoCorrect: true
Filename:
active: true
FinalNewline:
active: true
autoCorrect: true
insertFinalNewLine: true
ImportOrdering:
active: false
autoCorrect: true
layout: '*,java.**,javax.**,kotlin.**,^'
Indentation:
active: false
autoCorrect: true
indentSize: 4
continuationIndentSize: 4
MaximumLineLength:
active: true
maxLineLength: 120
ignoreBackTickedIdentifier: false
ModifierOrdering:
active: true
autoCorrect: true
MultiLineIfElse:
active: true
autoCorrect: true
NoBlankLineBeforeRbrace:
active: true
autoCorrect: true
NoConsecutiveBlankLines:
active: true
autoCorrect: true
NoEmptyClassBody:
active: true
autoCorrect: true
NoEmptyFirstLineInMethodBlock:
active: false
autoCorrect: true
NoLineBreakAfterElse:
active: true
autoCorrect: true
NoLineBreakBeforeAssignment:
active: true
autoCorrect: true
NoMultipleSpaces:
active: true
autoCorrect: true
NoSemicolons:
active: true
autoCorrect: true
NoTrailingSpaces:
active: true
autoCorrect: true
NoUnitReturn:
active: true
autoCorrect: true
NoUnusedImports:
active: true
autoCorrect: true
NoWildcardImports:
active: true
PackageName:
active: true
autoCorrect: true
ParameterListWrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 120
SpacingAroundAngleBrackets:
active: false
autoCorrect: true
SpacingAroundColon:
active: true
autoCorrect: true
SpacingAroundComma:
active: true
autoCorrect: true
SpacingAroundCurly:
active: true
autoCorrect: true
SpacingAroundDot:
active: true
autoCorrect: true
SpacingAroundDoubleColon:
active: false
autoCorrect: true
SpacingAroundKeyword:
active: true
autoCorrect: true
SpacingAroundOperators:
active: true
autoCorrect: true
SpacingAroundParens:
active: true
autoCorrect: true
SpacingAroundRangeOperator:
active: true
autoCorrect: true
SpacingAroundUnaryOperator:
active: false
autoCorrect: true
SpacingBetweenDeclarationsWithAnnotations:
active: false
autoCorrect: true
SpacingBetweenDeclarationsWithComments:
active: false
autoCorrect: true
StringTemplate:
active: true
autoCorrect: true
145 changes: 5 additions & 140 deletions core/config/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -266,141 +266,6 @@ exceptions:
- 'RuntimeException'
- 'Throwable'

formatting:
active: true
android: false
autoCorrect: true
AnnotationOnSeparateLine:
active: false
autoCorrect: true
AnnotationSpacing:
active: false
autoCorrect: true
ArgumentListWrapping:
active: false
autoCorrect: true
indentSize: 4
maxLineLength: 120
ChainWrapping:
active: true
autoCorrect: true
CommentSpacing:
active: true
autoCorrect: true
EnumEntryNameCase:
active: false
autoCorrect: true
Filename:
active: true
FinalNewline:
active: true
autoCorrect: true
insertFinalNewLine: true
ImportOrdering:
active: false
autoCorrect: true
layout: '*,java.**,javax.**,kotlin.**,^'
Indentation:
active: false
autoCorrect: true
indentSize: 4
continuationIndentSize: 4
MaximumLineLength:
active: true
maxLineLength: 120
ignoreBackTickedIdentifier: false
ModifierOrdering:
active: true
autoCorrect: true
MultiLineIfElse:
active: true
autoCorrect: true
NoBlankLineBeforeRbrace:
active: true
autoCorrect: true
NoConsecutiveBlankLines:
active: true
autoCorrect: true
NoEmptyClassBody:
active: true
autoCorrect: true
NoEmptyFirstLineInMethodBlock:
active: false
autoCorrect: true
NoLineBreakAfterElse:
active: true
autoCorrect: true
NoLineBreakBeforeAssignment:
active: true
autoCorrect: true
NoMultipleSpaces:
active: true
autoCorrect: true
NoSemicolons:
active: true
autoCorrect: true
NoTrailingSpaces:
active: true
autoCorrect: true
NoUnitReturn:
active: true
autoCorrect: true
NoUnusedImports:
active: true
autoCorrect: true
NoWildcardImports:
active: true
PackageName:
active: true
autoCorrect: true
ParameterListWrapping:
active: true
autoCorrect: true
indentSize: 4
maxLineLength: 120
SpacingAroundAngleBrackets:
active: false
autoCorrect: true
SpacingAroundColon:
active: true
autoCorrect: true
SpacingAroundComma:
active: true
autoCorrect: true
SpacingAroundCurly:
active: true
autoCorrect: true
SpacingAroundDot:
active: true
autoCorrect: true
SpacingAroundDoubleColon:
active: false
autoCorrect: true
SpacingAroundKeyword:
active: true
autoCorrect: true
SpacingAroundOperators:
active: true
autoCorrect: true
SpacingAroundParens:
active: true
autoCorrect: true
SpacingAroundRangeOperator:
active: true
autoCorrect: true
SpacingAroundUnaryOperator:
active: false
autoCorrect: true
SpacingBetweenDeclarationsWithAnnotations:
active: false
autoCorrect: true
SpacingBetweenDeclarationsWithComments:
active: false
autoCorrect: true
StringTemplate:
active: true
autoCorrect: true

naming:
active: true
BooleanPropertyNaming:
Expand Down Expand Up @@ -556,7 +421,7 @@ potential-bugs:
LateinitUsage:
active: false
excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/jsTest/**', '**/iosTest/**']
excludeAnnotatedProperties: []
ignoreAnnotated: []
ignoreOnClassesPattern: ''
MapGetWithNotNullAssertionOperator:
active: false
Expand Down Expand Up @@ -644,7 +509,7 @@ style:
ignoreOverridableFunction: true
ignoreActualFunction: true
excludedFunctions: ''
excludeAnnotatedFunction:
ignoreAnnotated:
- 'dagger.Provides'
LibraryCodeMustSpecifyReturnType:
active: true
Expand Down Expand Up @@ -734,10 +599,10 @@ style:
active: false
UnderscoresInNumericLiterals:
active: false
acceptableDecimalLength: 5
acceptableLength: 5
UnnecessaryAbstractClass:
active: true
excludeAnnotatedClasses:
ignoreAnnotated:
- 'dagger.Module'
UnnecessaryAnnotationUseSiteTarget:
active: false
Expand Down Expand Up @@ -768,7 +633,7 @@ style:
active: false
UseDataClass:
active: false
excludeAnnotatedClasses: []
ignoreAnnotated: []
allowVars: false
UseEmptyCounterpart:
active: false
Expand Down
2 changes: 0 additions & 2 deletions core/src/androidTest/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
android:label="androidTests"
tools:replace="android:label"
android:requestLegacyExternalStorage="true">
<activity android:name="com.facebook.flipper.android.diagnostics.FlipperDiagnosticActivity"
android:exported="true"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ abstract class BaseRealIntegrationTest {
}

internal fun getGenericCallData(d2: D2): GenericCallData {
return GenericCallData.create(
return GenericCallData(
d2.databaseAdapter(),
d2.retrofit(),
d2.httpServiceClient(),
ResourceHandler.create(d2.databaseAdapter()),
d2.systemInfoModule().versionManager(),
)
Expand Down
Loading

0 comments on commit 3bdeac1

Please sign in to comment.