@expensify/react-native-live-markdown 0.1.165 → 0.1.166

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -191,3 +191,7 @@ task copyJS(type: Copy) {
191
191
  tasks.preBuild {
192
192
  dependsOn copyJS
193
193
  }
194
+
195
+ tasks.withType(JavaCompile).configureEach {
196
+ options.compilerArgs << "-Xlint:all" << "-Werror"
197
+ }
@@ -35,6 +35,7 @@ public class CustomFabricUIManager {
35
35
  }
36
36
  }
37
37
 
38
+ @SuppressWarnings("unchecked")
38
39
  private static <T> T readPrivateField(Object obj, String name) throws NoSuchFieldException, IllegalAccessException {
39
40
  Class<?> clazz = obj.getClass();
40
41
 
@@ -17,8 +17,10 @@ import java.util.List;
17
17
  import java.util.Map;
18
18
 
19
19
  public class LiveMarkdownPackage extends TurboReactPackage {
20
+ @NonNull
20
21
  @Override
21
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
22
+ @SuppressWarnings("rawtypes")
23
+ public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactContext) {
22
24
  List<ViewManager> viewManagers = new ArrayList<>();
23
25
  viewManagers.add(new MarkdownTextInputDecoratorViewManager());
24
26
  return viewManagers;
@@ -27,6 +29,7 @@ public class LiveMarkdownPackage extends TurboReactPackage {
27
29
  @Override
28
30
  public ReactModuleInfoProvider getReactModuleInfoProvider() {
29
31
  return new ReactModuleInfoProvider() {
32
+ @NonNull
30
33
  @Override
31
34
  public Map<String, ReactModuleInfo> getReactModuleInfos() {
32
35
  return Map.of(LiveMarkdownModule.NAME, new ReactModuleInfo(
@@ -13,7 +13,7 @@ public abstract class MarkdownTextInputDecoratorViewManagerSpec<T extends View>
13
13
  private final ViewManagerDelegate<T> mDelegate;
14
14
 
15
15
  public MarkdownTextInputDecoratorViewManagerSpec() {
16
- mDelegate = new MarkdownTextInputDecoratorViewManagerDelegate(this);
16
+ mDelegate = new MarkdownTextInputDecoratorViewManagerDelegate<>(this);
17
17
  }
18
18
 
19
19
  @Nullable
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.165",
3
+ "version": "0.1.166",
4
4
  "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",