Skip to content

Commit

Permalink
Merge branch 'main' into feat-launchpad-backend
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Dec 31, 2024
2 parents f903116 + 7796e47 commit 8d36b53
Show file tree
Hide file tree
Showing 304 changed files with 11,798 additions and 2,576 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = {
"error",
{ "ts-expect-error": "allow-with-description" },
],
"no-fallthrough": "error",
"no-restricted-syntax": [
"error",
{
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,8 @@ artifacts
rust/cw-contracts/*/target

# cypress
cypress/screenshots
cypress/screenshots

# multi-app
/app-selector.js
/app.config.js
2 changes: 1 addition & 1 deletion .gnoversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9786fa366f922f04e1251ec6f1df6423b4fd2bf4
c8cd8f4b6ccbe9f4ee5622032228553496186d51
92 changes: 92 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app-selector.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("./apps/teritori/index");
80 changes: 1 addition & 79 deletions app.config.js
Original file line number Diff line number Diff line change
@@ -1,79 +1 @@
const config = {
expo: {
name: "Teritori",
slug: "teritori",
version: "1.0.3",
orientation: "portrait",
icon: "./assets/app-icon.png",
owner: "teritori",
userInterfaceStyle: "light",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#000000",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
bundleIdentifier: "com.teritori",
buildNumber: "5",
infoPlist: {
NSBluetoothAlwaysUsageDescription: "Used for Bluetooth communications",
NSBluetoothPeripheralUsageDescription:
"Used for Bluetooth communications",
NSPhotoLibraryUsageDescription:
"Access to your photo library is required for image upload functionality.",
ITSAppUsesNonExemptEncryption: false,
UIBackgroundModes: ["audio"],
},
},
android: {
package: "com.teritori",
versionCode: "6",
permissions: [
"WAKE_LOCK",
"BLUETOOTH",
"BLUETOOTH_ADMIN",
"BLUETOOTH_ADVERTISE",
"BLUETOOTH_SCAN",
"BLUETOOTH_CONNECT",
"ACCESS_NETWORK_STATE",
"CHANGE_NETWORK_STATE",
"CHANGE_WIFI_STATE",
"ACCESS_WIFI_STATE",
"CHANGE_WIFI_MULTICAST_STATE",
"NFC",
],
},
web: {
bundler: "metro",
favicon: "./assets/favicon.png",
},
extra: {
eas: {
projectId: "9ce165de-0199-478c-b3bd-8688e5ce03eb",
},
},
plugins: [
"expo-font",
[
"expo-document-picker",
{
iCloudContainerEnvironment: "Production",
},
],
[
"react-native-vision-camera",
{
cameraPermissionText: "$(PRODUCT_NAME) needs access to your Camera.",
enableCodeScanner: true,
},
],
],
},
};

export default config;
module.exports = require("./apps/teritori/app.config.js");
3 changes: 3 additions & 0 deletions apps/gno-dapp/App.tsx → apps/gnotribe/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logo from "@/assets/logos/gnotribe-toplogo.svg";
import { AppConfig } from "@/context/AppConfigProvider";
import AppRoot from "@/dapp-root/App";

Expand All @@ -8,6 +9,8 @@ const config: AppConfig = {
forceDAppsList: ["feed", "organizations"],
defaultNetworkId: "gno-test5",
homeScreen: "Feed",
browserTabsPrefix: "Gnotribe - ",
logo,
};

export const App: React.FC = () => {
Expand Down
77 changes: 77 additions & 0 deletions apps/gnotribe/app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
module.exports = {
expo: {
name: "Gnotribe",
slug: "gnotribe",
version: "1.0.3",
orientation: "portrait",
icon: "./apps/gnotribe/icon.png",
owner: "gnotribe",
userInterfaceStyle: "light",
splash: {
image: "./assets/splash.png",
resizeMode: "contain",
backgroundColor: "#000000",
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ["**/*"],
ios: {
supportsTablet: true,
bundleIdentifier: "com.teritori.gnotribe",
buildNumber: "5",
infoPlist: {
NSBluetoothAlwaysUsageDescription: "Used for Bluetooth communications",
NSBluetoothPeripheralUsageDescription:
"Used for Bluetooth communications",
NSPhotoLibraryUsageDescription:
"Access to your photo library is required for image upload functionality.",
ITSAppUsesNonExemptEncryption: false,
UIBackgroundModes: ["audio"],
},
},
android: {
package: "com.teritori.gnotribe",
versionCode: 6,
permissions: [
"WAKE_LOCK",
"BLUETOOTH",
"BLUETOOTH_ADMIN",
"BLUETOOTH_ADVERTISE",
"BLUETOOTH_SCAN",
"BLUETOOTH_CONNECT",
"ACCESS_NETWORK_STATE",
"CHANGE_NETWORK_STATE",
"CHANGE_WIFI_STATE",
"ACCESS_WIFI_STATE",
"CHANGE_WIFI_MULTICAST_STATE",
"NFC",
],
},
web: {
bundler: "metro",
favicon: "./apps/gnotribe/icon.png",
},
extra: {
eas: {
projectId: "9ce165de-0199-478c-b3bd-8688e5ce03eb",
},
},
plugins: [
"expo-font",
[
"expo-document-picker",
{
iCloudContainerEnvironment: "Production",
},
],
[
"react-native-vision-camera",
{
cameraPermissionText: "$(PRODUCT_NAME) needs access to your Camera.",
enableCodeScanner: true,
},
],
],
},
};
Binary file added apps/gnotribe/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = 'npm i -g sharp-cli && npx expo-optimize && npx expo export -p web'
command = 'npx tsx packages/scripts/switch-app gnotribe && npm i -g sharp-cli && npx expo-optimize && npx expo export -p web'
publish = '/dist'
[build.environment]
NODE_OPTIONS = "--max_old_space_size=4096"
Expand Down
1 change: 1 addition & 0 deletions apps/teritori-dapp/App.tsx → apps/teritori/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import AppRoot from "@/dapp-root/App";
const config: AppConfig = {
defaultNetworkId: "teritori",
homeScreen: "Home",
browserTabsPrefix: "Teritori - ",
};

export const App: React.FC = () => {
Expand Down
Loading

0 comments on commit 8d36b53

Please sign in to comment.