diff --git a/dapps/W3MWagmi/.gitignore b/dapps/W3MWagmi/.gitignore index 9cfd214b..dd8e167a 100644 --- a/dapps/W3MWagmi/.gitignore +++ b/dapps/W3MWagmi/.gitignore @@ -64,9 +64,15 @@ yarn-error.log # testing /coverage +# Sentry +sentry.properties + +# Others +.env* +!.env.example +secrets.properties + # Expo .expo dist/ web-build/ - - diff --git a/dapps/Web3Inbox/.bundle/config b/dapps/Web3Inbox/.bundle/config new file mode 100644 index 00000000..848943bb --- /dev/null +++ b/dapps/Web3Inbox/.bundle/config @@ -0,0 +1,2 @@ +BUNDLE_PATH: "vendor/bundle" +BUNDLE_FORCE_RUBY_PLATFORM: 1 diff --git a/dapps/Web3Inbox/.env.example b/dapps/Web3Inbox/.env.example new file mode 100644 index 00000000..9c8825cc --- /dev/null +++ b/dapps/Web3Inbox/.env.example @@ -0,0 +1,2 @@ +ENV_PROJECT_ID=your_project_id +ENV_RELAY_URL=wss://relay.walletconnect.com \ No newline at end of file diff --git a/dapps/Web3Inbox/.eslintrc.js b/dapps/Web3Inbox/.eslintrc.js new file mode 100644 index 00000000..84ce69b8 --- /dev/null +++ b/dapps/Web3Inbox/.eslintrc.js @@ -0,0 +1,7 @@ +module.exports = { + root: true, + extends: '@react-native', + rules: { + 'react/react-in-jsx-scope': 'off', + }, +}; diff --git a/dapps/Web3Inbox/.gitignore b/dapps/Web3Inbox/.gitignore new file mode 100644 index 00000000..d144e907 --- /dev/null +++ b/dapps/Web3Inbox/.gitignore @@ -0,0 +1,71 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +ios/.xcode.env.local +ios/GoogleService-Info.plist + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml +*.hprof +.cxx/ +*.keystore +!debug.keystore +android/app/google-services.json + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log +.env.local +.env* +!.env.example + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +**/fastlane/report.xml +**/fastlane/Preview.html +**/fastlane/screenshots +**/fastlane/test_output + +# Bundle artifact +*.jsbundle + +# Ruby / CocoaPods +/ios/Pods/ +/vendor/bundle/ + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* + +# testing +/coverage diff --git a/dapps/Web3Inbox/.prettierrc.js b/dapps/Web3Inbox/.prettierrc.js new file mode 100644 index 00000000..2b540746 --- /dev/null +++ b/dapps/Web3Inbox/.prettierrc.js @@ -0,0 +1,7 @@ +module.exports = { + arrowParens: 'avoid', + bracketSameLine: true, + bracketSpacing: false, + singleQuote: true, + trailingComma: 'all', +}; diff --git a/dapps/Web3Inbox/.vscode/settings.json b/dapps/Web3Inbox/.vscode/settings.json new file mode 100644 index 00000000..7a73a41b --- /dev/null +++ b/dapps/Web3Inbox/.vscode/settings.json @@ -0,0 +1,2 @@ +{ +} \ No newline at end of file diff --git a/dapps/Web3Inbox/.watchmanconfig b/dapps/Web3Inbox/.watchmanconfig new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/dapps/Web3Inbox/.watchmanconfig @@ -0,0 +1 @@ +{} diff --git a/dapps/Web3Inbox/Gemfile b/dapps/Web3Inbox/Gemfile new file mode 100644 index 00000000..8d72c37a --- /dev/null +++ b/dapps/Web3Inbox/Gemfile @@ -0,0 +1,9 @@ +source 'https://rubygems.org' + +# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version +ruby ">= 2.6.10" + +# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper +# bound in the template on Cocoapods with next React Native release. +gem 'cocoapods', '>= 1.13', '< 1.15' +gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' diff --git a/dapps/Web3Inbox/README.md b/dapps/Web3Inbox/README.md new file mode 100644 index 00000000..12470c30 --- /dev/null +++ b/dapps/Web3Inbox/README.md @@ -0,0 +1,79 @@ +This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli). + +# Getting Started + +>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding. + +## Step 1: Start the Metro Server + +First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native. + +To start Metro, run the following command from the _root_ of your React Native project: + +```bash +# using npm +npm start + +# OR using Yarn +yarn start +``` + +## Step 2: Start your Application + +Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app: + +### For Android + +```bash +# using npm +npm run android + +# OR using Yarn +yarn android +``` + +### For iOS + +```bash +# using npm +npm run ios + +# OR using Yarn +yarn ios +``` + +If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly. + +This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively. + +## Step 3: Modifying your App + +Now that you have successfully run the app, let's modify it. + +1. Open `App.tsx` in your text editor of choice and edit some lines. +2. For **Android**: Press the R key twice or select **"Reload"** from the **Developer Menu** (Ctrl + M (on Window and Linux) or Cmd ⌘ + M (on macOS)) to see your changes! + + For **iOS**: Hit Cmd ⌘ + R in your iOS Simulator to reload the app and see your changes! + +## Congratulations! :tada: + +You've successfully run and modified your React Native App. :partying_face: + +### Now what? + +- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps). +- If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started). + +# Troubleshooting + +If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page. + +# Learn More + +To learn more about React Native, take a look at the following resources: + +- [React Native Website](https://reactnative.dev) - learn more about React Native. +- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment. +- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**. +- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts. +- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native. diff --git a/dapps/Web3Inbox/__tests__/App.test.tsx b/dapps/Web3Inbox/__tests__/App.test.tsx new file mode 100644 index 00000000..9eac6fbc --- /dev/null +++ b/dapps/Web3Inbox/__tests__/App.test.tsx @@ -0,0 +1,17 @@ +/** + * @format + */ + +import 'react-native'; +import React from 'react'; +import App from '../App'; + +// Note: import explicitly to use the types shipped with jest. +import {it} from '@jest/globals'; + +// Note: test renderer must be required after react-native. +import renderer from 'react-test-renderer'; + +it('renders correctly', () => { + renderer.create(); +}); diff --git a/dapps/Web3Inbox/android/app/build.gradle b/dapps/Web3Inbox/android/app/build.gradle new file mode 100644 index 00000000..e43552a3 --- /dev/null +++ b/dapps/Web3Inbox/android/app/build.gradle @@ -0,0 +1,133 @@ +apply plugin: "com.android.application" +apply plugin: "org.jetbrains.kotlin.android" +apply plugin: "com.facebook.react" +apply plugin: 'com.android.application' +apply plugin: 'com.google.gms.google-services' + +android { + packagingOptions { + pickFirst 'lib/x86/libcrypto.so' + pickFirst 'lib/x86_64/libcrypto.so' + pickFirst 'lib/armeabi-v7a/libcrypto.so' + pickFirst 'lib/arm64-v8a/libcrypto.so' + } +} + +/** + * This is the configuration block to customize your React Native Android app. + * By default you don't need to apply any configuration, just uncomment the lines you need. + */ +react { + /* Folders */ + // The root of your project, i.e. where "package.json" lives. Default is '..' + // root = file("../") + // The folder where the react-native NPM package is. Default is ../node_modules/react-native + // reactNativeDir = file("../node_modules/react-native") + // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen + // codegenDir = file("../node_modules/@react-native/codegen") + // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js + // cliFile = file("../node_modules/react-native/cli.js") + + /* Variants */ + // The list of variants to that are debuggable. For those we're going to + // skip the bundling of the JS bundle and the assets. By default is just 'debug'. + // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants. + // debuggableVariants = ["liteDebug", "prodDebug"] + + /* Bundling */ + // A list containing the node command and its flags. Default is just 'node'. + // nodeExecutableAndArgs = ["node"] + // + // The command to run when bundling. By default is 'bundle' + // bundleCommand = "ram-bundle" + // + // The path to the CLI configuration file. Default is empty. + // bundleConfig = file(../rn-cli.config.js) + // + // The name of the generated asset file containing your JS bundle + // bundleAssetName = "MyApplication.android.bundle" + // + // The entry file for bundle generation. Default is 'index.android.js' or 'index.js' + // entryFile = file("../js/MyApplication.android.js") + // + // A list of extra flags to pass to the 'bundle' commands. + // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle + // extraPackagerArgs = [] + + /* Hermes Commands */ + // The hermes compiler command to run. By default it is 'hermesc' + // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc" + // + // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map" + // hermesFlags = ["-O", "-output-source-map"] +} + +/** + * Set this to true to Run Proguard on Release builds to minify the Java bytecode. + */ +def enableProguardInReleaseBuilds = false + +/** + * The preferred build flavor of JavaScriptCore (JSC) + * + * For example, to use the international variant, you can use: + * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` + * + * The international variant includes ICU i18n library and necessary data + * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that + * give correct results when using with locales other than en-US. Note that + * this variant is about 6MiB larger per architecture than default. + */ +def jscFlavor = 'org.webkit:android-jsc:+' + +android { + ndkVersion rootProject.ext.ndkVersion + buildToolsVersion rootProject.ext.buildToolsVersion + compileSdk rootProject.ext.compileSdkVersion + + namespace "com.walletconnect.web3inbox.lab" + defaultConfig { + applicationId "com.walletconnect.web3inbox" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode 1 + versionName "1.0" + } + signingConfigs { + debug { + storeFile file('debug.keystore') + storePassword 'android' + keyAlias 'androiddebugkey' + keyPassword 'android' + } + } + buildTypes { + debug { + signingConfig signingConfigs.debug + } + release { + // Caution! In production, you need to generate your own keystore file. + // see https://reactnative.dev/docs/signed-apk-android. + signingConfig signingConfigs.debug + minifyEnabled enableProguardInReleaseBuilds + proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" + } + } +} + +dependencies { + // The version of react-native is set by the React Native Gradle Plugin + implementation("com.facebook.react:react-android") + implementation("com.facebook.react:flipper-integration") + + // Import the Firebase BoM + implementation platform('com.google.firebase:firebase-bom:32.7.1') + + if (hermesEnabled.toBoolean()) { + implementation("com.facebook.react:hermes-android") + } else { + implementation jscFlavor + } +} + +apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) diff --git a/dapps/Web3Inbox/android/app/debug.keystore b/dapps/Web3Inbox/android/app/debug.keystore new file mode 100644 index 00000000..364e105e Binary files /dev/null and b/dapps/Web3Inbox/android/app/debug.keystore differ diff --git a/dapps/Web3Inbox/android/app/proguard-rules.pro b/dapps/Web3Inbox/android/app/proguard-rules.pro new file mode 100644 index 00000000..11b02572 --- /dev/null +++ b/dapps/Web3Inbox/android/app/proguard-rules.pro @@ -0,0 +1,10 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: diff --git a/dapps/Web3Inbox/android/app/src/debug/AndroidManifest.xml b/dapps/Web3Inbox/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 00000000..eb98c01a --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/dapps/Web3Inbox/android/app/src/main/AndroidManifest.xml b/dapps/Web3Inbox/android/app/src/main/AndroidManifest.xml new file mode 100644 index 00000000..35de1286 --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dapps/Web3Inbox/android/app/src/main/java/com/web3inboxlab/MainActivity.kt b/dapps/Web3Inbox/android/app/src/main/java/com/web3inboxlab/MainActivity.kt new file mode 100644 index 00000000..32d07bb3 --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/java/com/web3inboxlab/MainActivity.kt @@ -0,0 +1,29 @@ +package com.walletconnect.web3inbox.lab + +import com.facebook.react.ReactActivity +import com.facebook.react.ReactActivityDelegate +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled +import com.facebook.react.defaults.DefaultReactActivityDelegate +import android.os.Bundle +import com.zoontek.rnbootsplash.RNBootSplash + +class MainActivity : ReactActivity() { + + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + override fun getMainComponentName(): String = "Web3Inbox" + + /** + * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] + * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] + */ + override fun createReactActivityDelegate(): ReactActivityDelegate = + DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) + + override fun onCreate(savedInstanceState: Bundle?) { + RNBootSplash.init(this, R.style.BootTheme) // ⬅️ initialize the splash screen + super.onCreate(savedInstanceState) // super.onCreate(null) with react-native-screens + } +} diff --git a/dapps/Web3Inbox/android/app/src/main/java/com/web3inboxlab/MainApplication.kt b/dapps/Web3Inbox/android/app/src/main/java/com/web3inboxlab/MainApplication.kt new file mode 100644 index 00000000..d813d8b5 --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/java/com/web3inboxlab/MainApplication.kt @@ -0,0 +1,45 @@ +package com.walletconnect.web3inbox.lab + +import android.app.Application +import com.facebook.react.PackageList +import com.facebook.react.ReactApplication +import com.facebook.react.ReactHost +import com.facebook.react.ReactNativeHost +import com.facebook.react.ReactPackage +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load +import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost +import com.facebook.react.defaults.DefaultReactNativeHost +import com.facebook.react.flipper.ReactNativeFlipper +import com.facebook.soloader.SoLoader + +class MainApplication : Application(), ReactApplication { + + override val reactNativeHost: ReactNativeHost = + object : DefaultReactNativeHost(this) { + override fun getPackages(): List = + PackageList(this).packages.apply { + // Packages that cannot be autolinked yet can be added manually here, for example: + // add(MyReactNativePackage()) + } + + override fun getJSMainModuleName(): String = "index" + + override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG + + override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED + override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED + } + + override val reactHost: ReactHost + get() = getDefaultReactHost(this.applicationContext, reactNativeHost) + + override fun onCreate() { + super.onCreate() + SoLoader.init(this, false) + if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + // If you opted-in for the New Architecture, we load the native entry point for this app. + load() + } + ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager) + } +} diff --git a/dapps/Web3Inbox/android/app/src/main/res/drawable-hdpi/bootsplash_logo.png b/dapps/Web3Inbox/android/app/src/main/res/drawable-hdpi/bootsplash_logo.png new file mode 100644 index 00000000..5709fe46 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/drawable-hdpi/bootsplash_logo.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/drawable-mdpi/bootsplash_logo.png b/dapps/Web3Inbox/android/app/src/main/res/drawable-mdpi/bootsplash_logo.png new file mode 100644 index 00000000..c9ac17d1 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/drawable-mdpi/bootsplash_logo.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/drawable-xhdpi/bootsplash_logo.png b/dapps/Web3Inbox/android/app/src/main/res/drawable-xhdpi/bootsplash_logo.png new file mode 100644 index 00000000..eb58f061 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/drawable-xhdpi/bootsplash_logo.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/drawable-xxhdpi/bootsplash_logo.png b/dapps/Web3Inbox/android/app/src/main/res/drawable-xxhdpi/bootsplash_logo.png new file mode 100644 index 00000000..dcadf556 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/drawable-xxhdpi/bootsplash_logo.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/drawable-xxxhdpi/bootsplash_logo.png b/dapps/Web3Inbox/android/app/src/main/res/drawable-xxxhdpi/bootsplash_logo.png new file mode 100644 index 00000000..4eb894b0 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/drawable-xxxhdpi/bootsplash_logo.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/drawable/rn_edit_text_material.xml b/dapps/Web3Inbox/android/app/src/main/res/drawable/rn_edit_text_material.xml new file mode 100644 index 00000000..73b37e4d --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/drawable/rn_edit_text_material.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/dapps/Web3Inbox/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 00000000..036d09bc --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/dapps/Web3Inbox/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 00000000..036d09bc --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 00000000..c4ed3f72 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png new file mode 100644 index 00000000..74e3bafe Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_background.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 00000000..84f1f9c8 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png new file mode 100644 index 00000000..84f1f9c8 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 00000000..028aff71 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 00000000..723242d9 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png new file mode 100644 index 00000000..9a6b22c8 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_background.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 00000000..c429e6dd Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png new file mode 100644 index 00000000..c429e6dd Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 00000000..ca0d0e00 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 00000000..d88eb6da Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png new file mode 100644 index 00000000..c64b1c57 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_background.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 00000000..0b8a4bb5 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png new file mode 100644 index 00000000..0b8a4bb5 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 00000000..7038dd26 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 00000000..013e3af4 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png new file mode 100644 index 00000000..7284ecf3 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 00000000..01433aa4 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png new file mode 100644 index 00000000..01433aa4 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..fedd5ca7 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 00000000..5c91046f Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png new file mode 100644 index 00000000..6a9d6e59 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 00000000..35d3208e Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png new file mode 100644 index 00000000..35d3208e Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 00000000..ae35ba30 Binary files /dev/null and b/dapps/Web3Inbox/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/dapps/Web3Inbox/android/app/src/main/res/values/colors.xml b/dapps/Web3Inbox/android/app/src/main/res/values/colors.xml new file mode 100644 index 00000000..8f6973e8 --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/values/colors.xml @@ -0,0 +1,3 @@ + + #C2FFF4 + diff --git a/dapps/Web3Inbox/android/app/src/main/res/values/ic_launcher_background.xml b/dapps/Web3Inbox/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 00000000..c6bc97fb --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #C2FFF4 + \ No newline at end of file diff --git a/dapps/Web3Inbox/android/app/src/main/res/values/strings.xml b/dapps/Web3Inbox/android/app/src/main/res/values/strings.xml new file mode 100644 index 00000000..c4806a3b --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Web3Inbox + diff --git a/dapps/Web3Inbox/android/app/src/main/res/values/styles.xml b/dapps/Web3Inbox/android/app/src/main/res/values/styles.xml new file mode 100644 index 00000000..1c224c6e --- /dev/null +++ b/dapps/Web3Inbox/android/app/src/main/res/values/styles.xml @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/dapps/Web3Inbox/android/build.gradle b/dapps/Web3Inbox/android/build.gradle new file mode 100644 index 00000000..df08ce1b --- /dev/null +++ b/dapps/Web3Inbox/android/build.gradle @@ -0,0 +1,22 @@ +buildscript { + ext { + buildToolsVersion = "34.0.0" + minSdkVersion = 21 + compileSdkVersion = 34 + targetSdkVersion = 34 + ndkVersion = "25.1.8937393" + kotlinVersion = "1.8.0" + } + repositories { + google() + mavenCentral() + } + dependencies { + classpath("com.android.tools.build:gradle") + classpath("com.facebook.react:react-native-gradle-plugin") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") + classpath("com.google.gms:google-services:4.4.0") + } +} + +apply plugin: "com.facebook.react.rootproject" diff --git a/dapps/Web3Inbox/android/gradle.properties b/dapps/Web3Inbox/android/gradle.properties new file mode 100644 index 00000000..a46a5b90 --- /dev/null +++ b/dapps/Web3Inbox/android/gradle.properties @@ -0,0 +1,41 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m +org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true + +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app's APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true + +# Use this property to specify which architecture you want to build. +# You can also override it from the CLI using +# ./gradlew -PreactNativeArchitectures=x86_64 +reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 + +# Use this property to enable support to the new architecture. +# This will allow you to use TurboModules and the Fabric render in +# your application. You should enable this flag either if you want +# to write custom TurboModules/Fabric components OR use libraries that +# are providing them. +newArchEnabled=false + +# Use this property to enable or disable the Hermes JS engine. +# If set to false, you will be using JSC instead. +hermesEnabled=true diff --git a/dapps/Web3Inbox/android/gradle/wrapper/gradle-wrapper.jar b/dapps/Web3Inbox/android/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 00000000..7f93135c Binary files /dev/null and b/dapps/Web3Inbox/android/gradle/wrapper/gradle-wrapper.jar differ diff --git a/dapps/Web3Inbox/android/gradle/wrapper/gradle-wrapper.properties b/dapps/Web3Inbox/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 00000000..d11cdd90 --- /dev/null +++ b/dapps/Web3Inbox/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,7 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip +networkTimeout=10000 +validateDistributionUrl=true +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/dapps/Web3Inbox/android/gradlew b/dapps/Web3Inbox/android/gradlew new file mode 100755 index 00000000..0adc8e1a --- /dev/null +++ b/dapps/Web3Inbox/android/gradlew @@ -0,0 +1,249 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +# This is normally unused +# shellcheck disable=SC2034 +APP_BASE_NAME=${0##*/} +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + if ! command -v java >/dev/null 2>&1 + then + die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. + # shellcheck disable=SC3045 + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/dapps/Web3Inbox/android/gradlew.bat b/dapps/Web3Inbox/android/gradlew.bat new file mode 100644 index 00000000..6689b85b --- /dev/null +++ b/dapps/Web3Inbox/android/gradlew.bat @@ -0,0 +1,92 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/dapps/Web3Inbox/android/settings.gradle b/dapps/Web3Inbox/android/settings.gradle new file mode 100644 index 00000000..205e2b41 --- /dev/null +++ b/dapps/Web3Inbox/android/settings.gradle @@ -0,0 +1,4 @@ +rootProject.name = 'Web3Inbox' +apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) +include ':app' +includeBuild('../node_modules/@react-native/gradle-plugin') diff --git a/dapps/Web3Inbox/app.json b/dapps/Web3Inbox/app.json new file mode 100644 index 00000000..21edeb67 --- /dev/null +++ b/dapps/Web3Inbox/app.json @@ -0,0 +1,3 @@ +{ + "name": "Web3Inbox" +} diff --git a/dapps/Web3Inbox/babel.config.js b/dapps/Web3Inbox/babel.config.js new file mode 100644 index 00000000..18ef7956 --- /dev/null +++ b/dapps/Web3Inbox/babel.config.js @@ -0,0 +1,29 @@ +module.exports = { + presets: ['module:@react-native/babel-preset'], + plugins: [ + ['module:react-native-dotenv'], + [ + 'module-resolver', + { + alias: { + crypto: 'react-native-quick-crypto', + stream: 'stream-browserify', + buffer: '@craftzdog/react-native-buffer', + '@/components': './src/components', + '@/constants': './src/constants', + '@/context': './src/context', + '@/controllers': './src/controllers', + '@/data': './src/data', + '@/hooks': './src/hooks', + '@/navigators': './src/navigators', + '@/icons': './src/icons', + '@/screens': './src/screens', + '@/modals': './src/modals', + '@/utils': './src/utils', + '@/provider': './src/provider', + '@/store': './src/store', + }, + }, + ], + ], +}; diff --git a/dapps/Web3Inbox/index.js b/dapps/Web3Inbox/index.js new file mode 100644 index 00000000..545530a0 --- /dev/null +++ b/dapps/Web3Inbox/index.js @@ -0,0 +1,142 @@ +import 'react-native-gesture-handler'; + +import {AppRegistry, Platform} from 'react-native'; +import {name as appName} from './app.json'; +import crypto from 'react-native-quick-crypto'; + +import messaging from '@react-native-firebase/messaging'; +import notifee, { + AndroidImportance, + AndroidVisibility, + EventType, +} from '@notifee/react-native'; +import {NotifyClient} from '@walletconnect/notify-client'; +import {decryptMessage} from '@walletconnect/notify-message-decrypter'; + +import App from './src/App'; + +const polyfillDigest = async (algorithm, data) => { + const algo = algorithm.replace('-', '').toLowerCase(); + const hash = crypto.createHash(algo); + hash.update(data); + return hash.digest(); +}; + +globalThis.crypto = crypto; +globalThis.crypto.subtle = { + digest: polyfillDigest, +}; + +// Create notification channel (Android only feature) +notifee.createChannel({ + id: 'default', + name: 'Default Channel', + lights: false, + vibration: true, + importance: AndroidImportance.HIGH, + visibility: AndroidVisibility.PUBLIC, +}); + +let notifyClient; + +const projectId = process.env.ENV_PROJECT_ID; + +async function registerAppWithFCM() { + // This is expected to be automatically handled on iOS. See https://rnfirebase.io/reference/messaging#registerDeviceForRemoteMessages + if (Platform.OS === 'android') { + await messaging().registerDeviceForRemoteMessages(); + } +} + +registerAppWithFCM(); + +async function registerClient(deviceToken, clientId) { + const body = JSON.stringify({ + client_id: clientId, + token: deviceToken, + type: 'fcm', + always_raw: true, + }); + + const requestOptions = { + method: 'POST', + headers: {'Content-Type': 'application/json'}, + body, + }; + + return fetch( + `https://echo.walletconnect.com/${projectId}/clients`, + requestOptions, + ) + .then(response => response.json()) + .then(result => console.log('>>> registered client', result)) + .catch(error => console.log('>>> error while registering client', error)); +} + +async function handleGetToken(token) { + const status = await messaging().requestPermission(); + const enabled = + status === messaging.AuthorizationStatus.AUTHORIZED || + status === messaging.AuthorizationStatus.PROVISIONAL; + + if (enabled) { + notifyClient = await NotifyClient.init({projectId}); + const clientId = await notifyClient.core.crypto.getClientId(); + return registerClient(token, clientId); + } +} + +messaging().getToken().then(handleGetToken); +messaging().onTokenRefresh(handleGetToken); + +async function onMessageReceived(remoteMessage) { + if (!remoteMessage.data?.blob || !remoteMessage.data?.topic) { + console.log('Missing blob or topic on notification message.'); + return; + } + + const decryptedMessage = await decryptMessage({ + topic: remoteMessage.data?.topic, + encryptedMessage: remoteMessage.data?.blob, + }); + + return notifee.displayNotification({ + title: decryptedMessage.title, + body: decryptedMessage.body, + id: 'default', + android: { + channelId: 'default', + importance: AndroidImportance.HIGH, + visibility: AndroidVisibility.PUBLIC, + smallIcon: 'ic_launcher', + pressAction: { + id: 'default', + }, + }, + }); +} + +messaging().onMessage(onMessageReceived); +messaging().setBackgroundMessageHandler(onMessageReceived); + +notifee.onBackgroundEvent(async ({type, detail}) => { + const {notification, pressAction} = detail; + + // Check if the user pressed the "Mark as read" action + if (type === EventType.ACTION_PRESS && pressAction.id === 'mark-as-read') { + // Remove the notification + await notifee.cancelNotification(notification.id); + } +}); + +function HeadlessCheck({isHeadless}) { + if (isHeadless) { + // App has been launched in the background by iOS, ignore + return null; + } + + // Render the app component on foreground launch + return ; +} + +AppRegistry.registerComponent(appName, () => HeadlessCheck); diff --git a/dapps/Web3Inbox/ios/.xcode.env b/dapps/Web3Inbox/ios/.xcode.env new file mode 100644 index 00000000..3d5782c7 --- /dev/null +++ b/dapps/Web3Inbox/ios/.xcode.env @@ -0,0 +1,11 @@ +# This `.xcode.env` file is versioned and is used to source the environment +# used when running script phases inside Xcode. +# To customize your local environment, you can create an `.xcode.env.local` +# file that is not versioned. + +# NODE_BINARY variable contains the PATH to the node executable. +# +# Customize the NODE_BINARY variable here. +# For example, to use nvm with brew, add the following line +# . "$(brew --prefix nvm)/nvm.sh" --no-use +export NODE_BINARY=$(command -v node) diff --git a/dapps/Web3Inbox/ios/Podfile b/dapps/Web3Inbox/ios/Podfile new file mode 100644 index 00000000..5d995fee --- /dev/null +++ b/dapps/Web3Inbox/ios/Podfile @@ -0,0 +1,60 @@ +# Resolve react_native_pods.rb with node to allow for hoisting +require Pod::Executable.execute_command('node', ['-p', + 'require.resolve( + "react-native/scripts/react_native_pods.rb", + {paths: [process.argv[1]]}, + )', __dir__]).strip + +platform :ios, min_ios_version_supported +prepare_react_native_project! + + +# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set. +# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded +# +# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js` +# ```js +# module.exports = { +# dependencies: { +# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}), +# ``` +# flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled + +linkage = ENV['USE_FRAMEWORKS'] +if linkage != nil + Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green + use_frameworks! :linkage => linkage.to_sym +end + +target 'Web3Inbox' do + config = use_native_modules! + + # https://rnfirebase.io/ + use_frameworks! :linkage => :static + $RNFirebaseAsStaticFramework = true + + use_react_native!( + :path => config[:reactNativePath], + # Enables Flipper. + # + # Note that if you have use_frameworks! enabled, Flipper will not work and + # you should disable the next line. + # :flipper_configuration => flipper_config, + # An absolute path to your application root. + :app_path => "#{Pod::Config.instance.installation_root}/.." + ) + + target 'Web3InboxTests' do + inherit! :complete + # Pods for testing + end + + post_install do |installer| + # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202 + react_native_post_install( + installer, + config[:reactNativePath], + :mac_catalyst_enabled => false + ) + end +end diff --git a/dapps/Web3Inbox/ios/Podfile.lock b/dapps/Web3Inbox/ios/Podfile.lock new file mode 100644 index 00000000..9ac4688b --- /dev/null +++ b/dapps/Web3Inbox/ios/Podfile.lock @@ -0,0 +1,1475 @@ +PODS: + - boost (1.83.0) + - DoubleConversion (1.1.6) + - FBLazyVector (0.73.3) + - FBReactNativeSpec (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - RCTRequired (= 0.73.3) + - RCTTypeSafety (= 0.73.3) + - React-Core (= 0.73.3) + - React-jsi (= 0.73.3) + - ReactCommon/turbomodule/core (= 0.73.3) + - Firebase/CoreOnly (10.20.0): + - FirebaseCore (= 10.20.0) + - Firebase/Messaging (10.20.0): + - Firebase/CoreOnly + - FirebaseMessaging (~> 10.20.0) + - FirebaseCore (10.20.0): + - FirebaseCoreInternal (~> 10.0) + - GoogleUtilities/Environment (~> 7.12) + - GoogleUtilities/Logger (~> 7.12) + - FirebaseCoreExtension (10.20.0): + - FirebaseCore (~> 10.0) + - FirebaseCoreInternal (10.21.0): + - "GoogleUtilities/NSData+zlib (~> 7.8)" + - FirebaseInstallations (10.21.0): + - FirebaseCore (~> 10.0) + - GoogleUtilities/Environment (~> 7.8) + - GoogleUtilities/UserDefaults (~> 7.8) + - PromisesObjC (~> 2.1) + - FirebaseMessaging (10.20.0): + - FirebaseCore (~> 10.0) + - FirebaseInstallations (~> 10.0) + - GoogleDataTransport (~> 9.3) + - GoogleUtilities/AppDelegateSwizzler (~> 7.8) + - GoogleUtilities/Environment (~> 7.8) + - GoogleUtilities/Reachability (~> 7.8) + - GoogleUtilities/UserDefaults (~> 7.8) + - nanopb (< 2.30910.0, >= 2.30908.0) + - fmt (6.2.1) + - glog (0.3.5) + - GoogleDataTransport (9.3.0): + - GoogleUtilities/Environment (~> 7.7) + - nanopb (< 2.30910.0, >= 2.30908.0) + - PromisesObjC (< 3.0, >= 1.2) + - GoogleUtilities/AppDelegateSwizzler (7.12.0): + - GoogleUtilities/Environment + - GoogleUtilities/Logger + - GoogleUtilities/Network + - GoogleUtilities/Environment (7.12.0): + - PromisesObjC (< 3.0, >= 1.2) + - GoogleUtilities/Logger (7.12.0): + - GoogleUtilities/Environment + - GoogleUtilities/Network (7.12.0): + - GoogleUtilities/Logger + - "GoogleUtilities/NSData+zlib" + - GoogleUtilities/Reachability + - "GoogleUtilities/NSData+zlib (7.12.0)" + - GoogleUtilities/Reachability (7.12.0): + - GoogleUtilities/Logger + - GoogleUtilities/UserDefaults (7.12.0): + - GoogleUtilities/Logger + - hermes-engine (0.73.3): + - hermes-engine/Pre-built (= 0.73.3) + - hermes-engine/Pre-built (0.73.3) + - libevent (2.1.12) + - nanopb (2.30909.1): + - nanopb/decode (= 2.30909.1) + - nanopb/encode (= 2.30909.1) + - nanopb/decode (2.30909.1) + - nanopb/encode (2.30909.1) + - OpenSSL-Universal (1.1.2200) + - PromisesObjC (2.3.1) + - RCT-Folly (2022.05.16.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCT-Folly/Default (= 2022.05.16.00) + - RCT-Folly/Default (2022.05.16.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCT-Folly/Fabric (2022.05.16.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - RCT-Folly/Futures (2022.05.16.00): + - boost + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - libevent + - RCTRequired (0.73.3) + - RCTTypeSafety (0.73.3): + - FBLazyVector (= 0.73.3) + - RCTRequired (= 0.73.3) + - React-Core (= 0.73.3) + - React (0.73.3): + - React-Core (= 0.73.3) + - React-Core/DevSupport (= 0.73.3) + - React-Core/RCTWebSocket (= 0.73.3) + - React-RCTActionSheet (= 0.73.3) + - React-RCTAnimation (= 0.73.3) + - React-RCTBlob (= 0.73.3) + - React-RCTImage (= 0.73.3) + - React-RCTLinking (= 0.73.3) + - React-RCTNetwork (= 0.73.3) + - React-RCTSettings (= 0.73.3) + - React-RCTText (= 0.73.3) + - React-RCTVibration (= 0.73.3) + - React-callinvoker (0.73.3) + - React-Codegen (0.73.3): + - DoubleConversion + - FBReactNativeSpec + - glog + - hermes-engine + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - React-jsi + - React-jsiexecutor + - React-NativeModulesApple + - React-rncore + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-Core (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default (= 0.73.3) + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/CoreModulesHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/Default (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/DevSupport (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default (= 0.73.3) + - React-Core/RCTWebSocket (= 0.73.3) + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-jsinspector (= 0.73.3) + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTActionSheetHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTAnimationHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTBlobHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTImageHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTLinkingHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTNetworkHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTSettingsHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTTextHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTVibrationHeaders (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-Core/RCTWebSocket (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Core/Default (= 0.73.3) + - React-cxxreact + - React-hermes + - React-jsi + - React-jsiexecutor + - React-perflogger + - React-runtimescheduler + - React-utils + - SocketRocket (= 0.6.1) + - Yoga + - React-CoreModules (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety (= 0.73.3) + - React-Codegen + - React-Core/CoreModulesHeaders (= 0.73.3) + - React-jsi (= 0.73.3) + - React-NativeModulesApple + - React-RCTBlob + - React-RCTImage (= 0.73.3) + - ReactCommon + - SocketRocket (= 0.6.1) + - React-cxxreact (0.73.3): + - boost (= 1.83.0) + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker (= 0.73.3) + - React-debug (= 0.73.3) + - React-jsi (= 0.73.3) + - React-jsinspector (= 0.73.3) + - React-logger (= 0.73.3) + - React-perflogger (= 0.73.3) + - React-runtimeexecutor (= 0.73.3) + - React-debug (0.73.3) + - React-Fabric (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/animations (= 0.73.3) + - React-Fabric/attributedstring (= 0.73.3) + - React-Fabric/componentregistry (= 0.73.3) + - React-Fabric/componentregistrynative (= 0.73.3) + - React-Fabric/components (= 0.73.3) + - React-Fabric/core (= 0.73.3) + - React-Fabric/imagemanager (= 0.73.3) + - React-Fabric/leakchecker (= 0.73.3) + - React-Fabric/mounting (= 0.73.3) + - React-Fabric/scheduler (= 0.73.3) + - React-Fabric/telemetry (= 0.73.3) + - React-Fabric/templateprocessor (= 0.73.3) + - React-Fabric/textlayoutmanager (= 0.73.3) + - React-Fabric/uimanager (= 0.73.3) + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/animations (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/attributedstring (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/componentregistry (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/componentregistrynative (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/components/inputaccessory (= 0.73.3) + - React-Fabric/components/legacyviewmanagerinterop (= 0.73.3) + - React-Fabric/components/modal (= 0.73.3) + - React-Fabric/components/rncore (= 0.73.3) + - React-Fabric/components/root (= 0.73.3) + - React-Fabric/components/safeareaview (= 0.73.3) + - React-Fabric/components/scrollview (= 0.73.3) + - React-Fabric/components/text (= 0.73.3) + - React-Fabric/components/textinput (= 0.73.3) + - React-Fabric/components/unimplementedview (= 0.73.3) + - React-Fabric/components/view (= 0.73.3) + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/inputaccessory (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/legacyviewmanagerinterop (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/modal (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/rncore (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/root (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/safeareaview (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/scrollview (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/text (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/textinput (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/unimplementedview (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/components/view (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - Yoga + - React-Fabric/core (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/imagemanager (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/leakchecker (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/mounting (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/scheduler (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/telemetry (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/templateprocessor (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/textlayoutmanager (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-Fabric/uimanager + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-Fabric/uimanager (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired + - RCTTypeSafety + - React-Core + - React-cxxreact + - React-debug + - React-graphics + - React-jsi + - React-jsiexecutor + - React-logger + - React-rendererdebug + - React-runtimescheduler + - React-utils + - ReactCommon/turbomodule/core + - React-FabricImage (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - RCTRequired (= 0.73.3) + - RCTTypeSafety (= 0.73.3) + - React-Fabric + - React-graphics + - React-ImageManager + - React-jsi + - React-jsiexecutor (= 0.73.3) + - React-logger + - React-rendererdebug + - React-utils + - ReactCommon + - Yoga + - React-graphics (0.73.3): + - glog + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-Core/Default (= 0.73.3) + - React-utils + - React-hermes (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - RCT-Folly/Futures (= 2022.05.16.00) + - React-cxxreact (= 0.73.3) + - React-jsi + - React-jsiexecutor (= 0.73.3) + - React-jsinspector (= 0.73.3) + - React-perflogger (= 0.73.3) + - React-ImageManager (0.73.3): + - glog + - RCT-Folly/Fabric + - React-Core/Default + - React-debug + - React-Fabric + - React-graphics + - React-rendererdebug + - React-utils + - React-jserrorhandler (0.73.3): + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-debug + - React-jsi + - React-Mapbuffer + - React-jsi (0.73.3): + - boost (= 1.83.0) + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-jsiexecutor (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-cxxreact (= 0.73.3) + - React-jsi (= 0.73.3) + - React-perflogger (= 0.73.3) + - React-jsinspector (0.73.3) + - React-logger (0.73.3): + - glog + - React-Mapbuffer (0.73.3): + - glog + - React-debug + - react-native-compat (2.11.2): + - glog + - RCT-Folly (= 2022.05.16.00) + - React-Core + - react-native-get-random-values (1.9.0): + - React-Core + - react-native-netinfo (9.4.1): + - React-Core + - react-native-quick-base64 (2.0.8): + - React-Core + - react-native-quick-crypto (0.6.1): + - OpenSSL-Universal + - React + - React-callinvoker + - React-Core + - react-native-safe-area-context (4.8.2): + - React-Core + - React-nativeconfig (0.73.3) + - React-NativeModulesApple (0.73.3): + - glog + - hermes-engine + - React-callinvoker + - React-Core + - React-cxxreact + - React-jsi + - React-runtimeexecutor + - ReactCommon/turbomodule/bridging + - ReactCommon/turbomodule/core + - React-perflogger (0.73.3) + - React-RCTActionSheet (0.73.3): + - React-Core/RCTActionSheetHeaders (= 0.73.3) + - React-RCTAnimation (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTAnimationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTAppDelegate (0.73.3): + - RCT-Folly + - RCTRequired + - RCTTypeSafety + - React-Core + - React-CoreModules + - React-hermes + - React-nativeconfig + - React-NativeModulesApple + - React-RCTFabric + - React-RCTImage + - React-RCTNetwork + - React-runtimescheduler + - ReactCommon + - React-RCTBlob (0.73.3): + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-Codegen + - React-Core/RCTBlobHeaders + - React-Core/RCTWebSocket + - React-jsi + - React-NativeModulesApple + - React-RCTNetwork + - ReactCommon + - React-RCTFabric (0.73.3): + - glog + - hermes-engine + - RCT-Folly/Fabric (= 2022.05.16.00) + - React-Core + - React-debug + - React-Fabric + - React-FabricImage + - React-graphics + - React-ImageManager + - React-jsi + - React-nativeconfig + - React-RCTImage + - React-RCTText + - React-rendererdebug + - React-runtimescheduler + - React-utils + - Yoga + - React-RCTImage (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTImageHeaders + - React-jsi + - React-NativeModulesApple + - React-RCTNetwork + - ReactCommon + - React-RCTLinking (0.73.3): + - React-Codegen + - React-Core/RCTLinkingHeaders (= 0.73.3) + - React-jsi (= 0.73.3) + - React-NativeModulesApple + - ReactCommon + - ReactCommon/turbomodule/core (= 0.73.3) + - React-RCTNetwork (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTNetworkHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTSettings (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - RCTTypeSafety + - React-Codegen + - React-Core/RCTSettingsHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-RCTText (0.73.3): + - React-Core/RCTTextHeaders (= 0.73.3) + - Yoga + - React-RCTVibration (0.73.3): + - RCT-Folly (= 2022.05.16.00) + - React-Codegen + - React-Core/RCTVibrationHeaders + - React-jsi + - React-NativeModulesApple + - ReactCommon + - React-rendererdebug (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - RCT-Folly (= 2022.05.16.00) + - React-debug + - React-rncore (0.73.3) + - React-runtimeexecutor (0.73.3): + - React-jsi (= 0.73.3) + - React-runtimescheduler (0.73.3): + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker + - React-cxxreact + - React-debug + - React-jsi + - React-rendererdebug + - React-runtimeexecutor + - React-utils + - React-utils (0.73.3): + - glog + - RCT-Folly (= 2022.05.16.00) + - React-debug + - ReactCommon (0.73.3): + - React-logger (= 0.73.3) + - ReactCommon/turbomodule (= 0.73.3) + - ReactCommon/turbomodule (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker (= 0.73.3) + - React-cxxreact (= 0.73.3) + - React-jsi (= 0.73.3) + - React-logger (= 0.73.3) + - React-perflogger (= 0.73.3) + - ReactCommon/turbomodule/bridging (= 0.73.3) + - ReactCommon/turbomodule/core (= 0.73.3) + - ReactCommon/turbomodule/bridging (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker (= 0.73.3) + - React-cxxreact (= 0.73.3) + - React-jsi (= 0.73.3) + - React-logger (= 0.73.3) + - React-perflogger (= 0.73.3) + - ReactCommon/turbomodule/core (0.73.3): + - DoubleConversion + - fmt (~> 6.2.1) + - glog + - hermes-engine + - RCT-Folly (= 2022.05.16.00) + - React-callinvoker (= 0.73.3) + - React-cxxreact (= 0.73.3) + - React-jsi (= 0.73.3) + - React-logger (= 0.73.3) + - React-perflogger (= 0.73.3) + - RNBootSplash (5.4.1): + - React-Core + - RNCAsyncStorage (1.19.3): + - React-Core + - RNCClipboard (1.12.1): + - React-Core + - RNCMaskedView (0.3.1): + - React-Core + - RNFBApp (18.8.0): + - Firebase/CoreOnly (= 10.20.0) + - React-Core + - RNFBMessaging (18.8.0): + - Firebase/Messaging (= 10.20.0) + - FirebaseCoreExtension (= 10.20.0) + - React-Core + - RNFBApp + - RNGestureHandler (2.14.1): + - glog + - RCT-Folly (= 2022.05.16.00) + - React-Core + - RNNotifee (7.8.2): + - React-Core + - RNNotifee/NotifeeCore (= 7.8.2) + - RNNotifee/NotifeeCore (7.8.2): + - React-Core + - RNScreens (3.29.0): + - glog + - RCT-Folly (= 2022.05.16.00) + - React-Core + - RNSentry (5.12.0): + - React-Core + - Sentry/HybridSDK (= 8.14.2) + - RNSVG (13.14.0): + - React-Core + - Sentry/HybridSDK (8.14.2): + - SentryPrivate (= 8.14.2) + - SentryPrivate (8.14.2) + - SocketRocket (0.6.1) + - Yoga (1.14.0) + +DEPENDENCIES: + - boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`) + - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) + - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) + - FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`) + - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) + - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) + - libevent (~> 2.1.12) + - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCT-Folly/Fabric (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) + - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) + - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) + - React (from `../node_modules/react-native/`) + - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) + - React-Codegen (from `build/generated/ios`) + - React-Core (from `../node_modules/react-native/`) + - React-Core/RCTWebSocket (from `../node_modules/react-native/`) + - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) + - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) + - React-debug (from `../node_modules/react-native/ReactCommon/react/debug`) + - React-Fabric (from `../node_modules/react-native/ReactCommon`) + - React-FabricImage (from `../node_modules/react-native/ReactCommon`) + - React-graphics (from `../node_modules/react-native/ReactCommon/react/renderer/graphics`) + - React-hermes (from `../node_modules/react-native/ReactCommon/hermes`) + - React-ImageManager (from `../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios`) + - React-jserrorhandler (from `../node_modules/react-native/ReactCommon/jserrorhandler`) + - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) + - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) + - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`) + - React-logger (from `../node_modules/react-native/ReactCommon/logger`) + - React-Mapbuffer (from `../node_modules/react-native/ReactCommon`) + - "react-native-compat (from `../node_modules/@walletconnect/react-native-compat`)" + - react-native-get-random-values (from `../node_modules/react-native-get-random-values`) + - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)" + - react-native-quick-base64 (from `../node_modules/react-native-quick-base64`) + - react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`) + - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) + - React-nativeconfig (from `../node_modules/react-native/ReactCommon`) + - React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`) + - React-perflogger (from `../node_modules/react-native/ReactCommon/reactperflogger`) + - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) + - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) + - React-RCTAppDelegate (from `../node_modules/react-native/Libraries/AppDelegate`) + - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) + - React-RCTFabric (from `../node_modules/react-native/React`) + - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) + - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) + - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) + - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) + - React-RCTText (from `../node_modules/react-native/Libraries/Text`) + - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) + - React-rendererdebug (from `../node_modules/react-native/ReactCommon/react/renderer/debug`) + - React-rncore (from `../node_modules/react-native/ReactCommon`) + - React-runtimeexecutor (from `../node_modules/react-native/ReactCommon/runtimeexecutor`) + - React-runtimescheduler (from `../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler`) + - React-utils (from `../node_modules/react-native/ReactCommon/react/utils`) + - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) + - RNBootSplash (from `../node_modules/react-native-bootsplash`) + - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)" + - "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)" + - "RNCMaskedView (from `../node_modules/@react-native-masked-view/masked-view`)" + - "RNFBApp (from `../node_modules/@react-native-firebase/app`)" + - "RNFBMessaging (from `../node_modules/@react-native-firebase/messaging`)" + - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) + - "RNNotifee (from `../node_modules/@notifee/react-native`)" + - RNScreens (from `../node_modules/react-native-screens`) + - "RNSentry (from `../node_modules/@sentry/react-native`)" + - RNSVG (from `../node_modules/react-native-svg`) + - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) + +SPEC REPOS: + trunk: + - Firebase + - FirebaseCore + - FirebaseCoreExtension + - FirebaseCoreInternal + - FirebaseInstallations + - FirebaseMessaging + - fmt + - GoogleDataTransport + - GoogleUtilities + - libevent + - nanopb + - OpenSSL-Universal + - PromisesObjC + - Sentry + - SentryPrivate + - SocketRocket + +EXTERNAL SOURCES: + boost: + :podspec: "../node_modules/react-native/third-party-podspecs/boost.podspec" + DoubleConversion: + :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" + FBLazyVector: + :path: "../node_modules/react-native/Libraries/FBLazyVector" + FBReactNativeSpec: + :path: "../node_modules/react-native/React/FBReactNativeSpec" + glog: + :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" + hermes-engine: + :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" + :tag: hermes-2023-11-17-RNv0.73.0-21043a3fc062be445e56a2c10ecd8be028dd9cc5 + RCT-Folly: + :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" + RCTRequired: + :path: "../node_modules/react-native/Libraries/RCTRequired" + RCTTypeSafety: + :path: "../node_modules/react-native/Libraries/TypeSafety" + React: + :path: "../node_modules/react-native/" + React-callinvoker: + :path: "../node_modules/react-native/ReactCommon/callinvoker" + React-Codegen: + :path: build/generated/ios + React-Core: + :path: "../node_modules/react-native/" + React-CoreModules: + :path: "../node_modules/react-native/React/CoreModules" + React-cxxreact: + :path: "../node_modules/react-native/ReactCommon/cxxreact" + React-debug: + :path: "../node_modules/react-native/ReactCommon/react/debug" + React-Fabric: + :path: "../node_modules/react-native/ReactCommon" + React-FabricImage: + :path: "../node_modules/react-native/ReactCommon" + React-graphics: + :path: "../node_modules/react-native/ReactCommon/react/renderer/graphics" + React-hermes: + :path: "../node_modules/react-native/ReactCommon/hermes" + React-ImageManager: + :path: "../node_modules/react-native/ReactCommon/react/renderer/imagemanager/platform/ios" + React-jserrorhandler: + :path: "../node_modules/react-native/ReactCommon/jserrorhandler" + React-jsi: + :path: "../node_modules/react-native/ReactCommon/jsi" + React-jsiexecutor: + :path: "../node_modules/react-native/ReactCommon/jsiexecutor" + React-jsinspector: + :path: "../node_modules/react-native/ReactCommon/jsinspector-modern" + React-logger: + :path: "../node_modules/react-native/ReactCommon/logger" + React-Mapbuffer: + :path: "../node_modules/react-native/ReactCommon" + react-native-compat: + :path: "../node_modules/@walletconnect/react-native-compat" + react-native-get-random-values: + :path: "../node_modules/react-native-get-random-values" + react-native-netinfo: + :path: "../node_modules/@react-native-community/netinfo" + react-native-quick-base64: + :path: "../node_modules/react-native-quick-base64" + react-native-quick-crypto: + :path: "../node_modules/react-native-quick-crypto" + react-native-safe-area-context: + :path: "../node_modules/react-native-safe-area-context" + React-nativeconfig: + :path: "../node_modules/react-native/ReactCommon" + React-NativeModulesApple: + :path: "../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios" + React-perflogger: + :path: "../node_modules/react-native/ReactCommon/reactperflogger" + React-RCTActionSheet: + :path: "../node_modules/react-native/Libraries/ActionSheetIOS" + React-RCTAnimation: + :path: "../node_modules/react-native/Libraries/NativeAnimation" + React-RCTAppDelegate: + :path: "../node_modules/react-native/Libraries/AppDelegate" + React-RCTBlob: + :path: "../node_modules/react-native/Libraries/Blob" + React-RCTFabric: + :path: "../node_modules/react-native/React" + React-RCTImage: + :path: "../node_modules/react-native/Libraries/Image" + React-RCTLinking: + :path: "../node_modules/react-native/Libraries/LinkingIOS" + React-RCTNetwork: + :path: "../node_modules/react-native/Libraries/Network" + React-RCTSettings: + :path: "../node_modules/react-native/Libraries/Settings" + React-RCTText: + :path: "../node_modules/react-native/Libraries/Text" + React-RCTVibration: + :path: "../node_modules/react-native/Libraries/Vibration" + React-rendererdebug: + :path: "../node_modules/react-native/ReactCommon/react/renderer/debug" + React-rncore: + :path: "../node_modules/react-native/ReactCommon" + React-runtimeexecutor: + :path: "../node_modules/react-native/ReactCommon/runtimeexecutor" + React-runtimescheduler: + :path: "../node_modules/react-native/ReactCommon/react/renderer/runtimescheduler" + React-utils: + :path: "../node_modules/react-native/ReactCommon/react/utils" + ReactCommon: + :path: "../node_modules/react-native/ReactCommon" + RNBootSplash: + :path: "../node_modules/react-native-bootsplash" + RNCAsyncStorage: + :path: "../node_modules/@react-native-async-storage/async-storage" + RNCClipboard: + :path: "../node_modules/@react-native-clipboard/clipboard" + RNCMaskedView: + :path: "../node_modules/@react-native-masked-view/masked-view" + RNFBApp: + :path: "../node_modules/@react-native-firebase/app" + RNFBMessaging: + :path: "../node_modules/@react-native-firebase/messaging" + RNGestureHandler: + :path: "../node_modules/react-native-gesture-handler" + RNNotifee: + :path: "../node_modules/@notifee/react-native" + RNScreens: + :path: "../node_modules/react-native-screens" + RNSentry: + :path: "../node_modules/@sentry/react-native" + RNSVG: + :path: "../node_modules/react-native-svg" + Yoga: + :path: "../node_modules/react-native/ReactCommon/yoga" + +SPEC CHECKSUMS: + boost: d3f49c53809116a5d38da093a8aa78bf551aed09 + DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953 + FBLazyVector: 70590b4f9e8ae9b0ce076efacea3abd7bc585ace + FBReactNativeSpec: e47ea8c8f044c25e41a4fa5e8b7ff3923d3e0a94 + Firebase: 10c8cb12fb7ad2ae0c09ffc86cd9c1ab392a0031 + FirebaseCore: 28045c1560a2600d284b9c45a904fe322dc890b6 + FirebaseCoreExtension: 0659f035b88c5a7a15a9763c48c2e6ca8c0a2977 + FirebaseCoreInternal: 43c1788eaeee9d1b97caaa751af567ce11010d00 + FirebaseInstallations: 390ea1d10a4d02b20c965cbfd527ee9b3b412acb + FirebaseMessaging: 06c414a21b122396a26847c523d5c370f8325df5 + fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 + glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2 + GoogleDataTransport: 57c22343ab29bc686febbf7cbb13bad167c2d8fe + GoogleUtilities: 0759d1a57ebb953965c2dfe0ba4c82e95ccc2e34 + hermes-engine: 5420539d016f368cd27e008f65f777abd6098c56 + libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 + nanopb: d4d75c12cd1316f4a64e3c6963f879ecd4b5e0d5 + OpenSSL-Universal: 6e1ae0555546e604dbc632a2b9a24a9c46c41ef6 + PromisesObjC: c50d2056b5253dadbd6c2bea79b0674bd5a52fa4 + RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0 + RCTRequired: 9b898847f76977a6dfed2a08f4c5ed37add75ec0 + RCTTypeSafety: 0debdc4ba38c8138016d8d8ada4bdf9ec1b8aa82 + React: f8afb04431634ac7e9b876dc96d30af9871f5946 + React-callinvoker: 5ea86c3f93326867aa5114989d229db54d4759d0 + React-Codegen: 0bf0f6934bc76ee750931467d2e3c5687e972560 + React-Core: bbac074eba495788a01d1e5455b132872bf86843 + React-CoreModules: 92fee6d8f4095e151b9678e44fcf0dc8eabeae37 + React-cxxreact: e856e0370bf52aea71acce10007ad9ba6a63b66c + React-debug: c72219d497f675d547ce34cdc733e7e8fe2a5da3 + React-Fabric: 59afb9db1a31cb7864196fa46bea99ab0033e0b1 + React-FabricImage: 0ee33904487bbf1b96be2391195a059bbd416ead + React-graphics: 72181d50d637d5b982b6b8b8443390c84ca5147f + React-hermes: ac421eebea18bab58a57b70c590b7c11edaac00b + React-ImageManager: c9486ee6349a68aaa0d946ba65149590593bbd15 + React-jserrorhandler: cbc83431c5f91521e4b75efb0b687168080781ee + React-jsi: 57498df51dfb8a37a996f470a457d8797e931eaa + React-jsiexecutor: d83a7d7aea2ffc60dbda0f3d523578a76820f0e1 + React-jsinspector: 6fad0fe14882fb6b1c32e5cc8a4bd3d33a8b6790 + React-logger: cb0dd15ac67b00e7b771ef15203edcb29d4a3f8e + React-Mapbuffer: ac7eff7bcdb1716d18eb7b305ee8c43a9a1ed7c8 + react-native-compat: 03b2ba5851371e527c727dc6179ba97b48473e18 + react-native-get-random-values: dee677497c6a740b71e5612e8dbd83e7539ed5bb + react-native-netinfo: fefd4e98d75cbdd6e85fc530f7111a8afdf2b0c5 + react-native-quick-base64: 777057ea4286f806b00259ede65dc79c7c706320 + react-native-quick-crypto: 455c1b411db006dba1026a30681ececb19180187 + react-native-safe-area-context: 0ee144a6170530ccc37a0fd9388e28d06f516a89 + React-nativeconfig: 4662ac75a0a77789c9ed896ed77baa1a25cdf006 + React-NativeModulesApple: 92bc296f2ae166d10cb4d6a05498c80bf4ef9fa2 + React-perflogger: 27ccacf853ba725524ef2b4e444f14e34d0837b0 + React-RCTActionSheet: 77dd6a2a5cfab9e85b7f1add0f7e2e9cd697d936 + React-RCTAnimation: 977a25a4e8007ecc90e556abcceb1b25602eea7c + React-RCTAppDelegate: 252a478047dbc9d0ac0dcda7440b4d3fbb6184a4 + React-RCTBlob: 1e18ab09f57cf3bd2b9681cbeedfca866d971f50 + React-RCTFabric: e52f9be153856408a06475bc90e97be0ba5a00b5 + React-RCTImage: b1eac9526111cf7e37c304f94e81b76a5ae6a984 + React-RCTLinking: d7f7dc665af6442ff38e18e34308da7865347bb1 + React-RCTNetwork: c2c1df3a3c838e9547259e3638f6b290aebb3b72 + React-RCTSettings: f3074b14047a57fa95499c28fb89028a894d3c18 + React-RCTText: 9d48b2bbce5e1ed9c4d9514414dc6d99731d1b0a + React-RCTVibration: 394ea84082b08b5b3c211dc2bc9c0c4c163e7f23 + React-rendererdebug: 5fb3c0f487cf77a9c87e6f8c3db21b996b669571 + React-rncore: b0c74232b928abb85635fe9d4fbc2d8aba2cdf13 + React-runtimeexecutor: 7e71a40def8262ef7d82a1145d873ea61b1a27b5 + React-runtimescheduler: 06b3f2e3b3b6e9deb1fc63b543c7fd34177dbb07 + React-utils: 2d25ca0a6e635c095bc5e67ac1202c7939ec4af3 + ReactCommon: 8564d71cf76b1715740cb8bdc5b382d1ddd12dd1 + RNBootSplash: eff8239c4f795ce42a0604873aef3733aac0dedd + RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb + RNCClipboard: d77213bfa269013bf4b857b7a9ca37ee062d8ef1 + RNCMaskedView: 090213d32d8b3bb83a4dcb7d12c18f0152591906 + RNFBApp: a4f5b074984cf612e4c97d68b42be690c59e2638 + RNFBMessaging: 1e7415390ae579c5949505a0709686a2de8a47e5 + RNGestureHandler: 28bdf9a766c081e603120f79e925b72817c751c6 + RNNotifee: 8e2d3df3f0e9ce8f5d1fe4c967431138190b6175 + RNScreens: 2b73f5eb2ac5d94fbd61fa4be0bfebd345716825 + RNSentry: 22ec5cbcdfffeea7fae88695467a3af5f8d94790 + RNSVG: d00c8f91c3cbf6d476451313a18f04d220d4f396 + Sentry: e0ea366f95ebb68f26d6030d8c22d6b2e6d23dd0 + SentryPrivate: 949a21fa59872427edc73b524c3ec8456761d97f + SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 + Yoga: ff0382b894475dba0b4d2a5fda860bfee5a9afad + +PODFILE CHECKSUM: 256e5fbc2cc4b7588e424d10210e83148ca3369d + +COCOAPODS: 1.14.3 diff --git a/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/project.pbxproj b/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/project.pbxproj new file mode 100644 index 00000000..2d936a14 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/project.pbxproj @@ -0,0 +1,762 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 00E356F31AD99517003FC87E /* Web3InboxTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* Web3InboxTests.m */; }; + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; + 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; + BA0C2E4E353A4E4BADBBC704 /* BootSplash.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 31EE81F5324248C488EA504C /* BootSplash.storyboard */; }; + BBCE54838D716C18290EA3C8 /* Pods_Web3Inbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DA542AD001807DF6BF457E8E /* Pods_Web3Inbox.framework */; }; + BCCEEDD92B70F47200EE819E /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = BCCEEDD82B70F47200EE819E /* GoogleService-Info.plist */; }; + D8777962CE734FF3A6F9E5FC /* Pods_Web3Inbox_Web3InboxTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1E275339015F69C8D61F0C9E /* Pods_Web3Inbox_Web3InboxTests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 13B07F861A680F5B00A75B9A; + remoteInfo = Web3Inbox; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 00E356EE1AD99517003FC87E /* Web3InboxTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Web3InboxTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 00E356F21AD99517003FC87E /* Web3InboxTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Web3InboxTests.m; sourceTree = ""; }; + 0EFA00EFD3D4EC988494A9AB /* Pods-Web3Inbox.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Web3Inbox.release.xcconfig"; path = "Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox.release.xcconfig"; sourceTree = ""; }; + 13B07F961A680F5B00A75B9A /* Web3Inbox.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Web3Inbox.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Web3Inbox/AppDelegate.h; sourceTree = ""; }; + 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = Web3Inbox/AppDelegate.mm; sourceTree = ""; }; + 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Web3Inbox/Images.xcassets; sourceTree = ""; }; + 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Web3Inbox/Info.plist; sourceTree = ""; }; + 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Web3Inbox/main.m; sourceTree = ""; }; + 1E275339015F69C8D61F0C9E /* Pods_Web3Inbox_Web3InboxTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Web3Inbox_Web3InboxTests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 31EE81F5324248C488EA504C /* BootSplash.storyboard */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = BootSplash.storyboard; path = Web3Inbox/BootSplash.storyboard; sourceTree = ""; }; + 865F66FC2089AE404CD2EA12 /* Pods-Web3Inbox-Web3InboxTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Web3Inbox-Web3InboxTests.release.xcconfig"; path = "Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests.release.xcconfig"; sourceTree = ""; }; + BCCE3E172B70E94900EE819E /* Web3Inbox.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; name = Web3Inbox.entitlements; path = Web3Inbox/Web3Inbox.entitlements; sourceTree = ""; }; + BCCEEDD82B70F47200EE819E /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = ""; }; + DA542AD001807DF6BF457E8E /* Pods_Web3Inbox.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Web3Inbox.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + EA0572C13DA08E2F28E2FEB7 /* Pods-Web3Inbox.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Web3Inbox.debug.xcconfig"; path = "Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox.debug.xcconfig"; sourceTree = ""; }; + ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; + FA22170735791C8DC3CB686C /* Pods-Web3Inbox-Web3InboxTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Web3Inbox-Web3InboxTests.debug.xcconfig"; path = "Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 00E356EB1AD99517003FC87E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + D8777962CE734FF3A6F9E5FC /* Pods_Web3Inbox_Web3InboxTests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + BBCE54838D716C18290EA3C8 /* Pods_Web3Inbox.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 00E356EF1AD99517003FC87E /* Web3InboxTests */ = { + isa = PBXGroup; + children = ( + 00E356F21AD99517003FC87E /* Web3InboxTests.m */, + 00E356F01AD99517003FC87E /* Supporting Files */, + ); + path = Web3InboxTests; + sourceTree = ""; + }; + 00E356F01AD99517003FC87E /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 00E356F11AD99517003FC87E /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 13B07FAE1A68108700A75B9A /* Web3Inbox */ = { + isa = PBXGroup; + children = ( + BCCE3E172B70E94900EE819E /* Web3Inbox.entitlements */, + 13B07FAF1A68108700A75B9A /* AppDelegate.h */, + 13B07FB01A68108700A75B9A /* AppDelegate.mm */, + 13B07FB51A68108700A75B9A /* Images.xcassets */, + 13B07FB61A68108700A75B9A /* Info.plist */, + 13B07FB71A68108700A75B9A /* main.m */, + 31EE81F5324248C488EA504C /* BootSplash.storyboard */, + ); + name = Web3Inbox; + sourceTree = ""; + }; + 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { + isa = PBXGroup; + children = ( + ED297162215061F000B7C4FE /* JavaScriptCore.framework */, + DA542AD001807DF6BF457E8E /* Pods_Web3Inbox.framework */, + 1E275339015F69C8D61F0C9E /* Pods_Web3Inbox_Web3InboxTests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 832341AE1AAA6A7D00B99B32 /* Libraries */ = { + isa = PBXGroup; + children = ( + ); + name = Libraries; + sourceTree = ""; + }; + 83CBB9F61A601CBA00E9B192 = { + isa = PBXGroup; + children = ( + BCCEEDD82B70F47200EE819E /* GoogleService-Info.plist */, + 13B07FAE1A68108700A75B9A /* Web3Inbox */, + 832341AE1AAA6A7D00B99B32 /* Libraries */, + 00E356EF1AD99517003FC87E /* Web3InboxTests */, + 83CBBA001A601CBA00E9B192 /* Products */, + 2D16E6871FA4F8E400B85C8A /* Frameworks */, + BBD78D7AC51CEA395F1C20DB /* Pods */, + ); + indentWidth = 2; + sourceTree = ""; + tabWidth = 2; + usesTabs = 0; + }; + 83CBBA001A601CBA00E9B192 /* Products */ = { + isa = PBXGroup; + children = ( + 13B07F961A680F5B00A75B9A /* Web3Inbox.app */, + 00E356EE1AD99517003FC87E /* Web3InboxTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + BBD78D7AC51CEA395F1C20DB /* Pods */ = { + isa = PBXGroup; + children = ( + EA0572C13DA08E2F28E2FEB7 /* Pods-Web3Inbox.debug.xcconfig */, + 0EFA00EFD3D4EC988494A9AB /* Pods-Web3Inbox.release.xcconfig */, + FA22170735791C8DC3CB686C /* Pods-Web3Inbox-Web3InboxTests.debug.xcconfig */, + 865F66FC2089AE404CD2EA12 /* Pods-Web3Inbox-Web3InboxTests.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 00E356ED1AD99517003FC87E /* Web3InboxTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "Web3InboxTests" */; + buildPhases = ( + AA6F45683C16D21278A4D81D /* [CP] Check Pods Manifest.lock */, + 00E356EA1AD99517003FC87E /* Sources */, + 00E356EB1AD99517003FC87E /* Frameworks */, + 00E356EC1AD99517003FC87E /* Resources */, + 08703E30D6FCCED76205DDDC /* [CP] Embed Pods Frameworks */, + 0DFD725D67AE2D4DA1A99A75 /* [CP] Copy Pods Resources */, + ); + buildRules = ( + ); + dependencies = ( + 00E356F51AD99517003FC87E /* PBXTargetDependency */, + ); + name = Web3InboxTests; + productName = Web3InboxTests; + productReference = 00E356EE1AD99517003FC87E /* Web3InboxTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 13B07F861A680F5B00A75B9A /* Web3Inbox */ = { + isa = PBXNativeTarget; + buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Web3Inbox" */; + buildPhases = ( + 701499D04AC8E46628B2E25B /* [CP] Check Pods Manifest.lock */, + 13B07F871A680F5B00A75B9A /* Sources */, + 13B07F8C1A680F5B00A75B9A /* Frameworks */, + 13B07F8E1A680F5B00A75B9A /* Resources */, + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, + 0986008FAB2424BA1D5FF12E /* [CP] Embed Pods Frameworks */, + F7823EBA312E2B19197A9542 /* [CP] Copy Pods Resources */, + 9ED7C90E666A8686520DA486 /* [CP-User] [RNFB] Core Configuration */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Web3Inbox; + productName = Web3Inbox; + productReference = 13B07F961A680F5B00A75B9A /* Web3Inbox.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 83CBB9F71A601CBA00E9B192 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1210; + TargetAttributes = { + 00E356ED1AD99517003FC87E = { + CreatedOnToolsVersion = 6.2; + TestTargetID = 13B07F861A680F5B00A75B9A; + }; + 13B07F861A680F5B00A75B9A = { + LastSwiftMigration = 1120; + }; + }; + }; + buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Web3Inbox" */; + compatibilityVersion = "Xcode 12.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 83CBB9F61A601CBA00E9B192; + productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 13B07F861A680F5B00A75B9A /* Web3Inbox */, + 00E356ED1AD99517003FC87E /* Web3InboxTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 00E356EC1AD99517003FC87E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 13B07F8E1A680F5B00A75B9A /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, + BCCEEDD92B70F47200EE819E /* GoogleService-Info.plist in Resources */, + BA0C2E4E353A4E4BADBBC704 /* BootSplash.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "$(SRCROOT)/.xcode.env.local", + "$(SRCROOT)/.xcode.env", + ); + name = "Bundle React Native code and images"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; + }; + 08703E30D6FCCED76205DDDC /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 0986008FAB2424BA1D5FF12E /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 0DFD725D67AE2D4DA1A99A75 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Web3Inbox-Web3InboxTests/Pods-Web3Inbox-Web3InboxTests-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; + 701499D04AC8E46628B2E25B /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Web3Inbox-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 9ED7C90E666A8686520DA486 /* [CP-User] [RNFB] Core Configuration */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)", + ); + name = "[CP-User] [RNFB] Core Configuration"; + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\n_MAX_LOOKUPS=2;\n_SEARCH_RESULT=''\n_RN_ROOT_EXISTS=''\n_CURRENT_LOOKUPS=1\n_JSON_ROOT=\"'react-native'\"\n_JSON_FILE_NAME='firebase.json'\n_JSON_OUTPUT_BASE64='e30=' # { }\n_CURRENT_SEARCH_DIR=${PROJECT_DIR}\n_PLIST_BUDDY=/usr/libexec/PlistBuddy\n_TARGET_PLIST=\"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n_DSYM_PLIST=\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist\"\n\n# plist arrays\n_PLIST_ENTRY_KEYS=()\n_PLIST_ENTRY_TYPES=()\n_PLIST_ENTRY_VALUES=()\n\nfunction setPlistValue {\n echo \"info: setting plist entry '$1' of type '$2' in file '$4'\"\n ${_PLIST_BUDDY} -c \"Add :$1 $2 '$3'\" $4 || echo \"info: '$1' already exists\"\n}\n\nfunction getFirebaseJsonKeyValue () {\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n ruby -Ku -e \"require 'rubygems';require 'json'; output=JSON.parse('$1'); puts output[$_JSON_ROOT]['$2']\"\n else\n echo \"\"\n fi;\n}\n\nfunction jsonBoolToYesNo () {\n if [[ $1 == \"false\" ]]; then\n echo \"NO\"\n elif [[ $1 == \"true\" ]]; then\n echo \"YES\"\n else echo \"NO\"\n fi\n}\n\necho \"info: -> RNFB build script started\"\necho \"info: 1) Locating ${_JSON_FILE_NAME} file:\"\n\nif [[ -z ${_CURRENT_SEARCH_DIR} ]]; then\n _CURRENT_SEARCH_DIR=$(pwd)\nfi;\n\nwhile true; do\n _CURRENT_SEARCH_DIR=$(dirname \"$_CURRENT_SEARCH_DIR\")\n if [[ \"$_CURRENT_SEARCH_DIR\" == \"/\" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;\n echo \"info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file.\"\n _SEARCH_RESULT=$(find \"$_CURRENT_SEARCH_DIR\" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)\n if [[ ${_SEARCH_RESULT} ]]; then\n echo \"info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT\"\n break;\n fi;\n _CURRENT_LOOKUPS=$((_CURRENT_LOOKUPS+1))\ndone\n\nif [[ ${_SEARCH_RESULT} ]]; then\n _JSON_OUTPUT_RAW=$(cat \"${_SEARCH_RESULT}\")\n _RN_ROOT_EXISTS=$(ruby -Ku -e \"require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]\" || echo '')\n\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n if ! python3 --version >/dev/null 2>&1; then echo \"python3 not found, firebase.json file processing error.\" && exit 1; fi\n _JSON_OUTPUT_BASE64=$(python3 -c 'import json,sys,base64;print(base64.b64encode(bytes(json.dumps(json.loads(open('\"'${_SEARCH_RESULT}'\"', '\"'rb'\"').read())['${_JSON_ROOT}']), '\"'utf-8'\"')).decode())' || echo \"e30=\")\n fi\n\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n\n # config.app_data_collection_default_enabled\n _APP_DATA_COLLECTION_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_data_collection_default_enabled\")\n if [[ $_APP_DATA_COLLECTION_ENABLED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseDataCollectionDefaultEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_DATA_COLLECTION_ENABLED\")\")\n fi\n\n # config.analytics_auto_collection_enabled\n _ANALYTICS_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_auto_collection_enabled\")\n if [[ $_ANALYTICS_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_COLLECTION\")\")\n fi\n\n # config.analytics_collection_deactivated\n _ANALYTICS_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_collection_deactivated\")\n if [[ $_ANALYTICS_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_DEACTIVATED\")\")\n fi\n\n # config.analytics_idfv_collection_enabled\n _ANALYTICS_IDFV_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_idfv_collection_enabled\")\n if [[ $_ANALYTICS_IDFV_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_IDFV_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_IDFV_COLLECTION\")\")\n fi\n\n # config.analytics_default_allow_ad_personalization_signals\n _ANALYTICS_PERSONALIZATION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_personalization_signals\")\n if [[ $_ANALYTICS_PERSONALIZATION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_PERSONALIZATION\")\")\n fi\n\n # config.analytics_registration_with_ad_network_enabled\n _ANALYTICS_REGISTRATION_WITH_AD_NETWORK=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"google_analytics_registration_with_ad_network_enabled\")\n if [[ $_ANALYTICS_REGISTRATION_WITH_AD_NETWORK ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_REGISTRATION_WITH_AD_NETWORK_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_REGISTRATION_WITH_AD_NETWORK\")\")\n fi\n\n # config.google_analytics_automatic_screen_reporting_enabled\n _ANALYTICS_AUTO_SCREEN_REPORTING=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"google_analytics_automatic_screen_reporting_enabled\")\n if [[ $_ANALYTICS_AUTO_SCREEN_REPORTING ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAutomaticScreenReportingEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_SCREEN_REPORTING\")\")\n fi\n\n # config.perf_auto_collection_enabled\n _PERF_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_auto_collection_enabled\")\n if [[ $_PERF_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_enabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_AUTO_COLLECTION\")\")\n fi\n\n # config.perf_collection_deactivated\n _PERF_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_collection_deactivated\")\n if [[ $_PERF_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_deactivated\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_DEACTIVATED\")\")\n fi\n\n # config.messaging_auto_init_enabled\n _MESSAGING_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"messaging_auto_init_enabled\")\n if [[ $_MESSAGING_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseMessagingAutoInitEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_MESSAGING_AUTO_INIT\")\")\n fi\n\n # config.in_app_messaging_auto_colllection_enabled\n _FIAM_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"in_app_messaging_auto_collection_enabled\")\n if [[ $_FIAM_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseInAppMessagingAutomaticDataCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_FIAM_AUTO_INIT\")\")\n fi\n\n # config.app_check_token_auto_refresh\n _APP_CHECK_TOKEN_AUTO_REFRESH=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_check_token_auto_refresh\")\n if [[ $_APP_CHECK_TOKEN_AUTO_REFRESH ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAppCheckTokenAutoRefreshEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_CHECK_TOKEN_AUTO_REFRESH\")\")\n fi\n\n # config.crashlytics_disable_auto_disabler - undocumented for now - mainly for debugging, document if becomes useful\n _CRASHLYTICS_AUTO_DISABLE_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"crashlytics_disable_auto_disabler\")\n if [[ $_CRASHLYTICS_AUTO_DISABLE_ENABLED == \"true\" ]]; then\n echo \"Disabled Crashlytics auto disabler.\" # do nothing\n else\n _PLIST_ENTRY_KEYS+=(\"FirebaseCrashlyticsCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"NO\")\n fi\nelse\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n echo \"warning: A firebase.json file was not found, whilst this file is optional it is recommended to include it to configure firebase services in React Native Firebase.\"\nfi;\n\necho \"info: 2) Injecting Info.plist entries: \"\n\n# Log out the keys we're adding\nfor i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n echo \" -> $i) ${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\"\ndone\n\nfor plist in \"${_TARGET_PLIST}\" \"${_DSYM_PLIST}\" ; do\n if [[ -f \"${plist}\" ]]; then\n\n # paths with spaces break the call to setPlistValue. temporarily modify\n # the shell internal field separator variable (IFS), which normally\n # includes spaces, to consist only of line breaks\n oldifs=$IFS\n IFS=\"\n\"\n\n for i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n setPlistValue \"${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\" \"${plist}\"\n done\n\n # restore the original internal field separator value\n IFS=$oldifs\n else\n echo \"warning: A Info.plist build output file was not found (${plist})\"\n fi\ndone\n\necho \"info: <- RNFB build script finished\"\n"; + }; + AA6F45683C16D21278A4D81D /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Web3Inbox-Web3InboxTests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + F7823EBA312E2B19197A9542 /* [CP] Copy Pods Resources */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox-resources-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Copy Pods Resources"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox-resources-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Web3Inbox/Pods-Web3Inbox-resources.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 00E356EA1AD99517003FC87E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 00E356F31AD99517003FC87E /* Web3InboxTests.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 13B07F871A680F5B00A75B9A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, + 13B07FC11A68108700A75B9A /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 13B07F861A680F5B00A75B9A /* Web3Inbox */; + targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 00E356F61AD99517003FC87E /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA22170735791C8DC3CB686C /* Pods-Web3Inbox-Web3InboxTests.debug.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = Web3InboxTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + OTHER_LDFLAGS = ( + "-ObjC", + "-lc++", + "$(inherited)", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.walletconnect.web3inbox; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Web3Inbox.app/Web3Inbox"; + }; + name = Debug; + }; + 00E356F71AD99517003FC87E /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 865F66FC2089AE404CD2EA12 /* Pods-Web3Inbox-Web3InboxTests.release.xcconfig */; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + COPY_PHASE_STRIP = NO; + INFOPLIST_FILE = Web3InboxTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + OTHER_LDFLAGS = ( + "-ObjC", + "-lc++", + "$(inherited)", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.walletconnect.web3inbox; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Web3Inbox.app/Web3Inbox"; + }; + name = Release; + }; + 13B07F941A680F5B00A75B9A /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = EA0572C13DA08E2F28E2FEB7 /* Pods-Web3Inbox.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Web3Inbox/Web3Inbox.entitlements; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = W5R8AG9K22; + ENABLE_BITCODE = NO; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Pods/hermes-engine/destroot/Library/Frameworks/macosx", + ); + INFOPLIST_FILE = Web3Inbox/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = Web3Inbox; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.walletconnect.web3inbox; + PRODUCT_NAME = Web3Inbox; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 13B07F951A680F5B00A75B9A /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 0EFA00EFD3D4EC988494A9AB /* Pods-Web3Inbox.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Web3Inbox/Web3Inbox.entitlements; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = W5R8AG9K22; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(PROJECT_DIR)/Pods/hermes-engine/destroot/Library/Frameworks/macosx", + ); + INFOPLIST_FILE = Web3Inbox/Info.plist; + INFOPLIST_KEY_CFBundleDisplayName = Web3Inbox; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "$(inherited)", + "-ObjC", + "-lc++", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.walletconnect.web3inbox; + PRODUCT_NAME = Web3Inbox; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; + SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = 1; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; + 83CBBA201A601CBA00E9B192 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx", + "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios", + ); + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); + LIBRARY_SEARCH_PATHS = ( + "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + OTHER_CFLAGS = "$(inherited)"; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + "-DFOLLY_CFG_NO_COROUTINES=1", + ); + OTHER_LDFLAGS = ( + "$(inherited)", + " ", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + USE_HERMES = true; + }; + name = Debug; + }; + 83CBBA211A601CBA00E9B192 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "c++20"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + HEADER_SEARCH_PATHS = ( + "$(inherited)", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx", + "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers", + "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios", + ); + IPHONEOS_DEPLOYMENT_TARGET = 13.4; + LD_RUNPATH_SEARCH_PATHS = ( + /usr/lib/swift, + "$(inherited)", + ); + LIBRARY_SEARCH_PATHS = ( + "\"$(SDKROOT)/usr/lib/swift\"", + "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", + "\"$(inherited)\"", + ); + MTL_ENABLE_DEBUG_INFO = NO; + OTHER_CFLAGS = "$(inherited)"; + OTHER_CPLUSPLUSFLAGS = ( + "$(OTHER_CFLAGS)", + "-DFOLLY_NO_CONFIG", + "-DFOLLY_MOBILE=1", + "-DFOLLY_USE_LIBCPP=1", + "-DFOLLY_CFG_NO_COROUTINES=1", + ); + OTHER_LDFLAGS = ( + "$(inherited)", + " ", + ); + REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; + SDKROOT = iphoneos; + USE_HERMES = true; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "Web3InboxTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 00E356F61AD99517003FC87E /* Debug */, + 00E356F71AD99517003FC87E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Web3Inbox" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 13B07F941A680F5B00A75B9A /* Debug */, + 13B07F951A680F5B00A75B9A /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Web3Inbox" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 83CBBA201A601CBA00E9B192 /* Debug */, + 83CBBA211A601CBA00E9B192 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; +} diff --git a/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/xcshareddata/xcschemes/Web3Inbox.xcscheme b/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/xcshareddata/xcschemes/Web3Inbox.xcscheme new file mode 100644 index 00000000..e74d613f --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox.xcodeproj/xcshareddata/xcschemes/Web3Inbox.xcscheme @@ -0,0 +1,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox.xcworkspace/contents.xcworkspacedata b/dapps/Web3Inbox/ios/Web3Inbox.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..71079d76 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/dapps/Web3Inbox/ios/Web3Inbox.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox/AppDelegate.h b/dapps/Web3Inbox/ios/Web3Inbox/AppDelegate.h new file mode 100644 index 00000000..5d280825 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/AppDelegate.h @@ -0,0 +1,6 @@ +#import +#import + +@interface AppDelegate : RCTAppDelegate + +@end diff --git a/dapps/Web3Inbox/ios/Web3Inbox/AppDelegate.mm b/dapps/Web3Inbox/ios/Web3Inbox/AppDelegate.mm new file mode 100644 index 00000000..e4eb4016 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/AppDelegate.mm @@ -0,0 +1,50 @@ +#import "RNFBMessagingModule.h" +#import "AppDelegate.h" +#import +#import "RNBootSplash.h" + +#import + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + [FIRApp configure]; + + self.moduleName = @"Web3Inbox"; + // You can add your custom initial props in the dictionary below. + // They will be passed down to the ViewController used by React Native. + self.initialProps = @{}; + self.initialProps = [RNFBMessagingModule addCustomPropsToUserProps:nil withLaunchOptions:launchOptions]; + + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge +{ + return [self getBundleURL]; +} + +- (NSURL *)getBundleURL +{ +#if DEBUG + return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; +#else + return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; +#endif +} + +// Splash Screen +- (UIView *)createRootViewWithBridge:(RCTBridge *)bridge + moduleName:(NSString *)moduleName + initProps:(NSDictionary *)initProps { + UIView *rootView = [super createRootViewWithBridge:bridge + moduleName:moduleName + initProps:initProps]; + + [RNBootSplash initWithStoryboard:@"BootSplash" rootView:rootView]; // ⬅️ initialize the splash screen + + return rootView; +} + +@end diff --git a/dapps/Web3Inbox/ios/Web3Inbox/BootSplash.storyboard b/dapps/Web3Inbox/ios/Web3Inbox/BootSplash.storyboard new file mode 100644 index 00000000..55e8d0cd --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/BootSplash.storyboard @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png new file mode 100644 index 00000000..6e834c8e Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-20@2x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png new file mode 100644 index 00000000..050aedc2 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-20@3x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png new file mode 100644 index 00000000..c4439da1 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-29@2x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png new file mode 100644 index 00000000..39f330bd Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-29@3x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png new file mode 100644 index 00000000..5c322091 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-40@2x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png new file mode 100644 index 00000000..ad71eb39 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-40@3x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png new file mode 100644 index 00000000..ad71eb39 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-60@2x~car.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png new file mode 100644 index 00000000..88326376 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-60@3x~car.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png new file mode 100644 index 00000000..ac703d32 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon-83.5@2x~ipad.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png new file mode 100644 index 00000000..15080d7b Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon@2x~ipad.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png new file mode 100644 index 00000000..a19448c8 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon~ios-marketing.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png new file mode 100644 index 00000000..3356cac9 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/AppIcon~ipad.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/Contents.json b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..f02ec31d --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,115 @@ +{ + "images" : [ + { + "filename" : "AppIcon-20@2x.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "20x20" + }, + { + "filename" : "AppIcon-20@3x.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "3x", + "size" : "20x20" + }, + { + "filename" : "AppIcon-29@2x.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "29x29" + }, + { + "filename" : "AppIcon-29@3x.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "3x", + "size" : "29x29" + }, + { + "filename" : "AppIcon~ipad.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "38x38" + }, + { + "idiom" : "universal", + "platform" : "ios", + "scale" : "3x", + "size" : "38x38" + }, + { + "filename" : "AppIcon-40@2x.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "40x40" + }, + { + "filename" : "AppIcon-40@3x.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "3x", + "size" : "40x40" + }, + { + "filename" : "AppIcon-60@2x~car.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "60x60" + }, + { + "filename" : "AppIcon-60@3x~car.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "64x64" + }, + { + "idiom" : "universal", + "platform" : "ios", + "scale" : "3x", + "size" : "64x64" + }, + { + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "68x68" + }, + { + "filename" : "AppIcon@2x~ipad.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "76x76" + }, + { + "filename" : "AppIcon-83.5@2x~ipad.png", + "idiom" : "universal", + "platform" : "ios", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "filename" : "AppIcon~ios-marketing.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/Contents.json b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/Contents.json new file mode 100644 index 00000000..cf16036b --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images": [ + { + "idiom": "universal", + "filename": "bootsplash_logo-16cc409.png", + "scale": "1x" + }, + { + "idiom": "universal", + "filename": "bootsplash_logo-16cc409@2x.png", + "scale": "2x" + }, + { + "idiom": "universal", + "filename": "bootsplash_logo-16cc409@3x.png", + "scale": "3x" + } + ], + "info": { + "author": "xcode", + "version": 1 + } +} diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409.png new file mode 100644 index 00000000..b5c2d288 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409@2x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409@2x.png new file mode 100644 index 00000000..a4e12b22 Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409@2x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409@3x.png b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409@3x.png new file mode 100644 index 00000000..39d497df Binary files /dev/null and b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/BootSplashLogo.imageset/bootsplash_logo-16cc409@3x.png differ diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/Contents.json b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/Contents.json new file mode 100644 index 00000000..2d92bd53 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/Images.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Info.plist b/dapps/Web3Inbox/ios/Web3Inbox/Info.plist new file mode 100644 index 00000000..33145442 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/Info.plist @@ -0,0 +1,101 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Web3Inbox + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(MARKETING_VERSION) + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + LSRequiresIPhoneOS + + LSApplicationQueriesSchemes + + metamask + trust + safe + rainbow + uniswap + zerion + imtokenv2 + spot + omni + dfw + tpoutside + robinhood-wallet + frontier + blockchain-wallet + safepalwallet + bitkeep + oneinch + exodus + bnc + ledgerlive + mewwallet + awallet + keyring + lobstr + ontoprovider + mathwallet + unstoppabledomains + obvious + fireblocks-wc + ambire + internetmoney + walletnow + bitcoincom + coin98 + arculuswc + cryptobrowser + chainapp + huddln + verso + haha + coinomi + cbwallet + + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + NSAllowsLocalNetworking + + + NSLocationWhenInUseUsageDescription + + UIBackgroundModes + + fetch + remote-notification + + UILaunchStoryboardName + BootSplash.storyboard + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox/Web3Inbox.entitlements b/dapps/Web3Inbox/ios/Web3Inbox/Web3Inbox.entitlements new file mode 100644 index 00000000..903def2a --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/Web3Inbox.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/dapps/Web3Inbox/ios/Web3Inbox/main.m b/dapps/Web3Inbox/ios/Web3Inbox/main.m new file mode 100644 index 00000000..d645c724 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3Inbox/main.m @@ -0,0 +1,10 @@ +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/dapps/Web3Inbox/ios/Web3InboxTests/Info.plist b/dapps/Web3Inbox/ios/Web3InboxTests/Info.plist new file mode 100644 index 00000000..ba72822e --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3InboxTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/dapps/Web3Inbox/ios/Web3InboxTests/Web3InboxTests.m b/dapps/Web3Inbox/ios/Web3InboxTests/Web3InboxTests.m new file mode 100644 index 00000000..bd282487 --- /dev/null +++ b/dapps/Web3Inbox/ios/Web3InboxTests/Web3InboxTests.m @@ -0,0 +1,66 @@ +#import +#import + +#import +#import + +#define TIMEOUT_SECONDS 600 +#define TEXT_TO_LOOK_FOR @"Welcome to React" + +@interface Web3InboxTests : XCTestCase + +@end + +@implementation Web3InboxTests + +- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test +{ + if (test(view)) { + return YES; + } + for (UIView *subview in [view subviews]) { + if ([self findSubviewInView:subview matching:test]) { + return YES; + } + } + return NO; +} + +- (void)testRendersWelcomeScreen +{ + UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; + NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; + BOOL foundElement = NO; + + __block NSString *redboxError = nil; +#ifdef DEBUG + RCTSetLogFunction( + ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { + if (level >= RCTLogLevelError) { + redboxError = message; + } + }); +#endif + + while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { + [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; + [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; + + foundElement = [self findSubviewInView:vc.view + matching:^BOOL(UIView *view) { + if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { + return YES; + } + return NO; + }]; + } + +#ifdef DEBUG + RCTSetLogFunction(RCTDefaultLogFunction); +#endif + + XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); + XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); +} + +@end diff --git a/dapps/Web3Inbox/jest.config.js b/dapps/Web3Inbox/jest.config.js new file mode 100644 index 00000000..8eb675e9 --- /dev/null +++ b/dapps/Web3Inbox/jest.config.js @@ -0,0 +1,3 @@ +module.exports = { + preset: 'react-native', +}; diff --git a/dapps/Web3Inbox/metro.config.js b/dapps/Web3Inbox/metro.config.js new file mode 100644 index 00000000..ad8f87b6 --- /dev/null +++ b/dapps/Web3Inbox/metro.config.js @@ -0,0 +1,11 @@ +const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); + +/** + * Metro configuration + * https://facebook.github.io/metro/docs/configuration + * + * @type {import('metro-config').MetroConfig} + */ +const config = {}; + +module.exports = mergeConfig(getDefaultConfig(__dirname), config); diff --git a/dapps/Web3Inbox/package.json b/dapps/Web3Inbox/package.json new file mode 100644 index 00000000..e3870adc --- /dev/null +++ b/dapps/Web3Inbox/package.json @@ -0,0 +1,73 @@ +{ + "name": "web3inbox", + "version": "0.0.1", + "private": true, + "scripts": { + "android": "react-native run-android", + "android:build": "cd android && ./gradlew clean && ./gradlew assembleRelease", + "ios": "react-native run-ios", + "lint": "eslint .", + "start": "react-native start", + "test": "jest" + }, + "dependencies": { + "@craftzdog/react-native-buffer": "6.0.5", + "@notifee/react-native": "7.8.2", + "@react-native-async-storage/async-storage": "1.19.3", + "@react-native-clipboard/clipboard": "1.12.1", + "@react-native-community/netinfo": "9.4.1", + "@react-native-firebase/app": "18.8.0", + "@react-native-firebase/messaging": "18.8.0", + "@react-native-masked-view/masked-view": "0.3.1", + "@react-navigation/bottom-tabs": "6.5.11", + "@react-navigation/elements": "1.3.21", + "@react-navigation/native": "6.1.9", + "@react-navigation/native-stack": "6.9.17", + "@react-navigation/stack": "6.3.20", + "@sentry/react-native": "5.12.0", + "@walletconnect/notify-client": "1.0.0", + "@walletconnect/notify-message-decrypter": "0.1.0", + "@walletconnect/react-native-compat": "2.11.2", + "@web3modal/wagmi-react-native": "1.3.0-alpha.1", + "dayjs": "1.11.10", + "react": "18.2.0", + "react-hook-form": "7.50.0", + "react-native": "0.73.3", + "react-native-bootsplash": "5.4.1", + "react-native-gesture-handler": "2.14.1", + "react-native-get-random-values": "1.9.0", + "react-native-modal": "13.0.1", + "react-native-quick-base64": "2.0.8", + "react-native-quick-crypto": "0.6.1", + "react-native-safe-area-context": "4.8.2", + "react-native-screens": "3.29.0", + "react-native-svg": "13.14.0", + "stream-browserify": "3.0.0", + "valtio": "1.10.5", + "viem": "1.21.4", + "wagmi": "1.4.13" + }, + "devDependencies": { + "@babel/core": "^7.20.0", + "@babel/preset-env": "^7.23.2", + "@babel/runtime": "^7.20.0", + "@react-native/eslint-config": "^0.72.2", + "@react-native/metro-config": "^0.72.11", + "@tsconfig/react-native": "^3.0.0", + "@types/lodash.clonedeep": "^4.5.9", + "@types/react": "^18.0.24", + "@types/react-test-renderer": "^18.0.0", + "babel-jest": "^29.2.1", + "babel-plugin-module-resolver": "^5.0.0", + "eslint": "^8.19.0", + "jest": "^29.2.1", + "metro-react-native-babel-preset": "0.76.8", + "prettier": "^2.4.1", + "react-native-dotenv": "^3.4.9", + "react-test-renderer": "18.2.0", + "typescript": "4.8.4" + }, + "engines": { + "node": ">=18" + } +} diff --git a/dapps/Web3Inbox/src/App.tsx b/dapps/Web3Inbox/src/App.tsx new file mode 100644 index 00000000..aa04e9c3 --- /dev/null +++ b/dapps/Web3Inbox/src/App.tsx @@ -0,0 +1,74 @@ +import '@walletconnect/react-native-compat'; +import { + createWeb3Modal, + defaultWagmiConfig, + Web3Modal, +} from '@web3modal/wagmi-react-native'; + +import Clipboard from '@react-native-clipboard/clipboard'; +import * as Sentry from '@sentry/react-native'; + +import {WagmiConfig} from 'wagmi'; +import {arbitrum, mainnet, polygon, avalanche, bsc} from 'wagmi/chains'; +import {ENV_PROJECT_ID, ENV_SENTRY_DSN} from '@env'; +import {NavigationContainer} from '@react-navigation/native'; +import {GestureHandlerRootView} from 'react-native-gesture-handler'; + +import RootStackNavigator from './navigation/RootStack'; + +if (!__DEV__ && ENV_SENTRY_DSN) { + Sentry.init({ + dsn: ENV_SENTRY_DSN, + }); +} + +const projectId = ENV_PROJECT_ID; + +const metadata = { + name: 'Web3Inbox', + description: 'Web3Inbox', + url: 'https://web3inbox.com', + icons: ['https://avatars.githubusercontent.com/u/37784886'], + redirect: { + native: 'web3inbox://', + }, +}; + +const clipboardClient = { + setString: async (value: string) => { + Clipboard.setString(value); + }, +}; + +const chains = [mainnet, polygon, arbitrum, avalanche, bsc]; + +const wagmiConfig = defaultWagmiConfig({ + chains, + projectId, + metadata, +}); + +createWeb3Modal({ + projectId, + chains, + wagmiConfig, + clipboardClient, + excludeWalletIds: [ + 'fd20dc426fb37566d803205b19bbc1d4096b248ac04548e3cfb6b3a38bd033aa', // Hide coinbase until their SDK is implemented + ], +}); + +function App(): JSX.Element { + return ( + + + + + + + + + ); +} + +export default App; diff --git a/dapps/Web3Inbox/src/components/Button/index.tsx b/dapps/Web3Inbox/src/components/Button/index.tsx new file mode 100644 index 00000000..ab185f6d --- /dev/null +++ b/dapps/Web3Inbox/src/components/Button/index.tsx @@ -0,0 +1,52 @@ +import useTheme from '@/hooks/useTheme'; +import {ReactNode} from 'react'; +import { + ActivityIndicator, + StyleProp, + Text, + TextStyle, + TouchableOpacity, + TouchableOpacityProps, +} from 'react-native'; +import styles from './styles'; + +type Props = TouchableOpacityProps & { + label: string; + labelStyle?: StyleProp; + rightIcon?: ReactNode; + loading?: boolean; +}; + +function Button({ + onPress, + label, + style, + labelStyle, + rightIcon, + loading, + ...props +}: Props) { + const Theme = useTheme(); + + return ( + + {loading ? ( + + ) : ( + <> + + {label} + + {rightIcon} + + )} + + ); +} + +export default Button; diff --git a/dapps/Web3Inbox/src/components/Button/styles.ts b/dapps/Web3Inbox/src/components/Button/styles.ts new file mode 100644 index 00000000..f1aa7f11 --- /dev/null +++ b/dapps/Web3Inbox/src/components/Button/styles.ts @@ -0,0 +1,17 @@ +import {StyleSheet} from 'react-native'; +import {BorderRadius, Spacing} from '@/utils/ThemeUtil'; + +export default StyleSheet.create({ + container: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'center', + borderRadius: BorderRadius.m, + paddingVertical: Spacing.s, + paddingHorizontal: Spacing.xl, + }, + label: { + fontSize: 16, + fontWeight: '600', + }, +}); diff --git a/dapps/Web3Inbox/src/components/DiscoverListItem.tsx b/dapps/Web3Inbox/src/components/DiscoverListItem.tsx new file mode 100644 index 00000000..7e2527fb --- /dev/null +++ b/dapps/Web3Inbox/src/components/DiscoverListItem.tsx @@ -0,0 +1,138 @@ +import {useState} from 'react'; +import { + ActivityIndicator, + Image, + Pressable, + StyleSheet, + TouchableOpacity, + View, +} from 'react-native'; + +import useTheme from '@/hooks/useTheme'; +import {ProjectItem} from '@/constants/Explorer'; +import {Text} from '@/components/Text'; +import {Spacing} from '@/utils/ThemeUtil'; + +type DiscoverListItemProps = { + item: ProjectItem; + isSubscribed?: boolean; + onSubscribe?: (domain: string) => Promise; + onPress?: () => void; +}; + +export default function DiscoverListItem({ + item, + isSubscribed, + onSubscribe, + onPress, +}: DiscoverListItemProps) { + const Theme = useTheme(); + const [subscribing, setSubscribing] = useState(false); + const domain = new URL(item.dapp_url).host; + + async function handleSubscribeToDapp() { + setSubscribing(true); + await onSubscribe?.(domain); + setSubscribing(false); + } + + return ( + + + + + + + + {subscribing ? ( + + ) : ( + + {isSubscribed ? 'Subscribed' : 'Subscribe'} + + )} + + + + + {item.name} + + + {domain} + + + {item.description} + + + + ); +} + +const styles = StyleSheet.create({ + container: { + rowGap: Spacing.s, + padding: 16, + borderRadius: 12, + borderWidth: 0.5, + }, + header: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between', + }, + subtitle: { + marginTop: Spacing['4xs'], + }, + description: { + marginTop: Spacing.s, + }, + button: { + paddingVertical: 8, + paddingHorizontal: 16, + borderRadius: 100, + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'center', + }, + buttonSubscribed: { + backgroundColor: 'transparent', + borderWidth: 1, + }, + imageBorder: { + position: 'absolute', + width: 48, + height: 48, + borderRadius: 32, + borderWidth: 1.25, + borderColor: 'rgba(150,150,150,1)', + zIndex: 999, + opacity: 0.15, + }, + image: { + borderRadius: 32, + width: 48, + height: 48, + }, +}); diff --git a/dapps/Web3Inbox/src/components/DiscoverListItemSkeleton.tsx b/dapps/Web3Inbox/src/components/DiscoverListItemSkeleton.tsx new file mode 100644 index 00000000..b26580a3 --- /dev/null +++ b/dapps/Web3Inbox/src/components/DiscoverListItemSkeleton.tsx @@ -0,0 +1,57 @@ +import {StyleSheet, View} from 'react-native'; + +import useTheme from '@/hooks/useTheme'; +import {Shimmer} from '@/components/Shimmer'; +import {Spacing} from '@/utils/ThemeUtil'; + +export default function DiscoverListItemSkeleton() { + const Theme = useTheme(); + + return ( + + + + + + + + + + + + + + ); +} + +const styles = StyleSheet.create({ + container: { + rowGap: Spacing.s, + padding: 16, + borderRadius: 12, + borderWidth: 0.5, + }, + header: { + flexDirection: 'row', + alignItems: 'center', + justifyContent: 'space-between', + }, + nameLoader: { + marginBottom: Spacing.xs, + }, + bodyContainer: { + rowGap: Spacing['3xs'], + }, +}); diff --git a/dapps/Web3Inbox/src/components/Divider/index.tsx b/dapps/Web3Inbox/src/components/Divider/index.tsx new file mode 100644 index 00000000..554f63d4 --- /dev/null +++ b/dapps/Web3Inbox/src/components/Divider/index.tsx @@ -0,0 +1,26 @@ +import {View, StyleSheet, StyleProp, ViewStyle} from 'react-native'; +import useTheme from '@/hooks/useTheme'; + +export interface Props { + style?: StyleProp; +} + +export function Divider({style}: Props) { + const Theme = useTheme(); + return ( + + ); +} + +const styles = StyleSheet.create({ + divider: { + height: StyleSheet.hairlineWidth, + width: '100%', + }, +}); diff --git a/dapps/Web3Inbox/src/components/LoadingThumbnail/index.tsx b/dapps/Web3Inbox/src/components/LoadingThumbnail/index.tsx new file mode 100644 index 00000000..4a663eeb --- /dev/null +++ b/dapps/Web3Inbox/src/components/LoadingThumbnail/index.tsx @@ -0,0 +1,80 @@ +import {useEffect, useRef, type ReactNode} from 'react'; +import {Animated, Easing, View} from 'react-native'; +import Svg, {Rect} from 'react-native-svg'; +import useTheme from '@/hooks/useTheme'; +import {BorderRadius, Spacing} from '@/utils/ThemeUtil'; +import styles from './styles'; + +const AnimatedRect = Animated.createAnimatedComponent(Rect); + +export interface LoadingThumbnailProps { + children?: ReactNode; + paused?: boolean; + borderRadius?: number; +} + +export function LoadingThumbnail({ + children, + paused, + borderRadius = BorderRadius.l, +}: LoadingThumbnailProps) { + const Theme = useTheme(); + const spinValue = useRef(new Animated.Value(0)); + const strokeWidth = 4; + const rectangleSize = 80 + Spacing.l; + const outerContainerSize = rectangleSize + strokeWidth; + + useEffect(() => { + const animation = Animated.timing(spinValue.current, { + toValue: 1, + duration: 1000, + useNativeDriver: true, + easing: Easing.linear, + }); + + const loop = Animated.loop(animation); + loop.start(); + + return () => { + loop.stop(); + }; + }, [spinValue]); + + // Calculate one side of the Rectangle with borders + const sideLength = + rectangleSize - borderRadius * 2 + (Math.PI * borderRadius) / 2; + + const spin = spinValue.current.interpolate({ + inputRange: [0, 1], + outputRange: [0, -sideLength * 4], + }); + + return ( + + + + + {children ?? null} + + ); +} diff --git a/dapps/Web3Inbox/src/components/LoadingThumbnail/styles.ts b/dapps/Web3Inbox/src/components/LoadingThumbnail/styles.ts new file mode 100644 index 00000000..960c7344 --- /dev/null +++ b/dapps/Web3Inbox/src/components/LoadingThumbnail/styles.ts @@ -0,0 +1,11 @@ +import {StyleSheet} from 'react-native'; + +export default StyleSheet.create({ + container: { + alignItems: 'center', + justifyContent: 'center', + }, + loader: { + position: 'absolute', + }, +}); diff --git a/dapps/Web3Inbox/src/components/NotificationItem.tsx b/dapps/Web3Inbox/src/components/NotificationItem.tsx new file mode 100644 index 00000000..0971d768 --- /dev/null +++ b/dapps/Web3Inbox/src/components/NotificationItem.tsx @@ -0,0 +1,115 @@ +import { + Animated, + Image, + Linking, + Pressable, + StyleSheet, + View, +} from 'react-native'; +import useTheme from '@/hooks/useTheme'; +import {DateUtil} from '@/utils/DateUtil'; +import {Spacing} from '@/utils/ThemeUtil'; +import {Text} from '@/components/Text'; +import {useRef} from 'react'; + +const AnimatedPressable = Animated.createAnimatedComponent(Pressable); + +type NotificationItemProps = { + title: string; + description: string; + sentAt: number; + url?: string | null; + imageUrl?: string; +}; + +// TODO: add show more button +export default function NotificationItem({ + title, + description, + sentAt, + url, + imageUrl, +}: NotificationItemProps) { + const Theme = useTheme(); + const colorAnimation = useRef(new Animated.Value(0)); + + const onPressIn = () => { + Animated.timing(colorAnimation.current, { + toValue: 1, + useNativeDriver: false, + duration: 200, + }).start(); + }; + + const onPressOut = () => { + Animated.timing(colorAnimation.current, { + toValue: 0, + useNativeDriver: false, + duration: 200, + }).start(); + }; + + const backgroundColor = colorAnimation.current.interpolate({ + inputRange: [0, 1], + outputRange: [Theme['bg-100'], Theme['accent-010']], + }); + + const borderColor = colorAnimation.current.interpolate({ + inputRange: [0, 1], + outputRange: [Theme['bg-100'], Theme['accent-100']], + }); + + const onPress = () => { + if (url) { + Linking.openURL(url); + } + }; + + return ( + + + + + + {title} + + {sentAt ? ( + + {DateUtil.getRelativeDateFromNow(sentAt)} + + ) : null} + + + {description} + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flexDirection: 'row', + gap: 4, + paddingVertical: Spacing.m, + paddingHorizontal: Spacing.l, + }, + textContainer: { + flex: 1, + }, + titleContainer: { + flexDirection: 'row', + justifyContent: 'space-between', + }, + image: { + height: 48, + width: 48, + borderRadius: 10, + marginRight: Spacing.xs, + }, +}); diff --git a/dapps/Web3Inbox/src/components/NotificationItemSkeleton.tsx b/dapps/Web3Inbox/src/components/NotificationItemSkeleton.tsx new file mode 100644 index 00000000..a542384b --- /dev/null +++ b/dapps/Web3Inbox/src/components/NotificationItemSkeleton.tsx @@ -0,0 +1,50 @@ +import {StyleSheet, View} from 'react-native'; +import useTheme from '@/hooks/useTheme'; +import {Shimmer} from '@/components/Shimmer'; +import {Spacing} from '@/utils/ThemeUtil'; + +export default function NotificationItemSkeleton() { + const Theme = useTheme(); + + return ( + + + + + + + + + + + + ); +} + +const styles = StyleSheet.create({ + container: { + rowGap: Spacing.s, + padding: Spacing.l, + flexDirection: 'row', + }, + title: { + flexDirection: 'row', + justifyContent: 'space-between', + }, + nameLoader: { + marginBottom: Spacing.xs, + }, + bodyContainer: { + flex: 1, + justifyContent: 'center', + rowGap: Spacing['3xs'], + marginLeft: Spacing.s, + }, +}); diff --git a/dapps/Web3Inbox/src/components/Shimmer/index.tsx b/dapps/Web3Inbox/src/components/Shimmer/index.tsx new file mode 100644 index 00000000..91f41a03 --- /dev/null +++ b/dapps/Web3Inbox/src/components/Shimmer/index.tsx @@ -0,0 +1,59 @@ +import {Svg, Rect} from 'react-native-svg'; +import {Animated, type StyleProp, type ViewStyle} from 'react-native'; +import useTheme from '@/hooks/useTheme'; + +const AnimatedRect = Animated.createAnimatedComponent(Rect); + +export interface ShimmerProps { + width?: number; + height?: number; + duration?: number; + borderRadius?: number; + backgroundColor?: string; + foregroundColor?: string; + style?: StyleProp; +} + +export const Shimmer = ({ + width = 200, + height = 200, + duration = 1000, + borderRadius = 0, + backgroundColor, + foregroundColor, + style, +}: ShimmerProps) => { + const animatedValue = new Animated.Value(0); + const Theme = useTheme(); + + const animatedProps = { + fill: animatedValue.interpolate({ + inputRange: [0, 0.5, 1], + outputRange: [ + backgroundColor ?? Theme['bg-200'], + foregroundColor ?? Theme['bg-300'], + backgroundColor ?? Theme['bg-200'], + ], + }), + width, + height, + x: 0, + y: 0, + rx: borderRadius, + ry: borderRadius, + }; + + Animated.loop( + Animated.timing(animatedValue, { + toValue: 1, + duration, + useNativeDriver: false, + }), + ).start(); + + return ( + + + + ); +}; diff --git a/dapps/Web3Inbox/src/components/SubscriptionItem.tsx b/dapps/Web3Inbox/src/components/SubscriptionItem.tsx new file mode 100644 index 00000000..ff14d657 --- /dev/null +++ b/dapps/Web3Inbox/src/components/SubscriptionItem.tsx @@ -0,0 +1,83 @@ +import {useRef} from 'react'; +import {Animated, Image, Pressable, StyleSheet, View} from 'react-native'; +import {Text} from '@/components/Text'; +import useTheme from '@/hooks/useTheme'; +import {Spacing} from '@/utils/ThemeUtil'; + +interface ISubscriptionItem { + title: string; + description: string; + imageURL: string; + onPress: () => void; +} + +const AnimatedPressable = Animated.createAnimatedComponent(Pressable); + +export default function SubscriptionItem({ + title, + description, + imageURL, + onPress, +}: ISubscriptionItem) { + const Theme = useTheme(); + const colorAnimation = useRef(new Animated.Value(0)); + + const onPressIn = () => { + Animated.timing(colorAnimation.current, { + toValue: 1, + useNativeDriver: false, + duration: 200, + }).start(); + }; + + const onPressOut = () => { + Animated.timing(colorAnimation.current, { + toValue: 0, + useNativeDriver: false, + duration: 200, + }).start(); + }; + + const backgroundColor = colorAnimation.current.interpolate({ + inputRange: [0, 1], + outputRange: [Theme['bg-100'], Theme['accent-010']], + }); + + const borderColor = colorAnimation.current.interpolate({ + inputRange: [0, 1], + outputRange: [Theme['bg-100'], Theme['accent-100']], + }); + + return ( + + + + {title} + + {description} + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flexDirection: 'row', + alignItems: 'center', + columnGap: 8, + padding: Spacing.s, + }, + contentContainer: { + justifyContent: 'center', + }, + image: { + width: 48, + height: 48, + borderRadius: 32, + }, +}); diff --git a/dapps/Web3Inbox/src/components/SubscriptionItemSkeleton.tsx b/dapps/Web3Inbox/src/components/SubscriptionItemSkeleton.tsx new file mode 100644 index 00000000..6426199c --- /dev/null +++ b/dapps/Web3Inbox/src/components/SubscriptionItemSkeleton.tsx @@ -0,0 +1,27 @@ +import {StyleSheet, View} from 'react-native'; +import {Shimmer} from './Shimmer'; +import {Spacing} from '@/utils/ThemeUtil'; + +export default function SubscriptionItemSkeleton() { + return ( + + + + + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flexDirection: 'row', + alignItems: 'center', + columnGap: 8, + padding: Spacing.s, + }, + textContainer: { + rowGap: 4, + }, +}); diff --git a/dapps/Web3Inbox/src/components/TabHeader.tsx b/dapps/Web3Inbox/src/components/TabHeader.tsx new file mode 100644 index 00000000..d744be5e --- /dev/null +++ b/dapps/Web3Inbox/src/components/TabHeader.tsx @@ -0,0 +1,58 @@ +import { + Image, + StyleProp, + StyleSheet, + TouchableOpacity, + View, + ViewStyle, +} from 'react-native'; +import {BottomTabHeaderProps} from '@react-navigation/bottom-tabs'; + +import {Text} from '@/components/Text'; +import {Avatar} from '@web3modal/ui-react-native'; +import {Spacing} from '@/utils/ThemeUtil'; +import Logo from '@/icons/w3i-logo.png'; + +interface Props extends BottomTabHeaderProps { + address?: string; + onAvatarPress: () => void; + avatar?: string | null; + style?: StyleProp; +} + +export function TabHeader({ + options, + address, + onAvatarPress, + avatar, + style, +}: Props) { + return ( + + + {options.title} + + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flexDirection: 'row', + justifyContent: 'space-between', + alignItems: 'center', + height: 48, + paddingHorizontal: Spacing.l, + }, + logo: { + width: 26, + height: 26, + }, +}); diff --git a/dapps/Web3Inbox/src/components/Text/index.tsx b/dapps/Web3Inbox/src/components/Text/index.tsx new file mode 100644 index 00000000..c1d000cb --- /dev/null +++ b/dapps/Web3Inbox/src/components/Text/index.tsx @@ -0,0 +1,35 @@ +import {Text as NativeText, type TextProps as NativeProps} from 'react-native'; +import useTheme from '@/hooks/useTheme'; +import type {ColorType, TextType} from '@/utils/TypesUtil'; +import styles from './styles'; + +export type TextProps = NativeProps & { + color?: ColorType; + variant?: TextType; + center?: boolean; +}; + +export function Text({ + children, + style, + center, + color = 'fg-100', + variant = 'paragraph-500', + ...rest +}: TextProps) { + const Theme = useTheme(); + + return ( + + {children} + + ); +} diff --git a/dapps/Web3Inbox/src/components/Text/styles.ts b/dapps/Web3Inbox/src/components/Text/styles.ts new file mode 100644 index 00000000..be2723d3 --- /dev/null +++ b/dapps/Web3Inbox/src/components/Text/styles.ts @@ -0,0 +1,104 @@ +import {StyleSheet} from 'react-native'; + +export default StyleSheet.create({ + base: { + letterSpacing: -0.4, + }, + 'medium-title-400': { + fontSize: 24, + fontWeight: '400', + }, + 'medium-title-500': { + fontSize: 24, + fontWeight: '500', + }, + 'medium-title-600': { + fontSize: 24, + fontWeight: '600', + }, + 'small-title-400': { + fontSize: 22, + fontWeight: '400', + }, + 'small-title-500': { + fontSize: 22, + fontWeight: '500', + }, + 'small-title-600': { + fontSize: 22, + fontWeight: '600', + }, + 'large-400': { + fontSize: 20, + fontWeight: '400', + }, + 'large-500': { + fontSize: 20, + fontWeight: '500', + }, + 'large-600': { + fontSize: 20, + fontWeight: '600', + }, + 'medium-400': { + fontSize: 18, + fontWeight: '400', + }, + 'medium-500': { + fontSize: 18, + fontWeight: '500', + }, + 'medium-600': { + fontSize: 18, + fontWeight: '600', + }, + 'paragraph-400': { + fontSize: 16, + fontWeight: '400', + }, + 'paragraph-500': { + fontSize: 16, + fontWeight: '500', + }, + 'paragraph-600': { + fontSize: 16, + fontWeight: '600', + }, + 'small-400': { + fontSize: 14, + fontWeight: '400', + }, + 'small-500': { + fontSize: 14, + fontWeight: '500', + }, + 'small-600': { + fontSize: 14, + fontWeight: '600', + }, + 'tiny-400': { + fontSize: 12, + fontWeight: '400', + }, + 'tiny-500': { + fontSize: 12, + fontWeight: '500', + }, + 'tiny-600': { + fontSize: 12, + fontWeight: '600', + }, + 'micro-600': { + fontSize: 10, + fontWeight: '600', + letterSpacing: 0.2, + }, + 'micro-700': { + fontSize: 10, + fontWeight: '700', + letterSpacing: 0.2, + }, + center: { + textAlign: 'center', + }, +}); diff --git a/dapps/Web3Inbox/src/constants/Explorer.ts b/dapps/Web3Inbox/src/constants/Explorer.ts new file mode 100644 index 00000000..3356bb4e --- /dev/null +++ b/dapps/Web3Inbox/src/constants/Explorer.ts @@ -0,0 +1,18 @@ +export const EXPLORER_API_BASE_URL = 'https://explorer-api.walletconnect.com'; + +export const EXPLORER_ENDPOINTS = { + projects: '/w3i/v1/projects', + notifyConfig: '/w3i/v1/notify-config', +}; + +export type ProjectItem = { + id: string; + name: string; + description: string; + dapp_url: string; + image_url: { + sm: string; + md: string; + lg: string; + }; +}; diff --git a/dapps/Web3Inbox/src/constants/Storage.ts b/dapps/Web3Inbox/src/constants/Storage.ts new file mode 100644 index 00000000..28dd5d93 --- /dev/null +++ b/dapps/Web3Inbox/src/constants/Storage.ts @@ -0,0 +1 @@ +export const SYM_KEY_PREFIX = 'symkey:'; diff --git a/dapps/Web3Inbox/src/controllers/AccountController.ts b/dapps/Web3Inbox/src/controllers/AccountController.ts new file mode 100644 index 00000000..88a44b0c --- /dev/null +++ b/dapps/Web3Inbox/src/controllers/AccountController.ts @@ -0,0 +1,70 @@ +import {CaipAddress} from '@/utils/TypesUtil'; +import {proxy} from 'valtio'; +import {NotifyController} from './NotifyController'; +import {NotifyClientTypes} from '@walletconnect/notify-client'; + +// -- Types --------------------------------------------- // +export interface AccountControllerState { + isConnected: boolean; + isRegistered: boolean; + address?: CaipAddress; + subscriptions: NotifyClientTypes.NotifySubscription[]; + notifications: {[topic: string]: any[]}; +} + +// -- State --------------------------------------------- // +const state = proxy({ + isConnected: false, + isRegistered: false, + address: undefined, + subscriptions: [], + notifications: {}, +}); + +// -- Controller ---------------------------------------- // +export const AccountController = { + state, + + setIsConnected(isConnected: AccountControllerState['isConnected']) { + state.isConnected = isConnected; + }, + + setIsRegistered(isRegistered: AccountControllerState['isRegistered']) { + state.isRegistered = isRegistered; + }, + + setAddress(address: AccountControllerState['address']) { + state.address = address; + }, + + setNotifications(topic: string, notifications: any[], override = true) { + if (override) { + state.notifications[topic] = notifications; + } else { + state.notifications[topic] = + state.notifications[topic].concat(notifications); + } + }, + + refreshSubscriptions() { + if (!state.address) { + return; + } + + const subs = NotifyController.getClient()?.getActiveSubscriptions({ + account: state.address, + }); + + if (subs) { + state.subscriptions = Object.values(subs); + } + }, + + reset() { + state.isConnected = false; + state.isRegistered = false; + state.address = undefined; + state.subscriptions = []; + state.notifications = {}; + }, +}; diff --git a/dapps/Web3Inbox/src/controllers/NotifyController.ts b/dapps/Web3Inbox/src/controllers/NotifyController.ts new file mode 100644 index 00000000..276c00af --- /dev/null +++ b/dapps/Web3Inbox/src/controllers/NotifyController.ts @@ -0,0 +1,28 @@ +import type {NotifyClient} from '@walletconnect/notify-client'; +import {proxy, ref} from 'valtio'; + +// -- Types --------------------------------------------- // +export interface NotifyControllerState { + _client?: NotifyClient; + initialized: boolean; +} + +// -- State --------------------------------------------- // +const state = proxy({ + _client: undefined, + initialized: false, +}); + +// -- Controller ---------------------------------------- // +export const NotifyController = { + state, + + setClient(client: NotifyClient) { + state._client = ref(client); + state.initialized = true; + }, + + getClient() { + return state._client; + }, +}; diff --git a/dapps/Web3Inbox/src/hooks/useInitializeNotifyClient.ts b/dapps/Web3Inbox/src/hooks/useInitializeNotifyClient.ts new file mode 100644 index 00000000..68254203 --- /dev/null +++ b/dapps/Web3Inbox/src/hooks/useInitializeNotifyClient.ts @@ -0,0 +1,64 @@ +import {AccountController} from '@/controllers/AccountController'; +import {NotifyController} from '@/controllers/NotifyController'; +import {CaipAddress} from '@/utils/TypesUtil'; +import {ENV_PROJECT_ID} from '@env'; +import {useNavigation} from '@react-navigation/native'; +import {NotifyClient} from '@walletconnect/notify-client'; +import {useAccount} from 'wagmi'; + +export function useInitializeNotifyClient() { + const {reset} = useNavigation(); + + useAccount({ + onConnect: ({address}) => { + const _account: CaipAddress = `eip155:1:${address}`; + initializeNotifyClient(_account); + AccountController.setIsConnected(true); + AccountController.setAddress(_account); + }, + onDisconnect: () => { + console.log('onDisconnect'); + AccountController.reset(); + reset({index: 0, routes: [{name: 'Connect'}]}); + }, + }); + + const initializeNotifyClient = async (_account: string) => { + const _notifyClient = await NotifyClient.init({ + projectId: ENV_PROJECT_ID, + }); + + _notifyClient.on('notify_subscription', async ({params, topic}) => { + console.log('notify_subscription', params, topic); + AccountController.refreshSubscriptions(); + }); + + _notifyClient.on('notify_message', ({params, topic}) => { + const isSubscribed = AccountController.state.subscriptions.find( + (sub: any) => sub.topic === topic, + ); + + if (isSubscribed) { + const {message} = params; + // @ts-ignore + const notif = {...message, sentAt: message.sent_at}; + AccountController.setNotifications(topic, [notif], false); + } + }); + + _notifyClient.on('notify_update', ({params}) => { + console.log('notify_update', params); + AccountController.refreshSubscriptions(); + }); + + _notifyClient.on('notify_subscriptions_changed', ({params}) => { + console.log('notify_subscriptions_changed', params); + + // TODO: check if this logic is correct or i should take new subs from params + AccountController.refreshSubscriptions(); + }); + + NotifyController.setClient(_notifyClient); + AccountController.refreshSubscriptions(); + }; +} diff --git a/dapps/Web3Inbox/src/hooks/useTheme.ts b/dapps/Web3Inbox/src/hooks/useTheme.ts new file mode 100644 index 00000000..2dfd876e --- /dev/null +++ b/dapps/Web3Inbox/src/hooks/useTheme.ts @@ -0,0 +1,10 @@ +import {LightTheme} from '@/utils/ThemeUtil'; +import {useColorScheme} from 'react-native'; + +export default function useTheme() { + const scheme = useColorScheme(); + // TODO: Add dark theme when it's designed + const Theme = scheme === 'dark' ? LightTheme : LightTheme; + + return Theme; +} diff --git a/dapps/Web3Inbox/src/icons/all-apps.tsx b/dapps/Web3Inbox/src/icons/all-apps.tsx new file mode 100644 index 00000000..27a480fa --- /dev/null +++ b/dapps/Web3Inbox/src/icons/all-apps.tsx @@ -0,0 +1,30 @@ +import Svg, {Mask, Path, SvgProps} from 'react-native-svg'; + +function SvgComponent(props: SvgProps) { + return ( + + + + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/discover-intro.tsx b/dapps/Web3Inbox/src/icons/discover-intro.tsx new file mode 100644 index 00000000..0fdc8da6 --- /dev/null +++ b/dapps/Web3Inbox/src/icons/discover-intro.tsx @@ -0,0 +1,67 @@ +import Svg, { + Defs, + LinearGradient, + Mask, + Path, + Rect, + Stop, + SvgProps, +} from 'react-native-svg'; + +function SvgComponent(props: SvgProps) { + return ( + + + + + + + + + + + + + + + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/discover-tab.tsx b/dapps/Web3Inbox/src/icons/discover-tab.tsx new file mode 100644 index 00000000..1bdab37d --- /dev/null +++ b/dapps/Web3Inbox/src/icons/discover-tab.tsx @@ -0,0 +1,43 @@ +import Svg, {Mask, Path, Rect, SvgProps} from 'react-native-svg'; + +interface Props extends SvgProps { + focused: boolean; +} + +function SvgComponent({focused, fill, ...props}: Props) { + return focused ? ( + + + + ) : ( + + + + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/gradient-background.png b/dapps/Web3Inbox/src/icons/gradient-background.png new file mode 100644 index 00000000..e01f3bd8 Binary files /dev/null and b/dapps/Web3Inbox/src/icons/gradient-background.png differ diff --git a/dapps/Web3Inbox/src/icons/inbox-tab.tsx b/dapps/Web3Inbox/src/icons/inbox-tab.tsx new file mode 100644 index 00000000..74b9b549 --- /dev/null +++ b/dapps/Web3Inbox/src/icons/inbox-tab.tsx @@ -0,0 +1,35 @@ +import Svg, {Path, SvgProps} from 'react-native-svg'; + +interface Props extends SvgProps { + focused: boolean; +} + +function SvgComponent({focused, fill, ...props}: Props) { + return focused ? ( + + + + + ) : ( + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/settings-tab.tsx b/dapps/Web3Inbox/src/icons/settings-tab.tsx new file mode 100644 index 00000000..f4e9d6b0 --- /dev/null +++ b/dapps/Web3Inbox/src/icons/settings-tab.tsx @@ -0,0 +1,37 @@ +import Svg, {Path, SvgProps} from 'react-native-svg'; + +interface Props extends SvgProps { + focused: boolean; +} + +function SvgComponent({focused, fill, ...props}: Props) { + return focused ? ( + + + + ) : ( + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/w3i-logo.png b/dapps/Web3Inbox/src/icons/w3i-logo.png new file mode 100644 index 00000000..4d9a496a Binary files /dev/null and b/dapps/Web3Inbox/src/icons/w3i-logo.png differ diff --git a/dapps/Web3Inbox/src/icons/wallet.tsx b/dapps/Web3Inbox/src/icons/wallet.tsx new file mode 100644 index 00000000..d1887fdd --- /dev/null +++ b/dapps/Web3Inbox/src/icons/wallet.tsx @@ -0,0 +1,19 @@ +import Svg, {G, Path, SvgProps} from 'react-native-svg'; + +function SvgComponent({fill, ...props}: SvgProps) { + return ( + + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/wc-logo.tsx b/dapps/Web3Inbox/src/icons/wc-logo.tsx new file mode 100644 index 00000000..a9efcb48 --- /dev/null +++ b/dapps/Web3Inbox/src/icons/wc-logo.tsx @@ -0,0 +1,19 @@ +import Svg, {G, Path, SvgProps} from 'react-native-svg'; + +function SvgComponent({fill, ...props}: SvgProps) { + return ( + + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/icons/welcome-wallet.tsx b/dapps/Web3Inbox/src/icons/welcome-wallet.tsx new file mode 100644 index 00000000..b31937fc --- /dev/null +++ b/dapps/Web3Inbox/src/icons/welcome-wallet.tsx @@ -0,0 +1,67 @@ +import Svg, { + Defs, + LinearGradient, + Mask, + Path, + Rect, + Stop, + SvgProps, +} from 'react-native-svg'; + +function SvgComponent(props: SvgProps) { + return ( + + + + + + + + + + + + + + + + + + + ); +} + +export default SvgComponent; diff --git a/dapps/Web3Inbox/src/modals/SignatureModal.tsx b/dapps/Web3Inbox/src/modals/SignatureModal.tsx new file mode 100644 index 00000000..85a7375f --- /dev/null +++ b/dapps/Web3Inbox/src/modals/SignatureModal.tsx @@ -0,0 +1,172 @@ +import {useState} from 'react'; +import {Image, StyleSheet, View} from 'react-native'; +import Modal from 'react-native-modal'; +import WalletIcon from '@/icons/wallet'; +import Logo from '@/icons/w3i-logo.png'; +import useTheme from '@/hooks/useTheme'; +import {BorderRadius, Spacing} from '@/utils/ThemeUtil'; +import Button from '@/components/Button'; +import {Text} from '@/components/Text'; +import {LoadingThumbnail} from '@/components/LoadingThumbnail'; + +interface ModalProps { + isVisible?: boolean; + onDismiss?: () => void; + onSignPress: () => void; +} + +function SignatureModal({ + isVisible = true, + onDismiss, + onSignPress, +}: ModalProps) { + const Theme = useTheme(); + const [isLoading, setIsLoading] = useState(false); + + const handleModalHide = () => { + setIsLoading(false); + }; + + const handleSignPress = () => { + setIsLoading(!isLoading); + onSignPress?.(); + }; + + return ( + + +
+ + {isLoading ? 'Requesting sign-in' : 'Sign in to enable notifications'} + + + To fully use Web3Inbox, please sign with your wallet + +