1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-11-02 14:23:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

feat: improve backup endpoints

This commit is contained in:
sunnylqm
2023-10-28 14:36:04 +08:00
parent 189e3ec78e
commit 7d128900cd
5 changed files with 68 additions and 105 deletions

9
lib/utils.ts Normal file
View File

@@ -0,0 +1,9 @@
export function logger(...args: any[]) {
console.log('Pushy: ', ...args);
}
export function assertRelease() {
if (__DEV__) {
throw new Error('react-native-update 只能在 RELEASE 版本中运行.');
}
}