├── assets ├── image │ ├── .gitkeep │ ├── logo.png │ └── app-icon.png ├── json │ └── .gitkeep ├── raw │ └── .gitkeep ├── video │ └── .gitkeep └── index.d.ts ├── __tests__ ├── contracts │ ├── .gitkeep │ └── Hello.test.js └── frontend │ ├── .gitkeep │ └── App.test.tsx ├── frontend ├── scan │ ├── index.ts │ └── components │ │ ├── index.ts │ │ ├── Scanner.BottomSheet.tsx │ │ ├── Scanner.Title.tsx │ │ └── Scanner.tsx ├── lookup │ ├── index.ts │ ├── hooks │ │ ├── index.ts │ │ └── useCollectionLookup.ts │ ├── components │ │ ├── index.ts │ │ ├── Lookup.Collection.tsx │ │ └── Lookup.Collection.Contract.tsx │ ├── constants │ │ ├── index.ts │ │ ├── getCollectionByAssetOwner.ts │ │ ├── collectionsToPrimaryAssetContractIds.ts │ │ └── unionCollections.ts │ └── @types │ │ └── index.ts ├── theme │ ├── hooks │ │ ├── index.ts │ │ └── useTheme.ts │ ├── index.ts │ ├── contexts │ │ ├── index.ts │ │ └── ThemeContext.ts │ └── @types │ │ └── index.ts ├── navigation │ ├── @types │ │ └── index.ts │ ├── index.ts │ └── components │ │ ├── index.ts │ │ └── Navigation.Header.tsx └── App.tsx ├── .cspell.json ├── android ├── app │ ├── debug.keystore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ ├── ic_launcher_round.png │ │ │ │ │ └── ic_launcher_foreground.png │ │ │ │ ├── drawable │ │ │ │ │ ├── splashscreen_image.png │ │ │ │ │ └── splashscreen.xml │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ └── styles.xml │ │ │ │ └── mipmap-anydpi-v26 │ │ │ │ │ ├── ic_launcher.xml │ │ │ │ │ └── ic_launcher_round.xml │ │ │ ├── java │ │ │ │ └── io │ │ │ │ │ └── github │ │ │ │ │ └── plugworld │ │ │ │ │ └── nftvip │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ └── MainApplication.java │ │ │ └── AndroidManifest.xml │ │ └── debug │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── nftvip │ │ │ └── ReactNativeFlipper.java │ ├── proguard-rules.pro │ ├── build_defs.bzl │ ├── BUCK │ └── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── settings.gradle ├── build.gradle ├── gradle.properties ├── gradlew.bat └── gradlew ├── ios ├── nftvip │ ├── Images.xcassets │ │ ├── Contents.json │ │ ├── SplashScreen.imageset │ │ │ ├── splashscreen.png │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset │ │ │ ├── App-Icon-20x20@1x.png │ │ │ ├── App-Icon-20x20@2x.png │ │ │ ├── App-Icon-20x20@3x.png │ │ │ ├── App-Icon-29x29@1x.png │ │ │ ├── App-Icon-29x29@2x.png │ │ │ ├── App-Icon-29x29@3x.png │ │ │ ├── App-Icon-40x40@1x.png │ │ │ ├── App-Icon-40x40@2x.png │ │ │ ├── App-Icon-40x40@3x.png │ │ │ ├── App-Icon-60x60@2x.png │ │ │ ├── App-Icon-60x60@3x.png │ │ │ ├── App-Icon-76x76@1x.png │ │ │ ├── App-Icon-76x76@2x.png │ │ │ ├── ItunesArtwork@2x.png │ │ │ ├── App-Icon-83.5x83.5@2x.png │ │ │ └── Contents.json │ │ └── SplashScreenBackground.imageset │ │ │ ├── background.png │ │ │ └── Contents.json │ ├── nftvip.entitlements │ ├── main.m │ ├── AppDelegate.h │ ├── Supporting │ │ └── Expo.plist │ ├── Info.plist │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── SplashScreen.storyboard │ └── AppDelegate.m ├── nftvip.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── Podfile ├── nftvip.xcodeproj │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── nftvip.xcscheme │ └── project.pbxproj └── Podfile.lock ├── .env.example ├── index.d.ts ├── scripts ├── postinstall.ts ├── web.ts ├── ios.ts └── android.ts ├── metro.config.js ├── babel.config.js ├── app.json ├── README.md ├── contracts └── Hello.sol ├── tsconfig.json ├── index.js ├── hardhat.config.js ├── .eslintrc.json ├── .gitignore └── package.json /assets/image/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/json/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/raw/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /assets/video/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/contracts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/frontend/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /frontend/scan/index.ts: -------------------------------------------------------------------------------- 1 | export * from './components'; 2 | -------------------------------------------------------------------------------- /.cspell.json: -------------------------------------------------------------------------------- 1 | { 2 | "words": [ 3 | "bytecode", 4 | "dapp" 5 | ] 6 | } -------------------------------------------------------------------------------- /frontend/lookup/index.ts: -------------------------------------------------------------------------------- 1 | export * from './@types'; 2 | export * from './hooks'; 3 | -------------------------------------------------------------------------------- /frontend/theme/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export {default as useTheme} from './useTheme'; 2 | -------------------------------------------------------------------------------- /frontend/navigation/@types/index.ts: -------------------------------------------------------------------------------- 1 | export enum RouteNames { 2 | SCAN = '/scan', 3 | } 4 | -------------------------------------------------------------------------------- /frontend/navigation/index.ts: -------------------------------------------------------------------------------- 1 | export * from './@types'; 2 | export * from './components'; 3 | -------------------------------------------------------------------------------- /assets/image/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/assets/image/logo.png -------------------------------------------------------------------------------- /assets/image/app-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/assets/image/app-icon.png -------------------------------------------------------------------------------- /android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/debug.keystore -------------------------------------------------------------------------------- /frontend/lookup/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export {default as useCollectionLookup} from './useCollectionLookup'; 2 | -------------------------------------------------------------------------------- /frontend/navigation/components/index.ts: -------------------------------------------------------------------------------- 1 | export {default as NavigationHeader} from './Navigation.Header'; 2 | -------------------------------------------------------------------------------- /frontend/theme/index.ts: -------------------------------------------------------------------------------- 1 | export * from './@types'; 2 | export * from './contexts'; 3 | export * from './hooks'; 4 | -------------------------------------------------------------------------------- /frontend/theme/contexts/index.ts: -------------------------------------------------------------------------------- 1 | export {defaultValue as defaultThemeValue, default as ThemeContext} from './ThemeContext'; 2 | -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "expo" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/splashscreen_image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/drawable/splashscreen_image.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | HARDHAT_PORT=8545 2 | HARDHAT_PRIVATE_KEY=0xd251348b64011c731d1a08535bb51d4f62e3dcee21db54af051017f619c66b01 3 | EIP721_SUBGRAPH_API_KEY=thegraph-api-key-here 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | nftvip 4 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | declare module '@env' { 2 | export const HARDHAT_PORT: string; 3 | export const HARDHAT_PRIVATE_KEY: string; 4 | export const EIP721_SUBGRAPH_API_KEY: string; 5 | } -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/SplashScreen.imageset/splashscreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/SplashScreen.imageset/splashscreen.png -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@1x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@2x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-20x20@3x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@1x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@2x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-29x29@3x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@1x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@2x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-40x40@3x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@2x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-60x60@3x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@1x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-76x76@2x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/ItunesArtwork@2x.png -------------------------------------------------------------------------------- /frontend/lookup/components/index.ts: -------------------------------------------------------------------------------- 1 | export {default as LookupCollectionContract} from './Lookup.Collection.Contract'; 2 | export {default as LookupCollection} from './Lookup.Collection'; 3 | -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/AppIcon.appiconset/App-Icon-83.5x83.5@2x.png -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/SplashScreenBackground.imageset/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PlugWorld/nftvip/HEAD/ios/nftvip/Images.xcassets/SplashScreenBackground.imageset/background.png -------------------------------------------------------------------------------- /frontend/scan/components/index.ts: -------------------------------------------------------------------------------- 1 | export {default as ScannerBottomSheet} from './Scanner.BottomSheet'; 2 | export {default as ScannerTitle} from './Scanner.Title'; 3 | export {default as Scanner} from './Scanner'; 4 | -------------------------------------------------------------------------------- /ios/nftvip/nftvip.entitlements: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /scripts/postinstall.ts: -------------------------------------------------------------------------------- 1 | import 'dotenv/config'; 2 | import * as child_process from 'child_process'; 3 | import {macos} from 'platform-detect'; 4 | 5 | if (macos) { 6 | child_process.execSync('npx pod-install', { stdio: 'inherit' }); 7 | } -------------------------------------------------------------------------------- /metro.config.js: -------------------------------------------------------------------------------- 1 | const extraNodeModules = require('node-libs-browser'); 2 | 3 | module.exports = { 4 | resolver: { 5 | extraNodeModules, 6 | }, 7 | transformer: { 8 | assetPlugins: ['expo-asset/tools/hashAssetFiles'], 9 | }, 10 | }; -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = function(api) { 2 | api.cache(true); 3 | return { 4 | presets: ['babel-preset-expo'], 5 | plugins: [ 6 | ['module:react-native-dotenv'], 7 | 'react-native-reanimated/plugin', 8 | ], 9 | }; 10 | }; -------------------------------------------------------------------------------- /ios/nftvip/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char * argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | #FFFFFF 5 | #023c69 6 | -------------------------------------------------------------------------------- /frontend/lookup/constants/index.ts: -------------------------------------------------------------------------------- 1 | export {default as collectionsToPrimaryAssetContractIds} from './collectionsToPrimaryAssetContractIds'; 2 | export {default as getCollectionByAssetOwner} from './getCollectionByAssetOwner'; 3 | export {default as unionCollections} from './unionCollections'; 4 | -------------------------------------------------------------------------------- /frontend/theme/hooks/useTheme.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | 3 | import {ThemeContextValue} from '../@types'; 4 | import {ThemeContext} from '../contexts'; 5 | 6 | export default function useTheme(): ThemeContextValue { 7 | return React.useContext(ThemeContext); 8 | } -------------------------------------------------------------------------------- /ios/nftvip.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ios/nftvip.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'nftvip' 2 | 3 | apply from: '../node_modules/react-native-unimodules/gradle.groovy' 4 | includeUnimodulesProjects() 5 | 6 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); 7 | applyNativeModulesSettingsGradle(settings) 8 | 9 | include ':app' 10 | -------------------------------------------------------------------------------- /ios/nftvip/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import 4 | #import 5 | 6 | #import 7 | 8 | @interface AppDelegate : UMAppDelegateWrapper 9 | 10 | @end 11 | -------------------------------------------------------------------------------- /android/app/src/main/res/drawable/splashscreen.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /__tests__/frontend/App.test.tsx: -------------------------------------------------------------------------------- 1 | import Enzyme from 'enzyme'; 2 | import Adapter from 'enzyme-adapter-react-16'; 3 | import React from 'react'; 4 | 5 | import App from '../../frontend/App'; 6 | 7 | Enzyme.configure({ adapter: new Adapter() }); 8 | 9 | test('renders correctly', () => { 10 | const wrapper = Enzyme.shallow(); 11 | 12 | expect(wrapper.find({ testID: 'tid-message'}).contains('Loading...')).toBe(true); 13 | }); -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "expo": { 3 | "ios": { 4 | "bundleIdentifier": "io.github.plugworld.nftvip" 5 | }, 6 | "android": { 7 | "package": "io.github.plugworld.nftvip" 8 | }, 9 | "scheme": "nftvip", 10 | "icon": "assets/image/app-icon.png", 11 | "splash": { 12 | "image": "assets/image/app-icon.png", 13 | "resizeMode": "contain", 14 | "backgroundColor": "#222222" 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nftvip 2 | 3 | > if you wanna get on the ⛵, you gotta own a 🍌 🦍 4 | 5 | ## What is `nftvip`? 6 | 7 | [**nftvip**](https://github.com/PlugWorld/nftvip/) (_"nifty-vip"_) is like a ticket scanner app, if the tickets you were scanning for were [**NFTs**](https://en.wikipedia.org/wiki/Non-fungible_token). 8 | 9 | ([**video**](https://twitter.com/cawfree/status/1441778815185797121)) 10 | 11 | ## License 12 | [**MIT**](./LICENSE) 13 | -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/SplashScreen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "splashscreen.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/SplashScreenBackground.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "universal", 5 | "filename": "background.png", 6 | "scale": "1x" 7 | }, 8 | { 9 | "idiom": "universal", 10 | "scale": "2x" 11 | }, 12 | { 13 | "idiom": "universal", 14 | "scale": "3x" 15 | } 16 | ], 17 | "info": { 18 | "version": 1, 19 | "author": "expo" 20 | } 21 | } -------------------------------------------------------------------------------- /contracts/Hello.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity >=0.4.22 <0.9.0; 3 | 4 | import "hardhat/console.sol"; 5 | 6 | contract Hello { 7 | string defaultSuffix; 8 | constructor() { 9 | defaultSuffix = '!'; 10 | } 11 | function sayHello(string memory name) public view returns(string memory) { 12 | console.log("Saying hello to %s!", msg.sender); 13 | return string(abi.encodePacked("Welcome to ", name, defaultSuffix)); 14 | } 15 | } -------------------------------------------------------------------------------- /assets/index.d.ts: -------------------------------------------------------------------------------- 1 | import { ImageSourcePropType } from 'react-native'; 2 | 3 | declare module '*.png' { 4 | export default ImageSourcePropType; 5 | } 6 | 7 | declare module '*.jpg' { 8 | export default ImageSourcePropType; 9 | } 10 | 11 | declare module '*.jpeg' { 12 | export default ImageSourcePropType; 13 | } 14 | 15 | declare module '*.gif' { 16 | export default ImageSourcePropType; 17 | } 18 | 19 | declare module '*.mp4' { 20 | export default unknown; 21 | } -------------------------------------------------------------------------------- /frontend/lookup/constants/getCollectionByAssetOwner.ts: -------------------------------------------------------------------------------- 1 | import axios from 'axios'; 2 | 3 | import {OpenSeaData} from '../@types'; 4 | 5 | export default async function getCollectionByAssetOwner( 6 | withAssetOwner: string 7 | ): Promise { 8 | const url = `https://api.opensea.io/api/v1/collections?asset_owner=${withAssetOwner}&offset=0`; 9 | const {data} = await axios({ 10 | method: 'get', 11 | url, 12 | }); 13 | return data as OpenSeaData; 14 | } -------------------------------------------------------------------------------- /android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /frontend/lookup/constants/collectionsToPrimaryAssetContractIds.ts: -------------------------------------------------------------------------------- 1 | import {Collection, PrimaryAssetContract} from '../@types'; 2 | 3 | export default function collectionsToPrimaryAssetContractIds( 4 | collections: readonly Collection[] 5 | ): readonly string[] { 6 | return collections.reduce( 7 | (arr: readonly string[], {primary_asset_contracts}: Collection) => [ 8 | ...arr, 9 | ...primary_asset_contracts.map(({address}: PrimaryAssetContract) => address), 10 | ], 11 | [], 12 | ); 13 | } 14 | -------------------------------------------------------------------------------- /__tests__/contracts/Hello.test.js: -------------------------------------------------------------------------------- 1 | 2 | const { expect } = require('chai'); 3 | 4 | describe("Hello", function() { 5 | it("Should return the default greeting", async function() { 6 | const Hello = await ethers.getContractFactory("Hello"); 7 | const hello = await Hello.deploy(); 8 | 9 | await hello.deployed(); 10 | 11 | expect(await hello.sayHello("React Native")).to.equal("Welcome to React Native!"); 12 | expect(await hello.sayHello("Web3")).to.equal("Welcome to Web3!"); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /scripts/web.ts: -------------------------------------------------------------------------------- 1 | import 'dotenv/config'; 2 | import * as child_process from 'child_process'; 3 | 4 | import * as appRootPath from 'app-root-path'; 5 | import * as chokidar from 'chokidar'; 6 | 7 | const opts: child_process.ExecSyncOptions = { cwd: `${appRootPath}`, stdio: 'inherit' }; 8 | 9 | chokidar.watch('contracts').on('all', () => { 10 | child_process.execSync('npx hardhat compile', opts); 11 | }); 12 | 13 | child_process.execSync('npx kill-port 8545', opts); 14 | child_process.execSync('expo web & npx hardhat node --hostname 0.0.0.0 &', opts); -------------------------------------------------------------------------------- /frontend/lookup/@types/index.ts: -------------------------------------------------------------------------------- 1 | export type PrimaryAssetContract = { 2 | readonly address: string; 3 | readonly asset_contract_type: string; 4 | readonly created_date: string; 5 | readonly image_url: string; 6 | readonly name: string; 7 | readonly nft_version: string; 8 | readonly symbol: string; 9 | readonly owner: number; 10 | }; 11 | 12 | export type Collection = { 13 | readonly primary_asset_contracts: readonly PrimaryAssetContract[]; 14 | readonly banner_image_url: string; 15 | }; 16 | 17 | export type OpenSeaData = readonly Collection[]; -------------------------------------------------------------------------------- /scripts/ios.ts: -------------------------------------------------------------------------------- 1 | import 'dotenv/config'; 2 | import * as child_process from 'child_process'; 3 | 4 | import * as appRootPath from 'app-root-path'; 5 | import * as chokidar from 'chokidar'; 6 | 7 | const opts: child_process.ExecSyncOptions = { cwd: `${appRootPath}`, stdio: 'inherit' }; 8 | 9 | chokidar.watch('contracts').on('all', () => { 10 | child_process.execSync('npx hardhat compile', opts); 11 | }); 12 | 13 | child_process.execSync('npx kill-port 8545', opts); 14 | child_process.execSync('npx hardhat node --hostname 0.0.0.0 & react-native run-ios &', opts); -------------------------------------------------------------------------------- /ios/nftvip/Supporting/Expo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | EXUpdatesSDKVersion 6 | 42.0.0 7 | EXUpdatesURL 8 | https://exp.host/@cawfree/nftvip 9 | EXUpdatesEnabled 10 | 11 | EXUpdatesCheckOnLaunch 12 | ALWAYS 13 | EXUpdatesLaunchWaitMs 14 | 0 15 | 16 | -------------------------------------------------------------------------------- /scripts/android.ts: -------------------------------------------------------------------------------- 1 | import 'dotenv/config'; 2 | import * as child_process from 'child_process'; 3 | 4 | import * as appRootPath from 'app-root-path'; 5 | import * as chokidar from 'chokidar'; 6 | 7 | const opts: child_process.ExecSyncOptions = { cwd: `${appRootPath}`, stdio: 'inherit' }; 8 | 9 | chokidar.watch('contracts').on('all', () => { 10 | child_process.execSync('npx hardhat compile', opts); 11 | }); 12 | 13 | child_process.execSync('npx kill-port 8545', opts); 14 | child_process.execSync('adb reverse tcp:8545 tcp:8545', opts); 15 | child_process.execSync('npx hardhat node --hostname 0.0.0.0 & react-native run-android &', opts); -------------------------------------------------------------------------------- /android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /ios/Podfile: -------------------------------------------------------------------------------- 1 | require_relative '../node_modules/react-native/scripts/react_native_pods' 2 | require_relative '../node_modules/react-native-unimodules/cocoapods.rb' 3 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 4 | 5 | platform :ios, '11.0' 6 | 7 | target 'nftvip' do 8 | use_unimodules! 9 | config = use_native_modules! 10 | 11 | use_react_native!(:path => config["reactNativePath"]) 12 | 13 | # Uncomment to opt-in to using Flipper 14 | # 15 | # if !ENV['CI'] 16 | # use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1') 17 | # post_install do |installer| 18 | # flipper_post_install(installer) 19 | # end 20 | # end 21 | end 22 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "allowSyntheticDefaultImports": true, 4 | "jsx": "react-native", 5 | "lib": [ 6 | "dom", 7 | "esnext" 8 | ], 9 | "moduleResolution": "node", 10 | "noEmit": true, 11 | "skipLibCheck": true, 12 | "resolveJsonModule": true, 13 | "typeRoots": [ 14 | "index.d.ts" 15 | ], 16 | "types": [ 17 | "node", 18 | "jest" 19 | ] 20 | }, 21 | "include": [ 22 | "**/*.ts", 23 | "**/*.tsx" 24 | ], 25 | "exclude": [ 26 | "node_modules", 27 | "babel.config.js", 28 | "metro.config.js", 29 | "jest.config.js", 30 | "**/*.test.tsx", 31 | "**/*.test.ts", 32 | "**/*.spec.tsx", 33 | "**/*.spec.ts" 34 | ] 35 | } -------------------------------------------------------------------------------- /frontend/theme/@types/index.ts: -------------------------------------------------------------------------------- 1 | import {StyleProp, TextStyle} from "react-native"; 2 | 3 | export type ThemeHints = { 4 | readonly bottomBarHeight: number; 5 | readonly marginExtraShort: number; 6 | readonly marginShort: number; 7 | readonly marginStandard: number; 8 | readonly statusBarHeight: number; 9 | }; 10 | 11 | export type Colors = { 12 | readonly primary: string; 13 | readonly backgroundColor: string; 14 | readonly disabledColor: string; 15 | }; 16 | 17 | export type Fonts = { 18 | readonly h1: StyleProp; 19 | readonly h2: StyleProp; 20 | readonly p1: StyleProp; 21 | }; 22 | 23 | export type ThemeContextValue = { 24 | readonly fonts: Fonts; 25 | readonly systemColors: Colors; 26 | readonly hints: ThemeHints; 27 | }; 28 | -------------------------------------------------------------------------------- /android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 14 | 17 | -------------------------------------------------------------------------------- /frontend/theme/contexts/ThemeContext.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import {getStatusBarHeight} from 'react-native-status-bar-height'; 3 | 4 | import {ThemeContextValue} from '../@types'; 5 | 6 | export const defaultValue: ThemeContextValue = { 7 | fonts: { 8 | h1: { 9 | fontSize: 35, 10 | }, 11 | h2: { 12 | fontSize: 25, 13 | }, 14 | p1: { 15 | fontSize: 18, 16 | }, 17 | }, 18 | hints: { 19 | bottomBarHeight: 30, 20 | marginExtraShort: 5, 21 | marginShort: 10, 22 | marginStandard: 15, 23 | statusBarHeight: getStatusBarHeight(false), 24 | }, 25 | // https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/ 26 | systemColors: { 27 | backgroundColor: 'rgb(242,242,247)', 28 | disabledColor: 'rgb(199,199,204)', 29 | primary: 'rgb(0,122,255)', 30 | }, 31 | }; 32 | 33 | export default React.createContext(defaultValue); -------------------------------------------------------------------------------- /frontend/navigation/components/Navigation.Header.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import {StyleProp, StyleSheet, useWindowDimensions, View, ViewStyle} from 'react-native'; 3 | 4 | import {useTheme} from '../../theme'; 5 | 6 | const styles = StyleSheet.create({ 7 | absolute: { 8 | position: 'absolute', 9 | }, 10 | }); 11 | 12 | export default function NavigationHeader({children, height, style}: { 13 | readonly children?: JSX.Element | readonly JSX.Element[]; 14 | readonly height: number; 15 | readonly style?: StyleProp; 16 | }): JSX.Element { 17 | const {width} = useWindowDimensions(); 18 | const {hints} = useTheme(); 19 | const {statusBarHeight} = hints; 20 | return ( 21 | 22 | 29 | 30 | ); 31 | } 32 | 33 | -------------------------------------------------------------------------------- /frontend/lookup/components/Lookup.Collection.tsx: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import {StyleProp, View, ViewStyle} from 'react-native'; 3 | 4 | import {useTheme} from '../../theme'; 5 | import {Collection, PrimaryAssetContract} from '../@types'; 6 | 7 | import Contract from './Lookup.Collection.Contract'; 8 | 9 | export default function LookupCollection({collection, style}: { 10 | readonly collection: Collection; 11 | readonly style?: StyleProp; 12 | }): JSX.Element { 13 | const {hints} = useTheme(); 14 | const {marginShort} = hints; 15 | const {primary_asset_contracts} = collection; 16 | return ( 17 | 18 | {primary_asset_contracts 19 | .map((primaryAssetContract: PrimaryAssetContract, i: number, orig: readonly PrimaryAssetContract[]) => ( 20 | 21 | 22 | {i < orig.length - 1 && ( 23 | 24 | )} 25 | 26 | ))} 27 | 28 | ); 29 | } 30 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "29.0.3" 6 | minSdkVersion = 21 7 | compileSdkVersion = 30 8 | targetSdkVersion = 30 9 | } 10 | repositories { 11 | google() 12 | jcenter() 13 | } 14 | dependencies { 15 | classpath("com.android.tools.build:gradle:4.1.0") 16 | 17 | // NOTE: Do not place your application dependencies here; they belong 18 | // in the individual module build.gradle files 19 | } 20 | } 21 | 22 | allprojects { 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 27 | url("$rootDir/../node_modules/react-native/android") 28 | } 29 | maven { 30 | // Android JSC is installed from npm 31 | url("$rootDir/../node_modules/jsc-android/dist") 32 | } 33 | 34 | google() 35 | jcenter() 36 | maven { url 'https://www.jitpack.io' } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /frontend/lookup/constants/unionCollections.ts: -------------------------------------------------------------------------------- 1 | import {Collection, PrimaryAssetContract} from '../@types'; 2 | 3 | import collectionsToPrimaryAssetContractIds from './collectionsToPrimaryAssetContractIds'; 4 | 5 | // Returns the overlap between two collections. 6 | export default function unionCollections({a, b}: { 7 | readonly a: readonly Collection[]; 8 | readonly b: readonly Collection[]; 9 | }): readonly Collection[] { 10 | const a_0 = collectionsToPrimaryAssetContractIds(a); 11 | const b_0 = collectionsToPrimaryAssetContractIds(b); 12 | const sharedPrimaryAssetContractIds = [ 13 | ...(a_0.filter((e: string) => b_0.indexOf(e) >= 0)), 14 | ...(b_0.filter((e: string) => a_0.indexOf(e) >= 0)), 15 | ].filter((e, i, orig) => orig.indexOf(e) === i); 16 | 17 | const allCollections = [...a, ...b]; 18 | // Iterate through all of the found shared identifiers and filter to return contracts that only both 19 | // wallets share. 20 | return sharedPrimaryAssetContractIds 21 | .map((supportedContractId: string) => allCollections.find( 22 | ({primary_asset_contracts}: Collection) => { 23 | const addresses = primary_asset_contracts.map(({address}: PrimaryAssetContract) => address); 24 | return addresses.indexOf(supportedContractId) >= 0; 25 | }, 26 | )) 27 | .filter(Boolean); 28 | } -------------------------------------------------------------------------------- /android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "io.github.plugworld.nftvip", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "io.github.plugworld.nftvip", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | # AndroidX package structure to make it clearer which packages are bundled with the 21 | # Android operating system, and which are packaged with your app's APK 22 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 23 | android.useAndroidX=true 24 | 25 | # Automatically convert third-party libraries to use AndroidX 26 | android.enableJetifier=true 27 | 28 | # Version of flipper SDK to use with React Native 29 | FLIPPER_VERSION=0.54.0 30 | 31 | # The hosted JavaScript engine 32 | # Supported values: expo.jsEngine = "hermes" | "jsc" 33 | expo.jsEngine=jsc 34 | 35 | 36 | # 4GB Heap Size 37 | org.gradle.jvmargs=-Xmx4608m -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable eslint-comments/no-unlimited-disable */ 2 | /* eslint-disable */ 3 | 4 | // This file has been auto-generated by Ξ create-react-native-dapp Ξ. 5 | // Feel free to modify it, but please take care to maintain the exact 6 | // procedure listed between /* dapp-begin */ and /* dapp-end */, as 7 | // this will help persist a known template for future migrations. 8 | 9 | /* dapp-begin */ 10 | const { Platform, LogBox } = require('react-native'); 11 | 12 | if (Platform.OS !== 'web') { 13 | require('react-native-get-random-values'); 14 | LogBox.ignoreLogs( 15 | [ 16 | "Warning: The provided value 'ms-stream' is not a valid 'responseType'.", 17 | "Warning: The provided value 'moz-chunked-arraybuffer' is not a valid 'responseType'.", 18 | /ReactNativeFiberHostComponent/, 19 | "Easing was renamed to EasingNode in Reanimated 2. Please use EasingNode instead", 20 | ], 21 | ); 22 | } 23 | 24 | if (typeof Buffer === 'undefined') { 25 | global.Buffer = require('buffer').Buffer; 26 | } 27 | 28 | global.btoa = global.btoa || require('base-64').encode; 29 | global.atob = global.atob || require('base-64').decode; 30 | 31 | process.version = 'v9.40'; 32 | 33 | const { registerRootComponent } = require('expo'); 34 | const { default: App } = require('./frontend/App'); 35 | 36 | // registerRootComponent calls AppRegistry.registerComponent('main', () => App); 37 | // It also ensures that whether you load the app in the Expo client or in a native build, 38 | // the environment is set up appropriately 39 | registerRootComponent(App); 40 | /* dapp-end */ -------------------------------------------------------------------------------- /hardhat.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @type import('hardhat/config').HardhatUserConfig 3 | */ 4 | require("@nomiclabs/hardhat-waffle"); 5 | require("dotenv/config"); 6 | 7 | const { HARDHAT_PORT } = process.env; 8 | 9 | module.exports = { 10 | solidity: "0.7.3", 11 | networks: { 12 | localhost: { url: `http://127.0.0.1:${HARDHAT_PORT}` }, 13 | hardhat: { 14 | accounts: [{"privateKey":"0xd251348b64011c731d1a08535bb51d4f62e3dcee21db54af051017f619c66b01","balance":"1000000000000000000000"},{"privateKey":"0xd0df56a7445374dba176ddf3a90f481b7dd7b636e38e80131533d149c6074986","balance":"1000000000000000000000"},{"privateKey":"0xe48d9d278e8c8141d842196be3658abc540123031877e06c2e9aeb3784787caa","balance":"1000000000000000000000"},{"privateKey":"0xa4f7484ec97ddd2cbc61d0aa0054ca17a6cf04015137af284c9483bdf972efc9","balance":"1000000000000000000000"},{"privateKey":"0xa324df072521cca25ea2968327b0e5f3269a5bd012686ae380563a5d8e0bcf6e","balance":"1000000000000000000000"},{"privateKey":"0x9fb90ff35794fdbc8200b2a578313964fa9e9b4e73f38e2302a2cf0b8d136f8e","balance":"1000000000000000000000"},{"privateKey":"0x56f93cfc4d66cecf175db947cf6ce4c0845be316c1825c513c7daa5176a90da2","balance":"1000000000000000000000"},{"privateKey":"0xd428a46b417d5fb28d98ce7711ae84202969b7497033f0309a2a34701bdb2788","balance":"1000000000000000000000"},{"privateKey":"0xbdc9bb6676120542b8d7ea1fcc6c16529caf45a5487f11c39318f4f92fa6ea8f","balance":"1000000000000000000000"},{"privateKey":"0xdad4fb9e85f9b6aff877f36189b371acf29330b03c18decdf54ca480a22f44fd","balance":"1000000000000000000000"}] 15 | }, 16 | }, 17 | paths: { 18 | sources: './contracts', 19 | tests: './__tests__/contracts', 20 | cache: './cache', 21 | artifacts: './artifacts', 22 | }, 23 | }; -------------------------------------------------------------------------------- /android/app/src/main/java/io/github/plugworld/nftvip/MainActivity.java: -------------------------------------------------------------------------------- 1 | package io.github.plugworld.nftvip; 2 | 3 | import android.os.Bundle; 4 | 5 | import com.facebook.react.ReactActivity; 6 | import com.facebook.react.ReactActivityDelegate; 7 | import com.facebook.react.ReactRootView; 8 | import com.swmansion.gesturehandler.react.RNGestureHandlerEnabledRootView; 9 | 10 | import expo.modules.splashscreen.singletons.SplashScreen; 11 | import expo.modules.splashscreen.SplashScreenImageResizeMode; 12 | 13 | public class MainActivity extends ReactActivity { 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | // Set the theme to AppTheme BEFORE onCreate to support 17 | // coloring the background, status bar, and navigation bar. 18 | // This is required for expo-splash-screen. 19 | setTheme(R.style.AppTheme); 20 | super.onCreate(null); 21 | // SplashScreen.show(...) has to be called after super.onCreate(...) 22 | // Below line is handled by '@expo/configure-splash-screen' command and it's discouraged to modify it manually 23 | SplashScreen.show(this, SplashScreenImageResizeMode.CONTAIN, ReactRootView.class, false); 24 | } 25 | 26 | 27 | /** 28 | * Returns the name of the main component registered from JavaScript. 29 | * This is used to schedule rendering of the component. 30 | */ 31 | @Override 32 | protected String getMainComponentName() { 33 | return "main"; 34 | } 35 | 36 | @Override 37 | protected ReactActivityDelegate createReactActivityDelegate() { 38 | return new ReactActivityDelegate(this, getMainComponentName()) { 39 | @Override 40 | protected ReactRootView createRootView() { 41 | return new RNGestureHandlerEnabledRootView(MainActivity.this); 42 | } 43 | }; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /frontend/scan/components/Scanner.BottomSheet.tsx: -------------------------------------------------------------------------------- 1 | import BottomSheet from '@gorhom/bottom-sheet'; 2 | import * as React from 'react'; 3 | import {Keyboard, StyleSheet, TouchableOpacity, View} from 'react-native'; 4 | 5 | import {useTheme} from "../../theme"; 6 | 7 | const defaultSnapPoints: readonly string[] = [ 8 | '5%', 9 | '55%', 10 | '100%', 11 | ]; 12 | 13 | const defaultRequestDismiss = () => undefined; 14 | 15 | export default function ScannerBottomSheet({ 16 | children, 17 | onRequestDismiss = defaultRequestDismiss, 18 | snapPoints = defaultSnapPoints, 19 | visible = false, 20 | }: { 21 | readonly children: JSX.Element | readonly JSX.Element[]; 22 | readonly snapPoints?: readonly string[]; 23 | // eslint-disable-next-line functional/no-return-void 24 | readonly onRequestDismiss?: () => void; 25 | readonly visible?: boolean; 26 | }): JSX.Element { 27 | const ref = React.useRef(null); 28 | const {hints} = useTheme(); 29 | const {bottomBarHeight, marginExtraShort} = hints; 30 | 31 | React.useEffect(() => { 32 | if (ref?.current) { 33 | const {snapTo} = ref.current; 34 | if (visible) { 35 | snapTo(1); 36 | } else { 37 | snapTo(0); 38 | } 39 | } 40 | }, [visible]); 41 | const onChange = React.useCallback((nextIndex: number) => { 42 | (nextIndex < 2) && Keyboard.dismiss(); 43 | }, []); 44 | return ( 45 | 46 | 50 | 56 | 57 | {children} 58 | 59 | 60 | ); 61 | } 62 | -------------------------------------------------------------------------------- /frontend/lookup/components/Lookup.Collection.Contract.tsx: -------------------------------------------------------------------------------- 1 | import {BlurView} from '@react-native-community/blur'; 2 | import * as React from 'react'; 3 | import {StyleSheet, Text, View} from 'react-native'; 4 | import FastImage from 'react-native-fast-image'; 5 | import TouchableScale from 'react-native-touchable-scale'; 6 | 7 | import {useTheme} from '../../theme'; 8 | import {PrimaryAssetContract} from '../@types'; 9 | 10 | const styles = StyleSheet.create({ 11 | flexEnd: {alignItems: 'flex-end', justifyContent: 'flex-end'}, 12 | noOverflow: {overflow: 'hidden'}, 13 | }); 14 | 15 | export default function LookupCollectionContract({primaryAssetContract}: { 16 | readonly primaryAssetContract: PrimaryAssetContract; 17 | }): JSX.Element { 18 | const {fonts, hints} = useTheme(); 19 | const {h1, h2} = fonts; 20 | const {marginStandard, marginShort} = hints; 21 | const {image_url: uri, name, symbol} = primaryAssetContract; 22 | return ( 23 | 25 | 31 | 32 | 33 | 39 | 45 | 46 | 47 | ); 48 | } 49 | -------------------------------------------------------------------------------- /frontend/lookup/hooks/useCollectionLookup.ts: -------------------------------------------------------------------------------- 1 | import * as React from 'react'; 2 | import {useDebouncedCallback} from 'use-debounce'; 3 | 4 | import { OpenSeaData } from '../@types'; 5 | import {getCollectionByAssetOwner} from "../constants"; 6 | 7 | const invalidAddressError 8 | = new Error('Unable to lookup tokens because the supplied address is invalid.'); 9 | 10 | type State = { 11 | readonly data: OpenSeaData | null; 12 | readonly error?: Error; 13 | readonly loading: boolean; 14 | }; 15 | 16 | // TODO: support different formats i.e.: 17 | // Missing 0x prefix 18 | // wyre-style ethereum:// 19 | // multiple chains i.e. Tezos 20 | export default function useCollectionLookup({ 21 | duration = 500, 22 | ethereumAddresses, 23 | }: { 24 | readonly duration?: number; 25 | readonly ethereumAddresses: readonly string[]; 26 | }): State { 27 | const [state, setState] = React.useState({ 28 | data: null, 29 | error: invalidAddressError, 30 | loading: false, 31 | }); 32 | const shouldUpdateCollections = useDebouncedCallback( 33 | React.useCallback(async (withAssetOwners: readonly string[]) => { 34 | try { 35 | setState(e => ({ 36 | ...e, 37 | error: null, 38 | loading: true, 39 | })); 40 | const nextCollections = await Promise.all( 41 | withAssetOwners.map(getCollectionByAssetOwner) 42 | ); 43 | const nextData = nextCollections.reduce( 44 | (e, i) => [...e, ...i], 45 | [] 46 | ); 47 | setState({ 48 | data: nextData, 49 | error: undefined, 50 | loading: false, 51 | }); 52 | } catch (error) { 53 | setState(e => ({ 54 | ...e, 55 | error, 56 | loading: false, 57 | })); 58 | } 59 | }, []), 60 | duration 61 | ); 62 | 63 | React.useEffect(() => { 64 | void shouldUpdateCollections(ethereumAddresses); 65 | }, [ethereumAddresses]); 66 | 67 | return state; 68 | }; 69 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | "parser": "@typescript-eslint/parser", 4 | "env": { 5 | "es6": true 6 | }, 7 | "ignorePatterns": [ 8 | "node_modules", 9 | "build", 10 | "coverage", 11 | "babel.config.js", 12 | "metro.config.js", 13 | "hardhat.config.js", 14 | "__tests__/contracts" 15 | ], 16 | "plugins": [ 17 | "import", 18 | "eslint-comments", 19 | "functional", 20 | "react", 21 | "react-native" 22 | ], 23 | "extends": [ 24 | "eslint:recommended", 25 | "plugin:eslint-comments/recommended", 26 | "plugin:@typescript-eslint/recommended", 27 | "plugin:import/typescript", 28 | "plugin:functional/lite", 29 | "prettier", 30 | "prettier/@typescript-eslint" 31 | ], 32 | "globals": { 33 | "console": true, 34 | "__DEV__": true 35 | }, 36 | "rules": { 37 | "@typescript-eslint/explicit-module-boundary-types": "off", 38 | "eslint-comments/disable-enable-pair": [ 39 | "error", 40 | { 41 | "allowWholeFile": true 42 | } 43 | ], 44 | "eslint-comments/no-unused-disable": "error", 45 | "import/order": [ 46 | "error", 47 | { 48 | "newlines-between": "always", 49 | "alphabetize": { 50 | "order": "asc" 51 | } 52 | } 53 | ], 54 | "sort-imports": [ 55 | "error", 56 | { 57 | "ignoreDeclarationSort": true, 58 | "ignoreCase": true 59 | } 60 | ], 61 | "sort-keys": [ 62 | "error", 63 | "asc", 64 | { 65 | "caseSensitive": true, 66 | "natural": false, 67 | "minKeys": 2 68 | } 69 | ], 70 | "react-native/no-unused-styles": 2, 71 | "react-native/split-platform-components": 2, 72 | "react-native/no-inline-styles": 2, 73 | "react-native/no-color-literals": 2, 74 | "react-native/no-raw-text": 2, 75 | "react-native/no-single-element-style-arrays": 2 76 | }, 77 | "parserOptions": { 78 | "ecmaFeatures": { 79 | "jsx": true 80 | } 81 | } 82 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifacts 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | 61 | # Expo 62 | .expo/* 63 | web-build/ 64 | # @generated expo-cli sync-2138f1e3e130677ea10ea873f6d498e3890e677b 65 | # The following patterns were generated by expo-cli 66 | 67 | # OSX 68 | # 69 | .DS_Store 70 | 71 | # Xcode 72 | # 73 | build/ 74 | *.pbxuser 75 | !default.pbxuser 76 | *.mode1v3 77 | !default.mode1v3 78 | *.mode2v3 79 | !default.mode2v3 80 | *.perspectivev3 81 | !default.perspectivev3 82 | xcuserdata 83 | *.xccheckout 84 | *.moved-aside 85 | DerivedData 86 | *.hmap 87 | *.ipa 88 | *.xcuserstate 89 | project.xcworkspace 90 | 91 | # Android/IntelliJ 92 | # 93 | build/ 94 | .idea 95 | .gradle 96 | local.properties 97 | *.iml 98 | *.hprof 99 | 100 | # node.js 101 | # 102 | node_modules/ 103 | npm-debug.log 104 | yarn-error.log 105 | 106 | # BUCK 107 | buck-out/ 108 | \.buckd/ 109 | *.keystore 110 | !debug.keystore 111 | 112 | # Bundle artifacts 113 | *.jsbundle 114 | 115 | # CocoaPods 116 | /ios/Pods/ 117 | 118 | # Expo 119 | .expo/ 120 | web-build/ 121 | 122 | # @end expo-cli 123 | # Environment Variables (Store safe defaults in .env.example!) 124 | .env 125 | 126 | # Jest 127 | .snap 128 | 129 | # Package Managers 130 | package-lock.json 131 | 132 | # Hardhat 133 | artifacts/ 134 | cache/ -------------------------------------------------------------------------------- /android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /frontend/scan/components/Scanner.Title.tsx: -------------------------------------------------------------------------------- 1 | import {Ionicons} from '@expo/vector-icons'; 2 | import {useNavigation} from '@react-navigation/native'; 3 | import { StackNavigationProp } from '@react-navigation/stack'; 4 | import {useWalletConnect} from "@walletconnect/react-native-dapp"; 5 | import * as React from 'react'; 6 | import {StyleProp, StyleSheet, TouchableOpacity, View, ViewStyle} from 'react-native'; 7 | import FastImage from 'react-native-fast-image'; 8 | 9 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment 10 | // @ts-ignore 11 | import Logo from '../../../assets/image/logo.png'; 12 | import {NavigationHeader} from '../../navigation'; 13 | import {useTheme} from "../../theme"; 14 | 15 | const styles = StyleSheet.create({ 16 | flex: {flex: 1}, 17 | flexEnd: { 18 | justifyContent: 'flex-end', 19 | }, 20 | logo: { 21 | height: 50, 22 | width: 120, 23 | }, 24 | row: { 25 | alignItems: 'center', 26 | flexDirection: 'row', 27 | height: '100%', 28 | }, 29 | }); 30 | 31 | export default function ScannerTitle({height, style}: { 32 | readonly height: number; 33 | readonly style?: StyleProp; 34 | }): JSX.Element { 35 | const {systemColors, hints} = useTheme(); 36 | const {marginStandard} = hints; 37 | const {primary} = systemColors; 38 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment 39 | // @ts-ignore 40 | // eslint-disable-next-line @typescript-eslint/no-unused-vars 41 | const navigation = useNavigation>(); 42 | const connector = useWalletConnect(); 43 | const onPress = React.useCallback(() => { 44 | void (async () => { 45 | try { 46 | await connector.connected 47 | ? connector.killSession() 48 | : connector.connect(); 49 | } catch (e) { 50 | console.error(e); 51 | } 52 | })(); 53 | }, [connector]); 54 | const {connected} = connector; 55 | return ( 56 | 57 | 58 | 59 | 63 | 64 | {/* TODO: Something could go here. */} 65 | 66 | 71 | 72 | 73 | 74 | 75 | ); 76 | } 77 | -------------------------------------------------------------------------------- /ios/nftvip/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleDisplayName 8 | nftvip 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleGetInfoString 12 | 13 | CFBundleIconFile 14 | 15 | CFBundleIdentifier 16 | $(PRODUCT_BUNDLE_IDENTIFIER) 17 | CFBundleInfoDictionaryVersion 18 | 6.0 19 | CFBundleName 20 | $(PRODUCT_NAME) 21 | CFBundlePackageType 22 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 23 | CFBundleShortVersionString 24 | 1.0.0 25 | CFBundleSignature 26 | ???? 27 | CFBundleURLTypes 28 | 29 | 30 | CFBundleURLSchemes 31 | 32 | nftvip 33 | io.github.plugworld.nftvip 34 | 35 | 36 | 37 | CFBundleVersion 38 | 1 39 | LSApplicationCategoryType 40 | 41 | LSRequiresIPhoneOS 42 | 43 | NSAppTransportSecurity 44 | 45 | NSAllowsArbitraryLoads 46 | 47 | NSExceptionDomains 48 | 49 | localhost 50 | 51 | NSExceptionAllowsInsecureHTTPLoads 52 | 53 | 54 | 55 | 56 | NSCameraUsageDescription 57 | Allow $(PRODUCT_NAME) to use the camera 58 | NSHumanReadableCopyright 59 | 60 | NSMicrophoneUsageDescription 61 | Allow $(PRODUCT_NAME) to use the microphone 62 | UIAppFonts 63 | 64 | Ionicons.ttf 65 | 66 | UILaunchStoryboardName 67 | SplashScreen 68 | UIRequiredDeviceCapabilities 69 | 70 | armv7 71 | 72 | UIRequiresFullScreen 73 | 74 | UIStatusBarStyle 75 | UIStatusBarStyleDefault 76 | UISupportedInterfaceOrientations 77 | 78 | UIInterfaceOrientationPortrait 79 | UIInterfaceOrientationPortraitUpsideDown 80 | UIInterfaceOrientationLandscapeLeft 81 | UIInterfaceOrientationLandscapeRight 82 | 83 | UIViewControllerBasedStatusBarAppearance 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /ios/nftvip/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images": [ 3 | { 4 | "idiom": "iphone", 5 | "size": "20x20", 6 | "scale": "2x", 7 | "filename": "App-Icon-20x20@2x.png" 8 | }, 9 | { 10 | "idiom": "iphone", 11 | "size": "20x20", 12 | "scale": "3x", 13 | "filename": "App-Icon-20x20@3x.png" 14 | }, 15 | { 16 | "idiom": "iphone", 17 | "size": "29x29", 18 | "scale": "1x", 19 | "filename": "App-Icon-29x29@1x.png" 20 | }, 21 | { 22 | "idiom": "iphone", 23 | "size": "29x29", 24 | "scale": "2x", 25 | "filename": "App-Icon-29x29@2x.png" 26 | }, 27 | { 28 | "idiom": "iphone", 29 | "size": "29x29", 30 | "scale": "3x", 31 | "filename": "App-Icon-29x29@3x.png" 32 | }, 33 | { 34 | "idiom": "iphone", 35 | "size": "40x40", 36 | "scale": "2x", 37 | "filename": "App-Icon-40x40@2x.png" 38 | }, 39 | { 40 | "idiom": "iphone", 41 | "size": "40x40", 42 | "scale": "3x", 43 | "filename": "App-Icon-40x40@3x.png" 44 | }, 45 | { 46 | "idiom": "iphone", 47 | "size": "60x60", 48 | "scale": "2x", 49 | "filename": "App-Icon-60x60@2x.png" 50 | }, 51 | { 52 | "idiom": "iphone", 53 | "size": "60x60", 54 | "scale": "3x", 55 | "filename": "App-Icon-60x60@3x.png" 56 | }, 57 | { 58 | "idiom": "ipad", 59 | "size": "20x20", 60 | "scale": "1x", 61 | "filename": "App-Icon-20x20@1x.png" 62 | }, 63 | { 64 | "idiom": "ipad", 65 | "size": "20x20", 66 | "scale": "2x", 67 | "filename": "App-Icon-20x20@2x.png" 68 | }, 69 | { 70 | "idiom": "ipad", 71 | "size": "29x29", 72 | "scale": "1x", 73 | "filename": "App-Icon-29x29@1x.png" 74 | }, 75 | { 76 | "idiom": "ipad", 77 | "size": "29x29", 78 | "scale": "2x", 79 | "filename": "App-Icon-29x29@2x.png" 80 | }, 81 | { 82 | "idiom": "ipad", 83 | "size": "40x40", 84 | "scale": "1x", 85 | "filename": "App-Icon-40x40@1x.png" 86 | }, 87 | { 88 | "idiom": "ipad", 89 | "size": "40x40", 90 | "scale": "2x", 91 | "filename": "App-Icon-40x40@2x.png" 92 | }, 93 | { 94 | "idiom": "ipad", 95 | "size": "76x76", 96 | "scale": "1x", 97 | "filename": "App-Icon-76x76@1x.png" 98 | }, 99 | { 100 | "idiom": "ipad", 101 | "size": "76x76", 102 | "scale": "2x", 103 | "filename": "App-Icon-76x76@2x.png" 104 | }, 105 | { 106 | "idiom": "ipad", 107 | "size": "83.5x83.5", 108 | "scale": "2x", 109 | "filename": "App-Icon-83.5x83.5@2x.png" 110 | }, 111 | { 112 | "idiom": "ios-marketing", 113 | "size": "1024x1024", 114 | "scale": "1x", 115 | "filename": "ItunesArtwork@2x.png" 116 | } 117 | ], 118 | "info": { 119 | "version": 1, 120 | "author": "expo" 121 | } 122 | } -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem https://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter. 33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi 34 | 35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 37 | 38 | @rem Find java.exe 39 | if defined JAVA_HOME goto findJavaFromJavaHome 40 | 41 | set JAVA_EXE=java.exe 42 | %JAVA_EXE% -version >NUL 2>&1 43 | if "%ERRORLEVEL%" == "0" goto init 44 | 45 | echo. 46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 47 | echo. 48 | echo Please set the JAVA_HOME variable in your environment to match the 49 | echo location of your Java installation. 50 | 51 | goto fail 52 | 53 | :findJavaFromJavaHome 54 | set JAVA_HOME=%JAVA_HOME:"=% 55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 56 | 57 | if exist "%JAVA_EXE%" goto init 58 | 59 | echo. 60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 61 | echo. 62 | echo Please set the JAVA_HOME variable in your environment to match the 63 | echo location of your Java installation. 64 | 65 | goto fail 66 | 67 | :init 68 | @rem Get command-line arguments, handling Windows variants 69 | 70 | if not "%OS%" == "Windows_NT" goto win9xME_args 71 | 72 | :win9xME_args 73 | @rem Slurp the command line arguments. 74 | set CMD_LINE_ARGS= 75 | set _SKIP=2 76 | 77 | :win9xME_args_slurp 78 | if "x%~1" == "x" goto execute 79 | 80 | set CMD_LINE_ARGS=%* 81 | 82 | :execute 83 | @rem Setup the command line 84 | 85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 86 | 87 | @rem Execute Gradle 88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 89 | 90 | :end 91 | @rem End local scope for the variables with windows NT shell 92 | if "%ERRORLEVEL%"=="0" goto mainEnd 93 | 94 | :fail 95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 96 | rem the _cmd.exe /c_ return code! 97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 98 | exit /b 1 99 | 100 | :mainEnd 101 | if "%OS%"=="Windows_NT" endlocal 102 | 103 | :omega 104 | -------------------------------------------------------------------------------- /frontend/App.tsx: -------------------------------------------------------------------------------- 1 | import { 2 | ApolloClient, 3 | ApolloProvider, 4 | InMemoryCache, 5 | } from '@apollo/client'; 6 | import {EIP721_SUBGRAPH_API_KEY} from '@env'; 7 | import AsyncStorage from '@react-native-async-storage/async-storage'; 8 | import {NavigationContainer} from '@react-navigation/native'; 9 | import {createStackNavigator} from '@react-navigation/stack'; 10 | import {withWalletConnect} from '@walletconnect/react-native-dapp'; 11 | import deepmerge from 'deepmerge'; 12 | import React from 'react'; 13 | import { 14 | Platform, 15 | StyleSheet, 16 | useWindowDimensions, 17 | View, ViewStyle, 18 | } from 'react-native'; 19 | import {useDarkMode} from 'react-native-dynamic'; 20 | 21 | import { expo } from '../app.json'; 22 | 23 | import {RouteNames} from "./navigation"; 24 | import {Scanner, ScannerTitle} from './scan' 25 | import {defaultThemeValue, ThemeContext, ThemeContextValue} from './theme'; 26 | 27 | const client = new ApolloClient({ 28 | cache: new InMemoryCache(), 29 | uri: `https://gateway.thegraph.com/api/${EIP721_SUBGRAPH_API_KEY}/subgraphs/id/0x7859821024e633c5dc8a4fcf86fc52e7720ce525-0`, 30 | }); 31 | 32 | 33 | const headerHeight = 100; 34 | 35 | const Stack = createStackNavigator(); 36 | const headerStyle = { 37 | height: headerHeight, 38 | }; 39 | 40 | function App() { 41 | const isDarkMode = useDarkMode(); 42 | const value = React.useMemo( 43 | () => { 44 | const {systemColors} = defaultThemeValue; 45 | const {primary, backgroundColor} = systemColors; 46 | return deepmerge(defaultThemeValue, { 47 | hints: {}, 48 | systemColors: { 49 | backgroundColor: isDarkMode ? `rgb(28,28,30)` : backgroundColor, 50 | disabledColor: isDarkMode ? `rgb(72,72,74)` : 'rgb(199,199,204)', 51 | primary: isDarkMode ? `rgb(10,132,255)` : primary 52 | }, 53 | }); 54 | }, 55 | [isDarkMode] 56 | ); 57 | const {hints} = value; 58 | const {statusBarHeight} = hints; 59 | const {width} = useWindowDimensions(); 60 | const hideStatusBar: ViewStyle = { 61 | left: width * -0.5, 62 | position: 'absolute', 63 | top: -statusBarHeight, 64 | }; 65 | return ( 66 | 67 | 68 | 69 | 70 | 71 | ( 77 | 81 | ), 82 | }} 83 | /> 84 | 85 | 86 | 87 | 88 | 89 | ); 90 | } 91 | 92 | const {scheme} = expo; 93 | 94 | export default withWalletConnect(App, { 95 | redirectUrl: Platform.OS === 'web' ? window.location.origin : `${scheme}://`, 96 | storageOptions: { 97 | // eslint-disable-next-line @typescript-eslint/ban-ts-comment 98 | // @ts-ignore 99 | asyncStorage: AsyncStorage, 100 | }, 101 | }); -------------------------------------------------------------------------------- /android/app/src/debug/java/com/nftvip/ReactNativeFlipper.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | *

