Skip to content

Commit 1b5b535

Browse files
committed
chore: fix ktlint
1 parent ef7c1e0 commit 1b5b535

4 files changed

Lines changed: 8 additions & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ jobs:
3232
# restore-keys: |
3333
# ${{ runner.os }}-gradle-${{matrix.arch}}-lint-
3434

35-
- name: Install ktlint
36-
run: |
37-
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.2.1/ktlint
38-
chmod a+x ktlint
39-
sudo mv ktlint /usr/local/bin/
35+
- name: Install Ktlint
36+
run: curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.8.0/ktlint && chmod a+x ktlint && sudo mv ktlint /usr/local/bin/
4037

4138
- name: Check
4239
run: pnpm run t

android/src/main/java/com/mjstudio/reactnativenavermap/mapview/RNCNaverMapViewWrapper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ class RNCNaverMapViewWrapper(
181181
-> {
182182
parent?.requestDisallowInterceptTouchEvent(true)
183183
}
184+
184185
MotionEvent.ACTION_UP,
185186
MotionEvent.ACTION_CANCEL,
186187
-> {

android/src/main/java/com/mjstudio/reactnativenavermap/util/image/GetOverlayImage.kt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,15 @@ internal fun getOverlayImage(
5353
val rnAssetUri = map["rnAssetUri"]?.toString() ?: ""
5454
// rnAssetUri starts with http if dev environment(metro server)
5555
// Also handle file:// and content:// URIs (e.g., from CodePush bundles)
56-
val isUriFormat = rnAssetUri.startsWith("http") ||
57-
rnAssetUri.startsWith("file://") ||
58-
rnAssetUri.startsWith("content://")
56+
val isUriFormat =
57+
rnAssetUri.startsWith("http") ||
58+
rnAssetUri.startsWith("file://") ||
59+
rnAssetUri.startsWith("content://")
5960
val assetUri = map["httpUri"]?.toString() ?: if (isUriFormat) rnAssetUri else ""
6061
val assetName = map["assetName"]?.toString() ?: ""
6162
val reuseIdentifier = map["reuseIdentifier"]?.toString() ?: ""
6263

63-
/**
64-
* http, https, asset, file all works
65-
*/
64+
// http, https, asset, file all works
6665
if (assetUri.isNotEmpty()) {
6766
val key = reuseIdentifier.ifEmpty { assetUri }
6867
val imageRequest =

android/src/main/java/com/mjstudio/reactnativenavermap/util/view/SizeReportingShadowNode.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/**
2-
* Copyright (c) 2015-present, Facebook, Inc.
3-
* All rights reserved.
4-
* This source code is licensed under the BSD-style license found in the
5-
* LICENSE file in the root directory of this source tree. An additional grant
6-
* of patent rights can be found in the PATENTS file in the same directory.
7-
*/
8-
91
package com.mjstudio.reactnativenavermap.util.view
102

113
import com.facebook.react.uimanager.LayoutShadowNode

0 commit comments

Comments
 (0)