Commit Graph

12 Commits

Author SHA1 Message Date
heath-clink
e34ac0d1f9
fix for android crash (#35)
* fix for android crash

For some reason, a recent commit removed the check for a null return
from `getCurrentActivity()`. But since `getCurrentActivity()` might return
null, the app will crash with a NullPointerException.

This restores the null check.

It also fixes inconsistent handling of null `tag` argument in both
iOS and Android. This does not affect usage from JS because the JS
interface will not pass null to that argument; however other native
code could still call these methods and pass null for `tag`.

* remove unnecessary parens

---------

Co-authored-by: Marc Shilling <marcshilling@gmail.com>
2024-03-08 13:10:30 -05:00
ATNASGDWNGTH
bc344737a1
feat: tag every call to disable the idle timer and expose static method for non react-native usage (#31)
add support for tagging calls and native code usage

---------

Co-authored-by: Marc Shilling <marcshilling@gmail.com>
2023-02-26 14:35:24 -05:00
Marc Shilling
03ec800b63 finishing touches 2021-09-16 14:06:56 -04:00
Marc Shilling
944a3881de mimic the gradle setup from react-native-builder-bob 2021-09-07 15:38:37 -04:00
Anna Doubkova
903eb79541 Add module annotation (#18) 2019-06-11 19:45:19 -04:00
Karim Kouznetsov
90d835d82a Updated build.gradle (#17)
- Updated compileSdkVersion, targetSdkVersion and buildToolsVersion default values to the latest available
- Replaced compile with implementation, as compile is now obsolete.
2019-04-18 09:34:18 -04:00
Danilo Bürger
e12edb04e5 Support React Native 0.56 (#14) 2018-08-24 10:49:49 -04:00
Radek Czemerys
7f69950b60
Use react-native version for node_modules 2018-03-21 17:17:07 +01:00
Mark Miyashita
83c9520393
Remove deprecated override on createJSModules method 2017-08-09 18:07:37 -07:00
Marc Shilling
a380167aef remove build folder 2016-04-21 18:31:34 -04:00
Marc Shilling
f930a4d044 fix android package 2016-04-21 16:03:33 -04:00
Marc Shilling
e34dfec679 lets see if this works 2016-04-21 15:48:10 -04:00