Skip to content

Commit

Permalink
Merge branch 'main' into feat/eth-season-2
Browse files Browse the repository at this point in the history
  • Loading branch information
n0izn0iz authored Dec 3, 2024
2 parents a521526 + 00a9f1f commit 7e9e14d
Show file tree
Hide file tree
Showing 19 changed files with 766 additions and 90 deletions.
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
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");
2 changes: 2 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,7 @@ const config: AppConfig = {
forceDAppsList: ["feed", "organizations"],
defaultNetworkId: "gno-test5",
homeScreen: "Feed",
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
File renamed without changes.
77 changes: 77 additions & 0 deletions apps/teritori/app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
module.exports = {
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,
},
],
],
},
};
File renamed without changes.
2 changes: 1 addition & 1 deletion apps/gno-dapp/netlify.toml → apps/teritori/netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = 'sed -i "s/teritori-dapp/gno-dapp/" package.json && npm i -g sharp-cli && npx expo-optimize && npx expo export -p web'
command = 'npx tsx packages/scripts/switch-app teritori && 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
Loading

0 comments on commit 7e9e14d

Please sign in to comment.