Skip to content

Commit

Permalink
Fixes build
Browse files Browse the repository at this point in the history
Summary: Fixes build

Reviewed By: pentiumao

Differential Revision: D46863174

fbshipit-source-id: 73d1d26dc4a3d2c2a2da31a45d209639df0e645d
  • Loading branch information
adityasharat authored and facebook-github-bot committed Jun 27, 2023
1 parent 8ada185 commit fdb2380
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ ext.isDokkaBuild = getGradle().getStartParameter().getTaskNames().toString().toL
ext.deps = [
// Android support
supportAnnotations : 'androidx.annotation:annotation:1.0.0',
supportAppCompat : 'androidx.appcompat:appcompat:1.0.0',
supportAppCompat : 'androidx.appcompat:appcompat:1.6.1',
supportCore : 'androidx.core:core-ktx:1.9.0',
supportFragment : 'androidx.fragment:fragment:1.3.5',
supportCustomView : 'androidx.customview:customview:1.0.0',
Expand Down Expand Up @@ -157,7 +157,7 @@ ext.deps = [
// Proguard annotations (published through Yoga)
proguardAnnotations: 'com.facebook.yoga:proguard-annotations:1.14.1',
// Processor
javapoet : 'com.squareup:javapoet:1.9.0',
javapoet : 'com.squareup:javapoet:1.13.0',
// Misc
khronos : 'org.khronos:opengl-api:gl1.1-android-2.1_r1',
// Kotlin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ constructor(
val componentsConfiguration: ComponentsConfiguration? = null,
val themeResId: Int? = null
) : TestRule {

init {
ComponentsConfiguration.isDebugModeEnabled = true
}

val componentTree: ComponentTree
get() {
if (_componentTree == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ constructor(
lateinit var context: ComponentContext
private var threadLooperController: BaseThreadLooperController = ThreadLooperController()

init {
ComponentsConfiguration.isDebugModeEnabled = true
}

override fun apply(base: Statement, description: Description): Statement {
return object : Statement() {
override fun evaluate() {
Expand Down
4 changes: 2 additions & 2 deletions sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="28" />
android:minSdkVersion="19"
android:targetSdkVersion="33" />


</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import android.graphics.Paint
import android.graphics.PointF
import android.util.TypedValue
import android.view.View
import androidx.annotation.Dimension
import androidx.annotation.Dimension.Companion.DP
import androidx.annotation.Px
import java.util.concurrent.TimeUnit
import kotlin.math.min
Expand Down Expand Up @@ -87,6 +85,6 @@ class SimpleClockView(context: Context) : View(context) {
}

companion object {
@Dimension(unit = DP) private const val STROKE_WIDTH_DP = 6f
private const val STROKE_WIDTH_DP = 6f
}
}

0 comments on commit fdb2380

Please sign in to comment.