This source code is licensed under the MIT license found in the LICENSE file in the root 5 | * directory of this source tree. 6 | */ 7 | package com.nftvip; 8 | 9 | import android.content.Context; 10 | import com.facebook.flipper.android.AndroidFlipperClient; 11 | import com.facebook.flipper.android.utils.FlipperUtils; 12 | import com.facebook.flipper.core.FlipperClient; 13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; 14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; 15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; 16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping; 17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; 18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; 19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; 20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin; 21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; 22 | import com.facebook.react.ReactInstanceManager; 23 | import com.facebook.react.bridge.ReactContext; 24 | import com.facebook.react.modules.network.NetworkingModule; 25 | import okhttp3.OkHttpClient; 26 | 27 | public class ReactNativeFlipper { 28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { 29 | if (FlipperUtils.shouldEnableFlipper(context)) { 30 | final FlipperClient client = AndroidFlipperClient.getInstance(context); 31 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); 32 | client.addPlugin(new ReactFlipperPlugin()); 33 | client.addPlugin(new DatabasesFlipperPlugin(context)); 34 | client.addPlugin(new SharedPreferencesFlipperPlugin(context)); 35 | client.addPlugin(CrashReporterPlugin.getInstance()); 36 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); 37 | NetworkingModule.setCustomClientBuilder( 38 | new NetworkingModule.CustomClientBuilder() { 39 | @Override 40 | public void apply(OkHttpClient.Builder builder) { 41 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); 42 | } 43 | }); 44 | client.addPlugin(networkFlipperPlugin); 45 | client.start(); 46 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized 47 | // Hence we run if after all native modules have been initialized 48 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); 49 | if (reactContext == null) { 50 | reactInstanceManager.addReactInstanceEventListener( 51 | new ReactInstanceManager.ReactInstanceEventListener() { 52 | @Override 53 | public void onReactContextInitialized(ReactContext reactContext) { 54 | reactInstanceManager.removeReactInstanceEventListener(this); 55 | reactContext.runOnNativeModulesQueueThread( 56 | new Runnable() { 57 | @Override 58 | public void run() { 59 | client.addPlugin(new FrescoFlipperPlugin()); 60 | } 61 | }); 62 | } 63 | }); 64 | } else { 65 | client.addPlugin(new FrescoFlipperPlugin()); 66 | } 67 | } 68 | } 69 | } -------------------------------------------------------------------------------- /ios/nftvip.xcodeproj/xcshareddata/xcschemes/nftvip.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 53 | 55 | 61 | 62 | 63 | 64 | 70 | 72 | 78 | 79 | 80 | 81 | 83 | 84 | 87 | 88 | 89 | -------------------------------------------------------------------------------- /ios/nftvip/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /android/app/src/main/java/io/github/plugworld/nftvip/MainApplication.java: -------------------------------------------------------------------------------- 1 | package io.github.plugworld.nftvip; 2 | 3 | import android.app.Application; 4 | import android.content.Context; 5 | import android.net.Uri; 6 | 7 | import com.facebook.react.PackageList; 8 | import com.facebook.react.ReactApplication; 9 | import com.facebook.react.ReactInstanceManager; 10 | import com.facebook.react.ReactNativeHost; 11 | import com.facebook.react.ReactPackage; 12 | import com.facebook.react.shell.MainReactPackage; 13 | import com.facebook.soloader.SoLoader; 14 | import io.github.plugworld.nftvip.generated.BasePackageList; 15 | 16 | import org.unimodules.adapters.react.ReactAdapterPackage; 17 | import org.unimodules.adapters.react.ModuleRegistryAdapter; 18 | import org.unimodules.adapters.react.ReactModuleRegistryProvider; 19 | import org.unimodules.core.interfaces.Package; 20 | import org.unimodules.core.interfaces.SingletonModule; 21 | import expo.modules.updates.UpdatesController; 22 | 23 | import com.facebook.react.bridge.JSIModulePackage; 24 | import com.swmansion.reanimated.ReanimatedJSIModulePackage; 25 | 26 | import java.lang.reflect.InvocationTargetException; 27 | import java.util.Arrays; 28 | import java.util.List; 29 | import javax.annotation.Nullable; 30 | 31 | public class MainApplication extends Application implements ReactApplication { 32 | private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider( 33 | new BasePackageList().getPackageList() 34 | ); 35 | 36 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 37 | @Override 38 | public boolean getUseDeveloperSupport() { 39 | return BuildConfig.DEBUG; 40 | } 41 | 42 | @Override 43 | protected List getPackages() { 44 | List packages = new PackageList(this).getPackages(); 45 | packages.add(new ModuleRegistryAdapter(mModuleRegistryProvider)); 46 | return packages; 47 | } 48 | 49 | @Override 50 | protected String getJSMainModuleName() { 51 | return "index"; 52 | } 53 | 54 | @Override 55 | protected JSIModulePackage getJSIModulePackage() { 56 | return new ReanimatedJSIModulePackage(); 57 | } 58 | 59 | @Override 60 | protected @Nullable String getJSBundleFile() { 61 | if (BuildConfig.DEBUG) { 62 | return super.getJSBundleFile(); 63 | } else { 64 | return UpdatesController.getInstance().getLaunchAssetFile(); 65 | } 66 | } 67 | 68 | @Override 69 | protected @Nullable String getBundleAssetName() { 70 | if (BuildConfig.DEBUG) { 71 | return super.getBundleAssetName(); 72 | } else { 73 | return UpdatesController.getInstance().getBundleAssetName(); 74 | } 75 | } 76 | }; 77 | 78 | @Override 79 | public ReactNativeHost getReactNativeHost() { 80 | return mReactNativeHost; 81 | } 82 | 83 | @Override 84 | public void onCreate() { 85 | super.onCreate(); 86 | SoLoader.init(this, /* native exopackage */ false); 87 | 88 | if (!BuildConfig.DEBUG) { 89 | UpdatesController.initialize(this); 90 | } 91 | 92 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 93 | } 94 | 95 | /** 96 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like 97 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); 98 | * 99 | * @param context 100 | * @param reactInstanceManager 101 | */ 102 | private static void initializeFlipper( 103 | Context context, ReactInstanceManager reactInstanceManager) { 104 | if (BuildConfig.DEBUG) { 105 | try { 106 | /* 107 | We use reflection here to pick up the class that initializes Flipper, 108 | since Flipper library is not available in release mode 109 | */ 110 | Class aClass = Class.forName("io.github.plugworld.nftvip.ReactNativeFlipper"); 111 | aClass 112 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) 113 | .invoke(null, context, reactInstanceManager); 114 | } catch (ClassNotFoundException e) { 115 | e.printStackTrace(); 116 | } catch (NoSuchMethodException e) { 117 | e.printStackTrace(); 118 | } catch (IllegalAccessException e) { 119 | e.printStackTrace(); 120 | } catch (InvocationTargetException e) { 121 | e.printStackTrace(); 122 | } 123 | } 124 | } 125 | } 126 | -------------------------------------------------------------------------------- /ios/nftvip/SplashScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 31 | 39 | 40 | 41 | 42 | 53 | 54 | 55 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /ios/nftvip/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | 3 | #import 4 | #import 5 | #import 6 | #import 7 | 8 | #import 9 | #import 10 | #import 11 | #import 12 | #import 13 | 14 | #if defined(FB_SONARKIT_ENABLED) && __has_include() 15 | #import 16 | #import 17 | #import 18 | #import 19 | #import 20 | #import 21 | 22 | static void InitializeFlipper(UIApplication *application) { 23 | FlipperClient *client = [FlipperClient sharedClient]; 24 | SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults]; 25 | [client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]]; 26 | [client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]]; 27 | [client addPlugin:[FlipperKitReactPlugin new]]; 28 | [client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]]; 29 | [client start]; 30 | } 31 | #endif 32 | 33 | @interface AppDelegate () 34 | 35 | @property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter; 36 | @property (nonatomic, strong) NSDictionary *launchOptions; 37 | 38 | @end 39 | 40 | @implementation AppDelegate 41 | 42 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 43 | { 44 | #if defined(FB_SONARKIT_ENABLED) && __has_include() 45 | InitializeFlipper(application); 46 | #endif 47 | 48 | self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]]; 49 | self.launchOptions = launchOptions; 50 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 51 | #ifdef DEBUG 52 | [self initializeReactNativeApp]; 53 | #else 54 | EXUpdatesAppController *controller = [EXUpdatesAppController sharedInstance]; 55 | controller.delegate = self; 56 | [controller startAndShowLaunchScreen:self.window]; 57 | #endif 58 | 59 | [super application:application didFinishLaunchingWithOptions:launchOptions]; 60 | 61 | return YES; 62 | } 63 | 64 | - (RCTBridge *)initializeReactNativeApp 65 | { 66 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:self.launchOptions]; 67 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:@"main" initialProperties:nil]; 68 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 69 | 70 | UIViewController *rootViewController = [UIViewController new]; 71 | rootViewController.view = rootView; 72 | self.window.rootViewController = rootViewController; 73 | [self.window makeKeyAndVisible]; 74 | 75 | return bridge; 76 | } 77 | 78 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge 79 | { 80 | NSArray> *extraModules = [_moduleRegistryAdapter extraModulesForBridge:bridge]; 81 | // If you'd like to export some custom RCTBridgeModules that are not Expo modules, add them here! 82 | return extraModules; 83 | } 84 | 85 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { 86 | #ifdef DEBUG 87 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 88 | #else 89 | return [[EXUpdatesAppController sharedInstance] launchAssetUrl]; 90 | #endif 91 | } 92 | 93 | - (void)appController:(EXUpdatesAppController *)appController didStartWithSuccess:(BOOL)success { 94 | appController.bridge = [self initializeReactNativeApp]; 95 | EXSplashScreenService *splashScreenService = (EXSplashScreenService *)[UMModuleRegistryProvider getSingletonModuleForClass:[EXSplashScreenService class]]; 96 | [splashScreenService showSplashScreenFor:self.window.rootViewController]; 97 | } 98 | 99 | // Linking API 100 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options { 101 | return [RCTLinkingManager application:application openURL:url options:options]; 102 | } 103 | 104 | // Universal Links 105 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { 106 | return [RCTLinkingManager application:application 107 | continueUserActivity:userActivity 108 | restorationHandler:restorationHandler]; 109 | } 110 | 111 | @end 112 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "@apollo/client": "^3.4.13", 4 | "@gorhom/bottom-sheet": "^2.4.0", 5 | "@react-native-async-storage/async-storage": "1.13.4", 6 | "@react-native-community/blur": "^3.6.0", 7 | "@react-navigation/native": "^6.0.2", 8 | "@react-navigation/stack": "^6.0.7", 9 | "@walletconnect/react-native-dapp": "1.6.1", 10 | "axios": "^0.21.4", 11 | "base-64": "1.0.0", 12 | "buffer": "6.0.3", 13 | "deepmerge": "^4.2.2", 14 | "expo": "~42.0.0", 15 | "expo-barcode-scanner": "^10.2.2", 16 | "expo-splash-screen": "~0.11.2", 17 | "expo-status-bar": "~1.0.4", 18 | "expo-updates": "~0.8.1", 19 | "fuzzy-search": "^3.2.1", 20 | "graphql": "^15.6.0", 21 | "node-libs-browser": "2.2.1", 22 | "path-browserify": "0.0.0", 23 | "react": "16.13.1", 24 | "react-dom": "16.13.1", 25 | "react-native": "~0.63.4", 26 | "react-native-crypto": "2.2.0", 27 | "react-native-dotenv": "^3.2.0", 28 | "react-native-dynamic": "^1.0.0", 29 | "react-native-fast-image": "^8.5.8", 30 | "react-native-foldview": "^1.2.1", 31 | "react-native-gesture-handler": "~1.10.2", 32 | "react-native-get-random-values": "1.5.0", 33 | "react-native-localhost": "1.0.0", 34 | "react-native-reanimated": "~2.2.0", 35 | "react-native-safe-area-context": "3.2.0", 36 | "react-native-screens": "~3.4.0", 37 | "react-native-search-component": "^1.4.0", 38 | "react-native-snap-carousel": "^3.9.1", 39 | "react-native-status-bar-height": "^2.6.0", 40 | "react-native-stream": "0.1.9", 41 | "react-native-svg": "9.6.4", 42 | "react-native-touchable-scale": "^2.1.2", 43 | "react-native-unimodules": "0.14.10", 44 | "react-native-vector-icons": "^8.1.0", 45 | "react-native-web": "~0.13.12", 46 | "use-debounce": "^7.0.0", 47 | "use-deep-compare": "^1.1.0", 48 | "use-layout-animation": "^0.0.2", 49 | "web3": "1.3.1" 50 | }, 51 | "devDependencies": { 52 | "@babel/core": "~7.9.0", 53 | "@nomiclabs/hardhat-ethers": "^2.0.1", 54 | "@nomiclabs/hardhat-waffle": "^2.0.1", 55 | "@types/deepmerge": "^2.2.0", 56 | "@types/jest": "^26.0.20", 57 | "@types/node": "14.14.22", 58 | "@types/react": "~16.9.35", 59 | "@types/react-native": "~0.63.2", 60 | "@typescript-eslint/eslint-plugin": "^4.0.1", 61 | "@typescript-eslint/parser": "^4.0.1", 62 | "app-root-path": "3.0.0", 63 | "chai": "^4.2.0", 64 | "chokidar": "3.5.1", 65 | "commitizen": "4.2.3", 66 | "cz-conventional-changelog": "^3.2.0", 67 | "dotenv": "8.2.0", 68 | "enzyme": "3.11.0", 69 | "enzyme-adapter-react-16": "1.15.6", 70 | "eslint": "^7.8.0", 71 | "eslint-config-prettier": "^6.11.0", 72 | "eslint-plugin-eslint-comments": "^3.2.0", 73 | "eslint-plugin-functional": "^3.0.2", 74 | "eslint-plugin-import": "^2.22.0", 75 | "eslint-plugin-react": "7.22.0", 76 | "eslint-plugin-react-native": "3.10.0", 77 | "ethereum-waffle": "^3.2.1", 78 | "gh-pages": "^3.2.3", 79 | "hardhat": "2.0.6", 80 | "husky": "4.3.8", 81 | "jest": "26.6.3", 82 | "lint-staged": "10.5.3", 83 | "platform-detect": "3.0.1", 84 | "prettier": "2.2.1", 85 | "react-test-renderer": "17.0.1", 86 | "ts-node": "9.1.1", 87 | "typescript": "~4.0.0" 88 | }, 89 | "scripts": { 90 | "start": "react-native start", 91 | "android": "node_modules/.bin/ts-node scripts/android", 92 | "ios": "node_modules/.bin/ts-node scripts/ios", 93 | "web": "node_modules/.bin/ts-node scripts/web", 94 | "eject": "expo eject", 95 | "postinstall": "node_modules/.bin/ts-node scripts/postinstall", 96 | "test": "npx hardhat test && jest", 97 | "web:deploy": "expo build:web && gh-pages -d web-build" 98 | }, 99 | "private": true, 100 | "name": "nftvip", 101 | "version": "1.0.0", 102 | "homepage": "https://cawfree.github.io/create-react-native-dapp", 103 | "license": "MIT", 104 | "contributors": [ 105 | { 106 | "name": "@cawfree", 107 | "url": "https://github.com/cawfree" 108 | } 109 | ], 110 | "keywords": [ 111 | "react", 112 | "react-native", 113 | "blockchain", 114 | "dapp", 115 | "ethereum", 116 | "web3", 117 | "starter", 118 | "react-native-web" 119 | ], 120 | "react-native": { 121 | "stream": "react-native-stream", 122 | "crypto": "react-native-crypto", 123 | "path": "path-browserify", 124 | "process": "node-libs-browser/mock/process" 125 | }, 126 | "jest": { 127 | "preset": "react-native", 128 | "testMatch": [ 129 | "**/__tests__/frontend/**/*.[jt]s?(x)" 130 | ] 131 | }, 132 | "config": { 133 | "commitizen": { 134 | "path": "./node_modules/cz-conventional-changelog" 135 | } 136 | }, 137 | "husky": { 138 | "hooks": { 139 | "prepare-commit-msg": "exec < /dev/tty && git cz --hook", 140 | "pre-commit": "lint-staged", 141 | "pre-push": "test" 142 | } 143 | }, 144 | "lint-staged": { 145 | "*.{ts,tsx,js,jsx}": "eslint --fix --ext '.ts,.tsx,.js,.jsx' -c .eslintrc.json" 146 | } 147 | } 148 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # https://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin or MSYS, switch paths to Windows format before running java 129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=`expr $i + 1` 158 | done 159 | case $i in 160 | 0) set -- ;; 161 | 1) set -- "$args0" ;; 162 | 2) set -- "$args0" "$args1" ;; 163 | 3) set -- "$args0" "$args1" "$args2" ;; 164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=`save "$@"` 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | exec "$JAVACMD" "$@" 184 | -------------------------------------------------------------------------------- /frontend/scan/components/Scanner.tsx: -------------------------------------------------------------------------------- 1 | import {BottomSheetScrollView} from '@gorhom/bottom-sheet'; 2 | import {useWalletConnect} from "@walletconnect/react-native-dapp"; 3 | import {BarCodeScanner} from 'expo-barcode-scanner'; 4 | import FuzzySearch from 'fuzzy-search'; 5 | import * as React from 'react'; 6 | import { 7 | ActivityIndicator, LayoutAnimation, 8 | NativeSyntheticEvent, 9 | StyleSheet, 10 | Switch, 11 | Text, 12 | TextInputChangeEventData, 13 | useWindowDimensions, 14 | View, 15 | } from 'react-native'; 16 | import SearchComponent from 'react-native-search-component'; 17 | import {useDeepCompareMemo} from 'use-deep-compare'; 18 | import {useImmediateLayoutAnimation} from 'use-layout-animation'; 19 | 20 | import {Collection, PrimaryAssetContract, useCollectionLookup} from '../../lookup'; 21 | import {LookupCollection} from "../../lookup/components"; 22 | import {unionCollections} from "../../lookup/constants"; 23 | import {useTheme} from "../../theme"; 24 | 25 | import ScannerBottomSheet from './Scanner.BottomSheet'; 26 | 27 | const styles = StyleSheet.create({ 28 | center: {alignItems: 'center', justifyContent: 'center'}, 29 | flex: {flex: 1}, 30 | fullWidth: {width: '100%'}, 31 | row: { 32 | alignItems: 'center', 33 | flexDirection: 'row', 34 | }, 35 | // eslint-disable-next-line react-native/no-color-literals 36 | shadow: { 37 | shadowColor: 'hotpink', 38 | shadowOffset: { 39 | height: 2, 40 | width: 2, 41 | }, 42 | shadowOpacity: 0.25, 43 | shadowRadius: 3.84, 44 | }, 45 | textAlignRight: {textAlign: 'right'}, 46 | }); 47 | 48 | export default function Scanner(): JSX.Element { 49 | const [hasPermission, setHasPermission] = React.useState(null); 50 | React.useEffect(() => { 51 | (async () => { 52 | const {status} = await BarCodeScanner.requestPermissionsAsync(); 53 | setHasPermission(status === 'granted'); 54 | })(); 55 | }, []); 56 | 57 | const [maybeEthereumAddress, setMaybeEthereumAddress] = React.useState(''); 58 | const ethereumAddresses = React.useMemo(() => { 59 | return typeof maybeEthereumAddress === 'string' && !!maybeEthereumAddress.length 60 | ? [maybeEthereumAddress] 61 | : []; 62 | }, [maybeEthereumAddress]); 63 | 64 | const connector = useWalletConnect(); 65 | const {connected} = connector; 66 | 67 | const { 68 | data, 69 | loading, 70 | error, 71 | } = useCollectionLookup({ethereumAddresses}); 72 | 73 | const signerEthereumAddresses = React.useMemo(() => { 74 | if (connected) { 75 | const {accounts} = connector; 76 | return accounts; 77 | } 78 | return []; 79 | }, [connector, connected]); 80 | 81 | const { 82 | data: signerData, 83 | } = useCollectionLookup({ 84 | ethereumAddresses: signerEthereumAddresses, 85 | }); 86 | const [ 87 | visible, 88 | setVisible, 89 | ] = React.useState(false); 90 | const {systemColors, hints} = useTheme(); 91 | const {disabledColor} = systemColors; 92 | const {bottomBarHeight, marginStandard} = hints; 93 | const onBarCodeScanned = React.useCallback(({data}) => { 94 | setMaybeEthereumAddress(data); 95 | }, []); 96 | 97 | const onRequestDismiss = React.useCallback(() => { 98 | setVisible(false); 99 | }, []); 100 | 101 | React.useEffect(() => { 102 | if (!loading && Array.isArray(data) && !!data.length) { 103 | setVisible(true); 104 | } 105 | }, [visible, loading, error]); 106 | 107 | const {width} = useWindowDimensions(); 108 | const [value, onChange] = React.useState(''); 109 | const [ 110 | showOnlySharedAssets, 111 | setShowOnlySharedAssets, 112 | ] = React.useState(false); 113 | 114 | const sourceDataToReference = React.useMemo(() => { 115 | const externalData = data || []; 116 | if (showOnlySharedAssets) { 117 | const internalData = signerData || []; 118 | return unionCollections({a: externalData, b: internalData}); 119 | } 120 | return externalData; 121 | }, [data, signerData, showOnlySharedAssets]); 122 | 123 | 124 | const filteredData = useDeepCompareMemo(() => ( 125 | sourceDataToReference.map((collection: Collection) => { 126 | const {primary_asset_contracts} = collection; 127 | if (Array.isArray(primary_asset_contracts)) { 128 | const contractsWithAddresses = primary_asset_contracts.filter( 129 | ({address, name}: PrimaryAssetContract) => { 130 | if (typeof address === 'string' && !!address.length) { 131 | // fuzzy search 132 | if (typeof value === 'string' && !!value.length) { 133 | const searcher = new FuzzySearch([{name}], ['name']); 134 | const {length} = searcher.search(value); 135 | return !!length; 136 | } else { 137 | return true; 138 | } 139 | } 140 | return false; 141 | }); 142 | if (contractsWithAddresses.length > 0) { 143 | return { 144 | ...collection, 145 | primary_asset_contracts: contractsWithAddresses, 146 | }; 147 | } 148 | } 149 | return null; 150 | }) 151 | .filter(Boolean) 152 | ), [ 153 | sourceDataToReference, 154 | value, 155 | ]); 156 | 157 | useImmediateLayoutAnimation([filteredData], LayoutAnimation.Presets.easeInEaseOut); 158 | 159 | return ( 160 | 161 | {hasPermission ? ( 162 | 166 | ) : hasPermission === null ? ( 167 | Requesting for camera permission 168 | ) : ( 169 | No access to camera 170 | )} 171 | 174 | {Array.isArray(data) && !!data.length ? ( 175 | 176 | ) => { 180 | const {nativeEvent} = e; 181 | const {text} = nativeEvent; 182 | onChange(text); 183 | }} 184 | onSearchClear={() => onChange('')} 185 | value={value} 186 | /> 187 | 188 | {!!connected && ( 189 | <> 190 | 191 | 195 | 196 | 200 | 201 | 202 | 203 | )} 204 | 207 | {filteredData.map((collection: Collection, i: number, orig: readonly Collection[]): JSX.Element => { 208 | return ( 209 | 210 | 215 | {i < orig.length - 1 && ( 216 | 217 | )} 218 | 219 | ); 220 | })} 221 | 222 | 223 | 224 | ) : ( 225 | 226 | 227 | 228 | 232 | 233 | )} 234 | 235 | 236 | ); 237 | } 238 | 239 | -------------------------------------------------------------------------------- /android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation. If none specified and 19 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is 20 | * // default. Can be overridden with ENTRY_FILE environment variable. 21 | * entryFile: "index.android.js", 22 | * 23 | * // https://reactnative.dev/docs/performance#enable-the-ram-format 24 | * bundleCommand: "ram-bundle", 25 | * 26 | * // whether to bundle JS and assets in debug mode 27 | * bundleInDebug: false, 28 | * 29 | * // whether to bundle JS and assets in release mode 30 | * bundleInRelease: true, 31 | * 32 | * // whether to bundle JS and assets in another build variant (if configured). 33 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 34 | * // The configuration property can be in the following formats 35 | * // 'bundleIn${productFlavor}${buildType}' 36 | * // 'bundleIn${buildType}' 37 | * // bundleInFreeDebug: true, 38 | * // bundleInPaidRelease: true, 39 | * // bundleInBeta: true, 40 | * 41 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 42 | * // for example: to disable dev mode in the staging build type (if configured) 43 | * devDisabledInStaging: true, 44 | * // The configuration property can be in the following formats 45 | * // 'devDisabledIn${productFlavor}${buildType}' 46 | * // 'devDisabledIn${buildType}' 47 | * 48 | * // the root of your project, i.e. where "package.json" lives 49 | * root: "../../", 50 | * 51 | * // where to put the JS bundle asset in debug mode 52 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 53 | * 54 | * // where to put the JS bundle asset in release mode 55 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 56 | * 57 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 58 | * // require('./image.png')), in debug mode 59 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 60 | * 61 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 62 | * // require('./image.png')), in release mode 63 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 64 | * 65 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 66 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 67 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 68 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 69 | * // for example, you might want to remove it from here. 70 | * inputExcludes: ["android/**", "ios/**"], 71 | * 72 | * // override which node gets called and with what additional arguments 73 | * nodeExecutableAndArgs: ["node"], 74 | * 75 | * // supply additional arguments to the packager 76 | * extraPackagerArgs: [] 77 | * ] 78 | */ 79 | 80 | project.ext.react = [ 81 | enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes", 82 | ] 83 | 84 | apply from: '../../node_modules/react-native-unimodules/gradle.groovy' 85 | apply from: "../../node_modules/react-native/react.gradle" 86 | apply from: "../../node_modules/expo-constants/scripts/get-app-config-android.gradle" 87 | apply from: "../../node_modules/expo-updates/scripts/create-manifest-android.gradle" 88 | 89 | /** 90 | * Set this to true to create two separate APKs instead of one: 91 | * - An APK that only works on ARM devices 92 | * - An APK that only works on x86 devices 93 | * The advantage is the size of the APK is reduced by about 4MB. 94 | * Upload all the APKs to the Play Store and people will download 95 | * the correct one based on the CPU architecture of their device. 96 | */ 97 | def enableSeparateBuildPerCPUArchitecture = false 98 | 99 | /** 100 | * Run Proguard to shrink the Java bytecode in release builds. 101 | */ 102 | def enableProguardInReleaseBuilds = false 103 | 104 | /** 105 | * The preferred build flavor of JavaScriptCore. 106 | * 107 | * For example, to use the international variant, you can use: 108 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 109 | * 110 | * The international variant includes ICU i18n library and necessary data 111 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 112 | * give correct results when using with locales other than en-US. Note that 113 | * this variant is about 6MiB larger per architecture than default. 114 | */ 115 | def jscFlavor = 'org.webkit:android-jsc:+' 116 | 117 | /** 118 | * Whether to enable the Hermes VM. 119 | * 120 | * This should be set on project.ext.react and mirrored here. If it is not set 121 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 122 | * and the benefits of using Hermes will therefore be sharply reduced. 123 | */ 124 | def enableHermes = project.ext.react.get("enableHermes", false); 125 | 126 | android { 127 | compileSdkVersion rootProject.ext.compileSdkVersion 128 | 129 | compileOptions { 130 | sourceCompatibility JavaVersion.VERSION_1_8 131 | targetCompatibility JavaVersion.VERSION_1_8 132 | } 133 | 134 | defaultConfig { 135 | applicationId 'io.github.plugworld.nftvip' 136 | minSdkVersion rootProject.ext.minSdkVersion 137 | targetSdkVersion rootProject.ext.targetSdkVersion 138 | versionCode 1 139 | versionName "1.0.0" 140 | } 141 | splits { 142 | abi { 143 | reset() 144 | enable enableSeparateBuildPerCPUArchitecture 145 | universalApk false // If true, also generate a universal APK 146 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 147 | } 148 | } 149 | signingConfigs { 150 | debug { 151 | storeFile file('debug.keystore') 152 | storePassword 'android' 153 | keyAlias 'androiddebugkey' 154 | keyPassword 'android' 155 | } 156 | } 157 | buildTypes { 158 | debug { 159 | signingConfig signingConfigs.debug 160 | } 161 | release { 162 | // Caution! In production, you need to generate your own keystore file. 163 | // see https://reactnative.dev/docs/signed-apk-android. 164 | signingConfig signingConfigs.debug 165 | minifyEnabled enableProguardInReleaseBuilds 166 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 167 | } 168 | } 169 | 170 | // applicationVariants are e.g. debug, release 171 | applicationVariants.all { variant -> 172 | variant.outputs.each { output -> 173 | // For each separate APK per architecture, set a unique version code as described here: 174 | // https://developer.android.com/studio/build/configure-apk-splits.html 175 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 176 | def abi = output.getFilter(OutputFile.ABI) 177 | if (abi != null) { // null for the universal-debug, universal-release variants 178 | output.versionCodeOverride = 179 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 180 | } 181 | 182 | } 183 | } 184 | } 185 | 186 | dependencies { 187 | implementation fileTree(dir: "libs", include: ["*.jar"]) 188 | //noinspection GradleDynamicVersion 189 | implementation "com.facebook.react:react-native:+" // From node_modules 190 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" 191 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { 192 | exclude group:'com.facebook.fbjni' 193 | } 194 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { 195 | exclude group:'com.facebook.flipper' 196 | exclude group:'com.squareup.okhttp3', module:'okhttp' 197 | } 198 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { 199 | exclude group:'com.facebook.flipper' 200 | } 201 | addUnimodulesDependencies() 202 | 203 | if (enableHermes) { 204 | def hermesPath = "../../node_modules/hermes-engine/android/"; 205 | debugImplementation files(hermesPath + "hermes-debug.aar") 206 | releaseImplementation files(hermesPath + "hermes-release.aar") 207 | } else { 208 | implementation jscFlavor 209 | } 210 | } 211 | 212 | // Run this once to be able to run the application with BUCK 213 | // puts all compile dependencies into folder libs for BUCK to use 214 | task copyDownloadableDepsToLibs(type: Copy) { 215 | from configurations.compile 216 | into 'libs' 217 | } 218 | 219 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 220 | -------------------------------------------------------------------------------- /ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - EXApplication (3.2.0): 5 | - UMCore 6 | - EXBarCodeScanner (10.2.2): 7 | - ExpoModulesCore 8 | - UMCore 9 | - ZXingObjC/OneD 10 | - ZXingObjC/PDF417 11 | - EXConstants (11.0.2): 12 | - ExpoModulesCore 13 | - UMCore 14 | - EXErrorRecovery (2.2.0): 15 | - UMCore 16 | - EXFileSystem (11.1.3): 17 | - ExpoModulesCore 18 | - UMCore 19 | - EXFont (9.2.1): 20 | - ExpoModulesCore 21 | - UMCore 22 | - EXImageLoader (2.2.0): 23 | - ExpoModulesCore 24 | - React-Core 25 | - UMCore 26 | - EXKeepAwake (9.2.0): 27 | - UMCore 28 | - ExpoModulesCore (0.2.0): 29 | - ExpoModulesCore/Core (= 0.2.0) 30 | - ExpoModulesCore/Interfaces (= 0.2.0) 31 | - UMCore 32 | - ExpoModulesCore/Core (0.2.0): 33 | - UMCore 34 | - ExpoModulesCore/Interfaces (0.2.0): 35 | - ExpoModulesCore/Core 36 | - UMCore 37 | - EXSplashScreen (0.11.4): 38 | - React-Core 39 | - UMCore 40 | - EXStructuredHeaders (1.1.1): 41 | - UMCore 42 | - EXUpdates (0.8.5): 43 | - EXStructuredHeaders 44 | - EXUpdatesInterface 45 | - React-Core 46 | - UMCore 47 | - EXUpdatesInterface (0.2.2) 48 | - FBLazyVector (0.63.4) 49 | - FBReactNativeSpec (0.63.4): 50 | - Folly (= 2020.01.13.00) 51 | - RCTRequired (= 0.63.4) 52 | - RCTTypeSafety (= 0.63.4) 53 | - React-Core (= 0.63.4) 54 | - React-jsi (= 0.63.4) 55 | - ReactCommon/turbomodule/core (= 0.63.4) 56 | - Folly (2020.01.13.00): 57 | - boost-for-react-native 58 | - DoubleConversion 59 | - Folly/Default (= 2020.01.13.00) 60 | - glog 61 | - Folly/Default (2020.01.13.00): 62 | - boost-for-react-native 63 | - DoubleConversion 64 | - glog 65 | - glog (0.3.5) 66 | - libwebp (1.2.0): 67 | - libwebp/demux (= 1.2.0) 68 | - libwebp/mux (= 1.2.0) 69 | - libwebp/webp (= 1.2.0) 70 | - libwebp/demux (1.2.0): 71 | - libwebp/webp 72 | - libwebp/mux (1.2.0): 73 | - libwebp/demux 74 | - libwebp/webp (1.2.0) 75 | - RCTRequired (0.63.4) 76 | - RCTTypeSafety (0.63.4): 77 | - FBLazyVector (= 0.63.4) 78 | - Folly (= 2020.01.13.00) 79 | - RCTRequired (= 0.63.4) 80 | - React-Core (= 0.63.4) 81 | - React (0.63.4): 82 | - React-Core (= 0.63.4) 83 | - React-Core/DevSupport (= 0.63.4) 84 | - React-Core/RCTWebSocket (= 0.63.4) 85 | - React-RCTActionSheet (= 0.63.4) 86 | - React-RCTAnimation (= 0.63.4) 87 | - React-RCTBlob (= 0.63.4) 88 | - React-RCTImage (= 0.63.4) 89 | - React-RCTLinking (= 0.63.4) 90 | - React-RCTNetwork (= 0.63.4) 91 | - React-RCTSettings (= 0.63.4) 92 | - React-RCTText (= 0.63.4) 93 | - React-RCTVibration (= 0.63.4) 94 | - React-callinvoker (0.63.4) 95 | - React-Core (0.63.4): 96 | - Folly (= 2020.01.13.00) 97 | - glog 98 | - React-Core/Default (= 0.63.4) 99 | - React-cxxreact (= 0.63.4) 100 | - React-jsi (= 0.63.4) 101 | - React-jsiexecutor (= 0.63.4) 102 | - Yoga 103 | - React-Core/CoreModulesHeaders (0.63.4): 104 | - Folly (= 2020.01.13.00) 105 | - glog 106 | - React-Core/Default 107 | - React-cxxreact (= 0.63.4) 108 | - React-jsi (= 0.63.4) 109 | - React-jsiexecutor (= 0.63.4) 110 | - Yoga 111 | - React-Core/Default (0.63.4): 112 | - Folly (= 2020.01.13.00) 113 | - glog 114 | - React-cxxreact (= 0.63.4) 115 | - React-jsi (= 0.63.4) 116 | - React-jsiexecutor (= 0.63.4) 117 | - Yoga 118 | - React-Core/DevSupport (0.63.4): 119 | - Folly (= 2020.01.13.00) 120 | - glog 121 | - React-Core/Default (= 0.63.4) 122 | - React-Core/RCTWebSocket (= 0.63.4) 123 | - React-cxxreact (= 0.63.4) 124 | - React-jsi (= 0.63.4) 125 | - React-jsiexecutor (= 0.63.4) 126 | - React-jsinspector (= 0.63.4) 127 | - Yoga 128 | - React-Core/RCTActionSheetHeaders (0.63.4): 129 | - Folly (= 2020.01.13.00) 130 | - glog 131 | - React-Core/Default 132 | - React-cxxreact (= 0.63.4) 133 | - React-jsi (= 0.63.4) 134 | - React-jsiexecutor (= 0.63.4) 135 | - Yoga 136 | - React-Core/RCTAnimationHeaders (0.63.4): 137 | - Folly (= 2020.01.13.00) 138 | - glog 139 | - React-Core/Default 140 | - React-cxxreact (= 0.63.4) 141 | - React-jsi (= 0.63.4) 142 | - React-jsiexecutor (= 0.63.4) 143 | - Yoga 144 | - React-Core/RCTBlobHeaders (0.63.4): 145 | - Folly (= 2020.01.13.00) 146 | - glog 147 | - React-Core/Default 148 | - React-cxxreact (= 0.63.4) 149 | - React-jsi (= 0.63.4) 150 | - React-jsiexecutor (= 0.63.4) 151 | - Yoga 152 | - React-Core/RCTImageHeaders (0.63.4): 153 | - Folly (= 2020.01.13.00) 154 | - glog 155 | - React-Core/Default 156 | - React-cxxreact (= 0.63.4) 157 | - React-jsi (= 0.63.4) 158 | - React-jsiexecutor (= 0.63.4) 159 | - Yoga 160 | - React-Core/RCTLinkingHeaders (0.63.4): 161 | - Folly (= 2020.01.13.00) 162 | - glog 163 | - React-Core/Default 164 | - React-cxxreact (= 0.63.4) 165 | - React-jsi (= 0.63.4) 166 | - React-jsiexecutor (= 0.63.4) 167 | - Yoga 168 | - React-Core/RCTNetworkHeaders (0.63.4): 169 | - Folly (= 2020.01.13.00) 170 | - glog 171 | - React-Core/Default 172 | - React-cxxreact (= 0.63.4) 173 | - React-jsi (= 0.63.4) 174 | - React-jsiexecutor (= 0.63.4) 175 | - Yoga 176 | - React-Core/RCTSettingsHeaders (0.63.4): 177 | - Folly (= 2020.01.13.00) 178 | - glog 179 | - React-Core/Default 180 | - React-cxxreact (= 0.63.4) 181 | - React-jsi (= 0.63.4) 182 | - React-jsiexecutor (= 0.63.4) 183 | - Yoga 184 | - React-Core/RCTTextHeaders (0.63.4): 185 | - Folly (= 2020.01.13.00) 186 | - glog 187 | - React-Core/Default 188 | - React-cxxreact (= 0.63.4) 189 | - React-jsi (= 0.63.4) 190 | - React-jsiexecutor (= 0.63.4) 191 | - Yoga 192 | - React-Core/RCTVibrationHeaders (0.63.4): 193 | - Folly (= 2020.01.13.00) 194 | - glog 195 | - React-Core/Default 196 | - React-cxxreact (= 0.63.4) 197 | - React-jsi (= 0.63.4) 198 | - React-jsiexecutor (= 0.63.4) 199 | - Yoga 200 | - React-Core/RCTWebSocket (0.63.4): 201 | - Folly (= 2020.01.13.00) 202 | - glog 203 | - React-Core/Default (= 0.63.4) 204 | - React-cxxreact (= 0.63.4) 205 | - React-jsi (= 0.63.4) 206 | - React-jsiexecutor (= 0.63.4) 207 | - Yoga 208 | - React-CoreModules (0.63.4): 209 | - FBReactNativeSpec (= 0.63.4) 210 | - Folly (= 2020.01.13.00) 211 | - RCTTypeSafety (= 0.63.4) 212 | - React-Core/CoreModulesHeaders (= 0.63.4) 213 | - React-jsi (= 0.63.4) 214 | - React-RCTImage (= 0.63.4) 215 | - ReactCommon/turbomodule/core (= 0.63.4) 216 | - React-cxxreact (0.63.4): 217 | - boost-for-react-native (= 1.63.0) 218 | - DoubleConversion 219 | - Folly (= 2020.01.13.00) 220 | - glog 221 | - React-callinvoker (= 0.63.4) 222 | - React-jsinspector (= 0.63.4) 223 | - React-jsi (0.63.4): 224 | - boost-for-react-native (= 1.63.0) 225 | - DoubleConversion 226 | - Folly (= 2020.01.13.00) 227 | - glog 228 | - React-jsi/Default (= 0.63.4) 229 | - React-jsi/Default (0.63.4): 230 | - boost-for-react-native (= 1.63.0) 231 | - DoubleConversion 232 | - Folly (= 2020.01.13.00) 233 | - glog 234 | - React-jsiexecutor (0.63.4): 235 | - DoubleConversion 236 | - Folly (= 2020.01.13.00) 237 | - glog 238 | - React-cxxreact (= 0.63.4) 239 | - React-jsi (= 0.63.4) 240 | - React-jsinspector (0.63.4) 241 | - react-native-blur (0.8.0): 242 | - React 243 | - react-native-get-random-values (1.5.0): 244 | - React 245 | - react-native-safe-area-context (3.2.0): 246 | - React-Core 247 | - React-RCTActionSheet (0.63.4): 248 | - React-Core/RCTActionSheetHeaders (= 0.63.4) 249 | - React-RCTAnimation (0.63.4): 250 | - FBReactNativeSpec (= 0.63.4) 251 | - Folly (= 2020.01.13.00) 252 | - RCTTypeSafety (= 0.63.4) 253 | - React-Core/RCTAnimationHeaders (= 0.63.4) 254 | - React-jsi (= 0.63.4) 255 | - ReactCommon/turbomodule/core (= 0.63.4) 256 | - React-RCTBlob (0.63.4): 257 | - FBReactNativeSpec (= 0.63.4) 258 | - Folly (= 2020.01.13.00) 259 | - React-Core/RCTBlobHeaders (= 0.63.4) 260 | - React-Core/RCTWebSocket (= 0.63.4) 261 | - React-jsi (= 0.63.4) 262 | - React-RCTNetwork (= 0.63.4) 263 | - ReactCommon/turbomodule/core (= 0.63.4) 264 | - React-RCTImage (0.63.4): 265 | - FBReactNativeSpec (= 0.63.4) 266 | - Folly (= 2020.01.13.00) 267 | - RCTTypeSafety (= 0.63.4) 268 | - React-Core/RCTImageHeaders (= 0.63.4) 269 | - React-jsi (= 0.63.4) 270 | - React-RCTNetwork (= 0.63.4) 271 | - ReactCommon/turbomodule/core (= 0.63.4) 272 | - React-RCTLinking (0.63.4): 273 | - FBReactNativeSpec (= 0.63.4) 274 | - React-Core/RCTLinkingHeaders (= 0.63.4) 275 | - React-jsi (= 0.63.4) 276 | - ReactCommon/turbomodule/core (= 0.63.4) 277 | - React-RCTNetwork (0.63.4): 278 | - FBReactNativeSpec (= 0.63.4) 279 | - Folly (= 2020.01.13.00) 280 | - RCTTypeSafety (= 0.63.4) 281 | - React-Core/RCTNetworkHeaders (= 0.63.4) 282 | - React-jsi (= 0.63.4) 283 | - ReactCommon/turbomodule/core (= 0.63.4) 284 | - React-RCTSettings (0.63.4): 285 | - FBReactNativeSpec (= 0.63.4) 286 | - Folly (= 2020.01.13.00) 287 | - RCTTypeSafety (= 0.63.4) 288 | - React-Core/RCTSettingsHeaders (= 0.63.4) 289 | - React-jsi (= 0.63.4) 290 | - ReactCommon/turbomodule/core (= 0.63.4) 291 | - React-RCTText (0.63.4): 292 | - React-Core/RCTTextHeaders (= 0.63.4) 293 | - React-RCTVibration (0.63.4): 294 | - FBReactNativeSpec (= 0.63.4) 295 | - Folly (= 2020.01.13.00) 296 | - React-Core/RCTVibrationHeaders (= 0.63.4) 297 | - React-jsi (= 0.63.4) 298 | - ReactCommon/turbomodule/core (= 0.63.4) 299 | - ReactCommon/turbomodule/core (0.63.4): 300 | - DoubleConversion 301 | - Folly (= 2020.01.13.00) 302 | - glog 303 | - React-callinvoker (= 0.63.4) 304 | - React-Core (= 0.63.4) 305 | - React-cxxreact (= 0.63.4) 306 | - React-jsi (= 0.63.4) 307 | - RNCAsyncStorage (1.13.4): 308 | - React-Core 309 | - RNFastImage (8.5.8): 310 | - React-Core 311 | - SDWebImage (~> 5.11.1) 312 | - SDWebImageWebPCoder (~> 0.8.4) 313 | - RNGestureHandler (1.10.3): 314 | - React-Core 315 | - RNReanimated (2.2.2): 316 | - DoubleConversion 317 | - FBLazyVector 318 | - FBReactNativeSpec 319 | - Folly 320 | - glog 321 | - RCTRequired 322 | - RCTTypeSafety 323 | - React 324 | - React-callinvoker 325 | - React-Core 326 | - React-Core/DevSupport 327 | - React-Core/RCTWebSocket 328 | - React-CoreModules 329 | - React-cxxreact 330 | - React-jsi 331 | - React-jsiexecutor 332 | - React-jsinspector 333 | - React-RCTActionSheet 334 | - React-RCTAnimation 335 | - React-RCTBlob 336 | - React-RCTImage 337 | - React-RCTLinking 338 | - React-RCTNetwork 339 | - React-RCTSettings 340 | - React-RCTText 341 | - React-RCTVibration 342 | - ReactCommon/turbomodule/core 343 | - Yoga 344 | - RNScreens (3.4.0): 345 | - React-Core 346 | - React-RCTImage 347 | - RNSVG (9.6.4): 348 | - React 349 | - RNVectorIcons (8.1.0): 350 | - React-Core 351 | - SDWebImage (5.11.1): 352 | - SDWebImage/Core (= 5.11.1) 353 | - SDWebImage/Core (5.11.1) 354 | - SDWebImageWebPCoder (0.8.4): 355 | - libwebp (~> 1.0) 356 | - SDWebImage/Core (~> 5.10) 357 | - UMAppLoader (2.2.0) 358 | - UMCore (7.1.2) 359 | - UMReactNativeAdapter (6.3.9): 360 | - ExpoModulesCore 361 | - React-Core 362 | - UMCore 363 | - UMTaskManagerInterface (6.2.0): 364 | - UMCore 365 | - Yoga (1.14.0) 366 | - ZXingObjC/Core (3.6.5) 367 | - ZXingObjC/OneD (3.6.5): 368 | - ZXingObjC/Core 369 | - ZXingObjC/PDF417 (3.6.5): 370 | - ZXingObjC/Core 371 | 372 | DEPENDENCIES: 373 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 374 | - EXApplication (from `../node_modules/expo-application/ios`) 375 | - EXBarCodeScanner (from `../node_modules/expo-barcode-scanner/ios`) 376 | - EXConstants (from `../node_modules/expo-constants/ios`) 377 | - EXErrorRecovery (from `../node_modules/expo-error-recovery/ios`) 378 | - EXFileSystem (from `../node_modules/expo-file-system/ios`) 379 | - EXFont (from `../node_modules/expo-font/ios`) 380 | - EXImageLoader (from `../node_modules/expo-image-loader/ios`) 381 | - EXKeepAwake (from `../node_modules/expo-keep-awake/ios`) 382 | - ExpoModulesCore (from `../node_modules/expo-modules-core/ios`) 383 | - EXSplashScreen (from `../node_modules/expo-splash-screen/ios`) 384 | - EXStructuredHeaders (from `../node_modules/expo-structured-headers/ios`) 385 | - EXUpdates (from `../node_modules/expo-updates/ios`) 386 | - EXUpdatesInterface (from `../node_modules/expo-updates-interface/ios`) 387 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`) 388 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`) 389 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 390 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 391 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) 392 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) 393 | - React (from `../node_modules/react-native/`) 394 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`) 395 | - React-Core (from `../node_modules/react-native/`) 396 | - React-Core/DevSupport (from `../node_modules/react-native/`) 397 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`) 398 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`) 399 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 400 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 401 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 402 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 403 | - "react-native-blur (from `../node_modules/@react-native-community/blur`)" 404 | - react-native-get-random-values (from `../node_modules/react-native-get-random-values`) 405 | - react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`) 406 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 407 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 408 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 409 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 410 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 411 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 412 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 413 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 414 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 415 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) 416 | - "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)" 417 | - RNFastImage (from `../node_modules/react-native-fast-image`) 418 | - RNGestureHandler (from `../node_modules/react-native-gesture-handler`) 419 | - RNReanimated (from `../node_modules/react-native-reanimated`) 420 | - RNScreens (from `../node_modules/react-native-screens`) 421 | - RNSVG (from `../node_modules/react-native-svg`) 422 | - RNVectorIcons (from `../node_modules/react-native-vector-icons`) 423 | - UMAppLoader (from `../node_modules/unimodules-app-loader/ios`) 424 | - "UMCore (from `../node_modules/@unimodules/core/ios`)" 425 | - "UMReactNativeAdapter (from `../node_modules/@unimodules/react-native-adapter/ios`)" 426 | - UMTaskManagerInterface (from `../node_modules/unimodules-task-manager-interface/ios`) 427 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) 428 | 429 | SPEC REPOS: 430 | trunk: 431 | - boost-for-react-native 432 | - libwebp 433 | - SDWebImage 434 | - SDWebImageWebPCoder 435 | - ZXingObjC 436 | 437 | EXTERNAL SOURCES: 438 | DoubleConversion: 439 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 440 | EXApplication: 441 | :path: "../node_modules/expo-application/ios" 442 | EXBarCodeScanner: 443 | :path: "../node_modules/expo-barcode-scanner/ios" 444 | EXConstants: 445 | :path: "../node_modules/expo-constants/ios" 446 | EXErrorRecovery: 447 | :path: "../node_modules/expo-error-recovery/ios" 448 | EXFileSystem: 449 | :path: "../node_modules/expo-file-system/ios" 450 | EXFont: 451 | :path: "../node_modules/expo-font/ios" 452 | EXImageLoader: 453 | :path: "../node_modules/expo-image-loader/ios" 454 | EXKeepAwake: 455 | :path: "../node_modules/expo-keep-awake/ios" 456 | ExpoModulesCore: 457 | :path: "../node_modules/expo-modules-core/ios" 458 | EXSplashScreen: 459 | :path: "../node_modules/expo-splash-screen/ios" 460 | EXStructuredHeaders: 461 | :path: "../node_modules/expo-structured-headers/ios" 462 | EXUpdates: 463 | :path: "../node_modules/expo-updates/ios" 464 | EXUpdatesInterface: 465 | :path: "../node_modules/expo-updates-interface/ios" 466 | FBLazyVector: 467 | :path: "../node_modules/react-native/Libraries/FBLazyVector" 468 | FBReactNativeSpec: 469 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec" 470 | Folly: 471 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 472 | glog: 473 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 474 | RCTRequired: 475 | :path: "../node_modules/react-native/Libraries/RCTRequired" 476 | RCTTypeSafety: 477 | :path: "../node_modules/react-native/Libraries/TypeSafety" 478 | React: 479 | :path: "../node_modules/react-native/" 480 | React-callinvoker: 481 | :path: "../node_modules/react-native/ReactCommon/callinvoker" 482 | React-Core: 483 | :path: "../node_modules/react-native/" 484 | React-CoreModules: 485 | :path: "../node_modules/react-native/React/CoreModules" 486 | React-cxxreact: 487 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 488 | React-jsi: 489 | :path: "../node_modules/react-native/ReactCommon/jsi" 490 | React-jsiexecutor: 491 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 492 | React-jsinspector: 493 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 494 | react-native-blur: 495 | :path: "../node_modules/@react-native-community/blur" 496 | react-native-get-random-values: 497 | :path: "../node_modules/react-native-get-random-values" 498 | react-native-safe-area-context: 499 | :path: "../node_modules/react-native-safe-area-context" 500 | React-RCTActionSheet: 501 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 502 | React-RCTAnimation: 503 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 504 | React-RCTBlob: 505 | :path: "../node_modules/react-native/Libraries/Blob" 506 | React-RCTImage: 507 | :path: "../node_modules/react-native/Libraries/Image" 508 | React-RCTLinking: 509 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 510 | React-RCTNetwork: 511 | :path: "../node_modules/react-native/Libraries/Network" 512 | React-RCTSettings: 513 | :path: "../node_modules/react-native/Libraries/Settings" 514 | React-RCTText: 515 | :path: "../node_modules/react-native/Libraries/Text" 516 | React-RCTVibration: 517 | :path: "../node_modules/react-native/Libraries/Vibration" 518 | ReactCommon: 519 | :path: "../node_modules/react-native/ReactCommon" 520 | RNCAsyncStorage: 521 | :path: "../node_modules/@react-native-async-storage/async-storage" 522 | RNFastImage: 523 | :path: "../node_modules/react-native-fast-image" 524 | RNGestureHandler: 525 | :path: "../node_modules/react-native-gesture-handler" 526 | RNReanimated: 527 | :path: "../node_modules/react-native-reanimated" 528 | RNScreens: 529 | :path: "../node_modules/react-native-screens" 530 | RNSVG: 531 | :path: "../node_modules/react-native-svg" 532 | RNVectorIcons: 533 | :path: "../node_modules/react-native-vector-icons" 534 | UMAppLoader: 535 | :path: "../node_modules/unimodules-app-loader/ios" 536 | UMCore: 537 | :path: "../node_modules/@unimodules/core/ios" 538 | UMReactNativeAdapter: 539 | :path: "../node_modules/@unimodules/react-native-adapter/ios" 540 | UMTaskManagerInterface: 541 | :path: "../node_modules/unimodules-task-manager-interface/ios" 542 | Yoga: 543 | :path: "../node_modules/react-native/ReactCommon/yoga" 544 | 545 | SPEC CHECKSUMS: 546 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 547 | DoubleConversion: cde416483dac037923206447da6e1454df403714 548 | EXApplication: 9ff2a206009d6e55bca6c20b3f33d07986b51ef3 549 | EXBarCodeScanner: ea326d0d2f0b84d4fa2fb833d17e28eaff7f831b 550 | EXConstants: 4cb52b6d8f636c767104a44bf7db3873e9c01a6f 551 | EXErrorRecovery: 404d827bc7d42f306c062d58a60b06afc4d082b3 552 | EXFileSystem: 0a04aba8da751b9ac954065911bcf166503f8267 553 | EXFont: 9846ba1bb6f5f5aed44e20eea3ac70693323832d 554 | EXImageLoader: d3531a3fe530b22925c19977cb53bb43e3821fe6 555 | EXKeepAwake: f4105ef469be7b283f66ce2d7234bb71ac80cd26 556 | ExpoModulesCore: 2734852616127a6c1fc23012197890a6f3763dc7 557 | EXSplashScreen: 847e0d8026731c1090bf269ede3e15ac87d88958 558 | EXStructuredHeaders: e52b880264d15b8ad07d36670226c29476af6334 559 | EXUpdates: 013d26649cb6ab4f8d8d80c35d3d4be150b47e7c 560 | EXUpdatesInterface: b68e78b912a03fff7901a5f46ec200c45e3506a5 561 | FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e 562 | FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e 563 | Folly: b73c3869541e86821df3c387eb0af5f65addfab4 564 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3 565 | libwebp: e90b9c01d99205d03b6bb8f2c8c415e5a4ef66f0 566 | RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e 567 | RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b 568 | React: b0a957a2c44da4113b0c4c9853d8387f8e64e615 569 | React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe 570 | React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b 571 | React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60 572 | React-cxxreact: c1480d4fda5720086c90df537ee7d285d4c57ac3 573 | React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31 574 | React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949 575 | React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a 576 | react-native-blur: cad4d93b364f91e7b7931b3fa935455487e5c33c 577 | react-native-get-random-values: 1404bd5cc0ab0e287f75ee1c489555688fc65f89 578 | react-native-safe-area-context: f0906bf8bc9835ac9a9d3f97e8bde2a997d8da79 579 | React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336 580 | React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b 581 | React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0 582 | React-RCTImage: c1b1f2d3f43a4a528c8946d6092384b5c880d2f0 583 | React-RCTLinking: 35ae4ab9dc0410d1fcbdce4d7623194a27214fb2 584 | React-RCTNetwork: 29ec2696f8d8cfff7331fac83d3e893c95ef43ae 585 | React-RCTSettings: 60f0691bba2074ef394f95d4c2265ec284e0a46a 586 | React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c 587 | React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d 588 | ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b 589 | RNCAsyncStorage: 44539979e1f234262d64d3ce86ec21cceb1b2c5e 590 | RNFastImage: adef7f9c9a7aeca0141807ee5a8be8a3eb240dd8 591 | RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211 592 | RNReanimated: 6ec2460b9c6c8f3b1403bd0eaa12d359a98650e3 593 | RNScreens: 21b73c94c9117e1110a79ee0ee80c93ccefed8ce 594 | RNSVG: a53a5de0d90ec96a6502cc3a4534dfcc0c130622 595 | RNVectorIcons: 31cebfcf94e8cf8686eb5303ae0357da64d7a5a4 596 | SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d 597 | SDWebImageWebPCoder: f93010f3f6c031e2f8fb3081ca4ee6966c539815 598 | UMAppLoader: 21af63390e55c82e037fb9752d93114a80ecf16e 599 | UMCore: ce3a4faa010239063b8343895b29a6d97b01069d 600 | UMReactNativeAdapter: d03cefd0e4e4179ab8c490408589f1c8a6c8b785 601 | UMTaskManagerInterface: 2be431101b73604e64fbfffcf759336f9d8fccbb 602 | Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 603 | ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb 604 | 605 | PODFILE CHECKSUM: f4d2f785b1e507da74a4d526d57a8b76c53d2e2f 606 | 607 | COCOAPODS: 1.10.1 608 | -------------------------------------------------------------------------------- /ios/nftvip.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 11 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 14 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; }; 15 | 96905EF65AED1B983A6B3ABC /* libPods-nftvip.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-nftvip.a */; }; 16 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 21 | 13B07F961A680F5B00A75B9A /* nftvip.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = nftvip.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = nftvip/AppDelegate.h; sourceTree = ""; }; 23 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = nftvip/AppDelegate.m; sourceTree = ""; }; 24 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 25 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = nftvip/Images.xcassets; sourceTree = ""; }; 26 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = nftvip/Info.plist; sourceTree = ""; }; 27 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = nftvip/main.m; sourceTree = ""; }; 28 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-nftvip.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-nftvip.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 29 | 6C2E3173556A471DD304B334 /* Pods-nftvip.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nftvip.debug.xcconfig"; path = "Target Support Files/Pods-nftvip/Pods-nftvip.debug.xcconfig"; sourceTree = ""; }; 30 | 7A4D352CD337FB3A3BF06240 /* Pods-nftvip.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nftvip.release.xcconfig"; path = "Target Support Files/Pods-nftvip/Pods-nftvip.release.xcconfig"; sourceTree = ""; }; 31 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = nftvip/SplashScreen.storyboard; sourceTree = ""; }; 32 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; }; 33 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 34 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | 96905EF65AED1B983A6B3ABC /* libPods-nftvip.a in Frameworks */, 43 | ); 44 | runOnlyForDeploymentPostprocessing = 0; 45 | }; 46 | /* End PBXFrameworksBuildPhase section */ 47 | 48 | /* Begin PBXGroup section */ 49 | 13B07FAE1A68108700A75B9A /* nftvip */ = { 50 | isa = PBXGroup; 51 | children = ( 52 | BB2F792B24A3F905000567C9 /* Supporting */, 53 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 54 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 55 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 56 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 57 | 13B07FB61A68108700A75B9A /* Info.plist */, 58 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 59 | 13B07FB71A68108700A75B9A /* main.m */, 60 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */, 61 | ); 62 | name = nftvip; 63 | sourceTree = ""; 64 | }; 65 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 66 | isa = PBXGroup; 67 | children = ( 68 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 69 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 70 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-nftvip.a */, 71 | ); 72 | name = Frameworks; 73 | sourceTree = ""; 74 | }; 75 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | ); 79 | name = Libraries; 80 | sourceTree = ""; 81 | }; 82 | 83CBB9F61A601CBA00E9B192 = { 83 | isa = PBXGroup; 84 | children = ( 85 | 13B07FAE1A68108700A75B9A /* nftvip */, 86 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 87 | 83CBBA001A601CBA00E9B192 /* Products */, 88 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 89 | D65327D7A22EEC0BE12398D9 /* Pods */, 90 | ); 91 | indentWidth = 2; 92 | sourceTree = ""; 93 | tabWidth = 2; 94 | usesTabs = 0; 95 | }; 96 | 83CBBA001A601CBA00E9B192 /* Products */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | 13B07F961A680F5B00A75B9A /* nftvip.app */, 100 | ); 101 | name = Products; 102 | sourceTree = ""; 103 | }; 104 | BB2F792B24A3F905000567C9 /* Supporting */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | BB2F792C24A3F905000567C9 /* Expo.plist */, 108 | ); 109 | name = Supporting; 110 | path = nftvip/Supporting; 111 | sourceTree = ""; 112 | }; 113 | D65327D7A22EEC0BE12398D9 /* Pods */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 6C2E3173556A471DD304B334 /* Pods-nftvip.debug.xcconfig */, 117 | 7A4D352CD337FB3A3BF06240 /* Pods-nftvip.release.xcconfig */, 118 | ); 119 | path = Pods; 120 | sourceTree = ""; 121 | }; 122 | /* End PBXGroup section */ 123 | 124 | /* Begin PBXNativeTarget section */ 125 | 13B07F861A680F5B00A75B9A /* nftvip */ = { 126 | isa = PBXNativeTarget; 127 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "nftvip" */; 128 | buildPhases = ( 129 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */, 130 | FD10A7F022414F080027D42C /* Start Packager */, 131 | 13B07F871A680F5B00A75B9A /* Sources */, 132 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 133 | 13B07F8E1A680F5B00A75B9A /* Resources */, 134 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 135 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */, 136 | ); 137 | buildRules = ( 138 | ); 139 | dependencies = ( 140 | ); 141 | name = nftvip; 142 | productName = nftvip; 143 | productReference = 13B07F961A680F5B00A75B9A /* nftvip.app */; 144 | productType = "com.apple.product-type.application"; 145 | }; 146 | /* End PBXNativeTarget section */ 147 | 148 | /* Begin PBXProject section */ 149 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 150 | isa = PBXProject; 151 | attributes = { 152 | LastUpgradeCheck = 1130; 153 | TargetAttributes = { 154 | 13B07F861A680F5B00A75B9A = { 155 | DevelopmentTeam = 9347P25LZB; 156 | LastSwiftMigration = 1120; 157 | }; 158 | }; 159 | }; 160 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "nftvip" */; 161 | compatibilityVersion = "Xcode 3.2"; 162 | developmentRegion = en; 163 | hasScannedForEncodings = 0; 164 | knownRegions = ( 165 | en, 166 | Base, 167 | ); 168 | mainGroup = 83CBB9F61A601CBA00E9B192; 169 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 170 | projectDirPath = ""; 171 | projectRoot = ""; 172 | targets = ( 173 | 13B07F861A680F5B00A75B9A /* nftvip */, 174 | ); 175 | }; 176 | /* End PBXProject section */ 177 | 178 | /* Begin PBXResourcesBuildPhase section */ 179 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 180 | isa = PBXResourcesBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */, 184 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 185 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 186 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */, 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | }; 190 | /* End PBXResourcesBuildPhase section */ 191 | 192 | /* Begin PBXShellScriptBuildPhase section */ 193 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 194 | isa = PBXShellScriptBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ); 198 | inputPaths = ( 199 | ); 200 | name = "Bundle React Native code and images"; 201 | outputPaths = ( 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | shellPath = /bin/sh; 205 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n../node_modules/expo-constants/scripts/get-app-config-ios.sh\n../node_modules/expo-updates/scripts/create-manifest-ios.sh\n"; 206 | }; 207 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = { 208 | isa = PBXShellScriptBuildPhase; 209 | buildActionMask = 2147483647; 210 | files = ( 211 | ); 212 | inputFileListPaths = ( 213 | ); 214 | inputPaths = ( 215 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 216 | "${PODS_ROOT}/Manifest.lock", 217 | ); 218 | name = "[CP] Check Pods Manifest.lock"; 219 | outputFileListPaths = ( 220 | ); 221 | outputPaths = ( 222 | "$(DERIVED_FILE_DIR)/Pods-nftvip-checkManifestLockResult.txt", 223 | ); 224 | runOnlyForDeploymentPostprocessing = 0; 225 | shellPath = /bin/sh; 226 | 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"; 227 | showEnvVarsInLog = 0; 228 | }; 229 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = { 230 | isa = PBXShellScriptBuildPhase; 231 | buildActionMask = 2147483647; 232 | files = ( 233 | ); 234 | inputPaths = ( 235 | "${PODS_ROOT}/Target Support Files/Pods-nftvip/Pods-nftvip-resources.sh", 236 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/AntDesign.ttf", 237 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Entypo.ttf", 238 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/EvilIcons.ttf", 239 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Feather.ttf", 240 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome.ttf", 241 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Brands.ttf", 242 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Regular.ttf", 243 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/FontAwesome5_Solid.ttf", 244 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Fontisto.ttf", 245 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Foundation.ttf", 246 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Ionicons.ttf", 247 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf", 248 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/MaterialIcons.ttf", 249 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Octicons.ttf", 250 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf", 251 | "${PODS_ROOT}/../../node_modules/react-native-vector-icons/Fonts/Zocial.ttf", 252 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", 253 | ); 254 | name = "[CP] Copy Pods Resources"; 255 | outputPaths = ( 256 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AntDesign.ttf", 257 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Entypo.ttf", 258 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EvilIcons.ttf", 259 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Feather.ttf", 260 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome.ttf", 261 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Brands.ttf", 262 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Regular.ttf", 263 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FontAwesome5_Solid.ttf", 264 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Fontisto.ttf", 265 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Foundation.ttf", 266 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Ionicons.ttf", 267 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialCommunityIcons.ttf", 268 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MaterialIcons.ttf", 269 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Octicons.ttf", 270 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SimpleLineIcons.ttf", 271 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Zocial.ttf", 272 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | shellPath = /bin/sh; 276 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-nftvip/Pods-nftvip-resources.sh\"\n"; 277 | showEnvVarsInLog = 0; 278 | }; 279 | FD10A7F022414F080027D42C /* Start Packager */ = { 280 | isa = PBXShellScriptBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | ); 284 | inputFileListPaths = ( 285 | ); 286 | inputPaths = ( 287 | ); 288 | name = "Start Packager"; 289 | outputFileListPaths = ( 290 | ); 291 | outputPaths = ( 292 | ); 293 | runOnlyForDeploymentPostprocessing = 0; 294 | shellPath = /bin/sh; 295 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 296 | showEnvVarsInLog = 0; 297 | }; 298 | /* End PBXShellScriptBuildPhase section */ 299 | 300 | /* Begin PBXSourcesBuildPhase section */ 301 | 13B07F871A680F5B00A75B9A /* Sources */ = { 302 | isa = PBXSourcesBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 306 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 307 | ); 308 | runOnlyForDeploymentPostprocessing = 0; 309 | }; 310 | /* End PBXSourcesBuildPhase section */ 311 | 312 | /* Begin PBXVariantGroup section */ 313 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 314 | isa = PBXVariantGroup; 315 | children = ( 316 | 13B07FB21A68108700A75B9A /* Base */, 317 | ); 318 | name = LaunchScreen.xib; 319 | path = nftvip; 320 | sourceTree = ""; 321 | }; 322 | /* End PBXVariantGroup section */ 323 | 324 | /* Begin XCBuildConfiguration section */ 325 | 13B07F941A680F5B00A75B9A /* Debug */ = { 326 | isa = XCBuildConfiguration; 327 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-nftvip.debug.xcconfig */; 328 | buildSettings = { 329 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 330 | CLANG_ENABLE_MODULES = YES; 331 | CODE_SIGN_ENTITLEMENTS = nftvip/nftvip.entitlements; 332 | CURRENT_PROJECT_VERSION = 1; 333 | DEVELOPMENT_TEAM = 9347P25LZB; 334 | ENABLE_BITCODE = NO; 335 | GCC_PREPROCESSOR_DEFINITIONS = ( 336 | "$(inherited)", 337 | "FB_SONARKIT_ENABLED=1", 338 | ); 339 | INFOPLIST_FILE = nftvip/Info.plist; 340 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 341 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 342 | OTHER_LDFLAGS = ( 343 | "$(inherited)", 344 | "-ObjC", 345 | "-lc++", 346 | ); 347 | PRODUCT_BUNDLE_IDENTIFIER = io.github.plugworld.nftvip; 348 | PRODUCT_NAME = nftvip; 349 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 350 | SWIFT_VERSION = 5.0; 351 | TARGETED_DEVICE_FAMILY = 1; 352 | VERSIONING_SYSTEM = "apple-generic"; 353 | }; 354 | name = Debug; 355 | }; 356 | 13B07F951A680F5B00A75B9A /* Release */ = { 357 | isa = XCBuildConfiguration; 358 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-nftvip.release.xcconfig */; 359 | buildSettings = { 360 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 361 | CLANG_ENABLE_MODULES = YES; 362 | CODE_SIGN_ENTITLEMENTS = nftvip/nftvip.entitlements; 363 | CURRENT_PROJECT_VERSION = 1; 364 | DEVELOPMENT_TEAM = 9347P25LZB; 365 | INFOPLIST_FILE = nftvip/Info.plist; 366 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 367 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 368 | OTHER_LDFLAGS = ( 369 | "$(inherited)", 370 | "-ObjC", 371 | "-lc++", 372 | ); 373 | PRODUCT_BUNDLE_IDENTIFIER = io.github.plugworld.nftvip; 374 | PRODUCT_NAME = nftvip; 375 | SWIFT_VERSION = 5.0; 376 | TARGETED_DEVICE_FAMILY = 1; 377 | VERSIONING_SYSTEM = "apple-generic"; 378 | }; 379 | name = Release; 380 | }; 381 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 382 | isa = XCBuildConfiguration; 383 | buildSettings = { 384 | ALWAYS_SEARCH_USER_PATHS = NO; 385 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 387 | CLANG_CXX_LIBRARY = "libc++"; 388 | CLANG_ENABLE_MODULES = YES; 389 | CLANG_ENABLE_OBJC_ARC = YES; 390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 391 | CLANG_WARN_BOOL_CONVERSION = YES; 392 | CLANG_WARN_COMMA = YES; 393 | CLANG_WARN_CONSTANT_CONVERSION = YES; 394 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 396 | CLANG_WARN_EMPTY_BODY = YES; 397 | CLANG_WARN_ENUM_CONVERSION = YES; 398 | CLANG_WARN_INFINITE_RECURSION = YES; 399 | CLANG_WARN_INT_CONVERSION = YES; 400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 401 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 402 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 403 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 404 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 405 | CLANG_WARN_STRICT_PROTOTYPES = YES; 406 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 407 | CLANG_WARN_UNREACHABLE_CODE = YES; 408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 409 | CODE_SIGN_ENTITLEMENTS = nftvip/nftvip.entitlements; 410 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 411 | COPY_PHASE_STRIP = NO; 412 | ENABLE_STRICT_OBJC_MSGSEND = YES; 413 | ENABLE_TESTABILITY = YES; 414 | GCC_C_LANGUAGE_STANDARD = gnu99; 415 | GCC_DYNAMIC_NO_PIC = NO; 416 | GCC_NO_COMMON_BLOCKS = YES; 417 | GCC_OPTIMIZATION_LEVEL = 0; 418 | GCC_PREPROCESSOR_DEFINITIONS = ( 419 | "DEBUG=1", 420 | "$(inherited)", 421 | ); 422 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 423 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 424 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 425 | GCC_WARN_UNDECLARED_SELECTOR = YES; 426 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 427 | GCC_WARN_UNUSED_FUNCTION = YES; 428 | GCC_WARN_UNUSED_VARIABLE = YES; 429 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 430 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 431 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 432 | MTL_ENABLE_DEBUG_INFO = YES; 433 | ONLY_ACTIVE_ARCH = YES; 434 | SDKROOT = iphoneos; 435 | }; 436 | name = Debug; 437 | }; 438 | 83CBBA211A601CBA00E9B192 /* Release */ = { 439 | isa = XCBuildConfiguration; 440 | buildSettings = { 441 | ALWAYS_SEARCH_USER_PATHS = NO; 442 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; 443 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 444 | CLANG_CXX_LIBRARY = "libc++"; 445 | CLANG_ENABLE_MODULES = YES; 446 | CLANG_ENABLE_OBJC_ARC = YES; 447 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 448 | CLANG_WARN_BOOL_CONVERSION = YES; 449 | CLANG_WARN_COMMA = YES; 450 | CLANG_WARN_CONSTANT_CONVERSION = YES; 451 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 452 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 453 | CLANG_WARN_EMPTY_BODY = YES; 454 | CLANG_WARN_ENUM_CONVERSION = YES; 455 | CLANG_WARN_INFINITE_RECURSION = YES; 456 | CLANG_WARN_INT_CONVERSION = YES; 457 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 458 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 459 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 460 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 461 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 462 | CLANG_WARN_STRICT_PROTOTYPES = YES; 463 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 464 | CLANG_WARN_UNREACHABLE_CODE = YES; 465 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 466 | CODE_SIGN_ENTITLEMENTS = nftvip/nftvip.entitlements; 467 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 468 | COPY_PHASE_STRIP = YES; 469 | ENABLE_NS_ASSERTIONS = NO; 470 | ENABLE_STRICT_OBJC_MSGSEND = YES; 471 | GCC_C_LANGUAGE_STANDARD = gnu99; 472 | GCC_NO_COMMON_BLOCKS = YES; 473 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 474 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 475 | GCC_WARN_UNDECLARED_SELECTOR = YES; 476 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 477 | GCC_WARN_UNUSED_FUNCTION = YES; 478 | GCC_WARN_UNUSED_VARIABLE = YES; 479 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 480 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; 481 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\""; 482 | MTL_ENABLE_DEBUG_INFO = NO; 483 | SDKROOT = iphoneos; 484 | VALIDATE_PRODUCT = YES; 485 | }; 486 | name = Release; 487 | }; 488 | /* End XCBuildConfiguration section */ 489 | 490 | /* Begin XCConfigurationList section */ 491 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "nftvip" */ = { 492 | isa = XCConfigurationList; 493 | buildConfigurations = ( 494 | 13B07F941A680F5B00A75B9A /* Debug */, 495 | 13B07F951A680F5B00A75B9A /* Release */, 496 | ); 497 | defaultConfigurationIsVisible = 0; 498 | defaultConfigurationName = Release; 499 | }; 500 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "nftvip" */ = { 501 | isa = XCConfigurationList; 502 | buildConfigurations = ( 503 | 83CBBA201A601CBA00E9B192 /* Debug */, 504 | 83CBBA211A601CBA00E9B192 /* Release */, 505 | ); 506 | defaultConfigurationIsVisible = 0; 507 | defaultConfigurationName = Release; 508 | }; 509 | /* End XCConfigurationList section */ 510 | }; 511 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 512 | } 513 | --------------------------------------------------------------------------------