Files
notesnook/apps/mobile/app/utils/constants.ts

105 lines
2.9 KiB
TypeScript

/*
This file is part of the Notesnook project (https://notesnook.com/)
Copyright (C) 2023 Streetwriters (Private) Limited
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { Platform } from "react-native";
export const IOS_APPGROUPID = "group.org.streetwriters.notesnook";
export const FILE_SIZE_LIMIT = 500 * 1024 * 1024;
export const IMAGE_SIZE_LIMIT = 50 * 1024 * 1024;
export const BETA = false;
export const STORE_LINK =
Platform.OS === "ios"
? "https://apps.apple.com/us/app/notesnook/id1544027013"
: "https://play.google.com/store/apps/details?id=com.streetwriters.notesnook";
export const GROUP = {
default: "default",
None: "none",
abc: "abc",
year: "year",
week: "week",
month: "month"
};
export const SORT = {
dateModified: "Date modified",
dateEdited: "Date edited",
dateCreated: "Date created",
title: "Title",
dueDate: "Due date"
};
export const itemSkus = [
"com.streetwriters.notesnook.sub.mo",
"com.streetwriters.notesnook.sub.yr",
"com.streetwriters.notesnook.sub.yr.15",
"com.streetwriters.notesnook.sub.mo.15",
"com.streetwriters.notesnook.sub.mo.ofr",
"com.streetwriters.notesnook.sub.yr.trialoffer",
"com.streetwriters.notesnook.sub.mo.trialoffer",
"com.streetwriters.notesnook.sub.mo.tier1",
"com.streetwriters.notesnook.sub.yr.tier1",
"com.streetwriters.notesnook.sub.mo.tier2",
"com.streetwriters.notesnook.sub.yr.tier2",
"com.streetwriters.notesnook.sub.mo.tier3",
"com.streetwriters.notesnook.sub.yr.tier3"
];
export const SUBSCRIPTION_STATUS = {
BASIC: 0,
TRIAL: 1,
BETA: 2,
PREMIUM: 5,
PREMIUM_EXPIRED: 6,
PREMIUM_CANCELLED: 7
};
export const SUBSCRIPTION_STATUS_STRINGS = {
0: "Basic",
1: "Trial",
2: Platform.OS === "ios" ? "Pro" : "Beta",
5: "Pro",
6: "Expired",
7: "Pro (cancelled)"
};
export const SUBSCRIPTION_PROVIDER = {
0: null,
1: {
type: "iOS",
title: "Subscribed on iOS",
desc: "You subscribed to Notesnook Pro on iOS using Apple In App Purchase. You can cancel anytime with your iTunes Account settings.",
icon: "ios"
},
2: {
type: "Android",
title: "Subscribed on Android",
desc: "You subscribed to Notesnook Pro on Android Phone/Tablet using Google In App Purchase.",
icon: "android"
},
3: {
type: "Web",
title: "Subscribed on Web",
desc: "You subscribed to Notesnook Pro on the Web/Desktop App.",
icon: "web"
}
};