Skip to content

Commit 7b55c7d

Browse files
authored
[LOCAL] Fix broken Android tests for 0.72 (#38926)
1 parent 4a7be95 commit 7b55c7d

File tree

1 file changed

+24
-0
lines changed
  • packages/react-native/ReactAndroid/src/test/java/com/facebook/testutils/shadows

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.testutils.shadows
9+
10+
import android.content.Context
11+
import com.facebook.soloader.SoLoader
12+
import kotlin.jvm.JvmStatic
13+
import org.robolectric.annotation.Implementation
14+
import org.robolectric.annotation.Implements
15+
16+
@Suppress("UNUSED_PARAMETER")
17+
@Implements(SoLoader::class)
18+
class ShadowSoLoader {
19+
companion object {
20+
@JvmStatic @Implementation fun init(context: Context?, flags: Int) {}
21+
22+
@JvmStatic @Implementation fun loadLibrary(shortName: String?): Boolean = true
23+
}
24+
}

0 commit comments

Comments
 (0)