Skip to content

Commit 543ea3c

Browse files
committed
fix small kotlin issue
1 parent 81f0528 commit 543ea3c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

android/src/main/java/com/margelo/nitro/performancetoolkit/HybridPerformanceToolkit.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,7 @@ class HybridPerformanceToolkit : HybridPerformanceToolkitSpec() {
221221
}
222222
}
223223
}
224-
if (pssValue != null) {
225-
return pssValue
226-
}
224+
pssValue?.let { return it }
227225
}
228226

229227
// Fallback: Debug.MemoryInfo (most reliable but ~200x more expensive)

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-performance-toolkit",
3-
"version": "0.0.1-alpha.1",
3+
"version": "0.0.1-alpha.3",
44
"description": "react-native-performance-toolkit is a react native package built with Nitro",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/module/index.js",
@@ -12,6 +12,7 @@
1212
"clean": "git clean -dfX",
1313
"release": "semantic-release",
1414
"build": "bun run typecheck && bob build",
15+
"prepublishOnly": "bun run codegen && bun run build",
1516
"codegen": "nitrogen --logLevel=\"debug\" && bun run build && node post-script.js"
1617
},
1718
"keywords": [
@@ -43,11 +44,11 @@
4344
"workspaces": [
4445
"example"
4546
],
46-
"repository": "https://github.com/danielsuchý/react-native-performance-toolkit.git",
47+
"repository": "https://github.com/nodonisko/react-native-performance-toolkit.git",
4748
"author": "Daniel Suchý",
4849
"license": "MIT",
49-
"bugs": "https://github.com/danielsuchý/react-native-performance-toolkit/issues",
50-
"homepage": "https://github.com/danielsuchý/react-native-performance-toolkit#readme",
50+
"bugs": "https://github.com/nodonisko/react-native-performance-toolkit/issues",
51+
"homepage": "https://github.com/nodonisko/react-native-performance-toolkit#readme",
5152
"publishConfig": {
5253
"access": "public",
5354
"registry": "https://registry.npmjs.org/"

0 commit comments

Comments
 (0)