getTurboModule(
27 | const std::string name,
28 | const JavaTurboModule::InitParams ¶ms) override;
29 |
30 | /**
31 | * Test-only method. Allows user to verify whether a TurboModule can be
32 | * created by instances of this class.
33 | */
34 | bool canCreateTurboModule(std::string name);
35 | };
36 |
37 | } // namespace react
38 | } // namespace facebook
39 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/nftmarketplace/newarchitecture/components/MainComponentsRegistry.java:
--------------------------------------------------------------------------------
1 | package com.nftmarketplace.newarchitecture.components;
2 |
3 | import com.facebook.jni.HybridData;
4 | import com.facebook.proguard.annotations.DoNotStrip;
5 | import com.facebook.react.fabric.ComponentFactory;
6 | import com.facebook.soloader.SoLoader;
7 |
8 | /**
9 | * Class responsible to load the custom Fabric Components. This class has native methods and needs a
10 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/
11 | * folder for you).
12 | *
13 | * Please note that this class is used ONLY if you opt-in for the New Architecture (see the
14 | * `newArchEnabled` property). Is ignored otherwise.
15 | */
16 | @DoNotStrip
17 | public class MainComponentsRegistry {
18 | static {
19 | SoLoader.loadLibrary("fabricjni");
20 | }
21 |
22 | @DoNotStrip private final HybridData mHybridData;
23 |
24 | @DoNotStrip
25 | private native HybridData initHybrid(ComponentFactory componentFactory);
26 |
27 | @DoNotStrip
28 | private MainComponentsRegistry(ComponentFactory componentFactory) {
29 | mHybridData = initHybrid(componentFactory);
30 | }
31 |
32 | @DoNotStrip
33 | public static MainComponentsRegistry register(ComponentFactory componentFactory) {
34 | return new MainComponentsRegistry(componentFactory);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/components/DetailsBid.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, SIZES, FONTS } from "../constants";
4 | import { EthPrice } from "./SubInfo";
5 | export default function DetailsBid({ bid }) {
6 | return (
7 |
18 |
23 |
24 |
25 |
32 | bid placed by {bid.name}
33 | {bid.title}
34 |
35 |
43 | {bid.date}
44 |
45 |
46 |
47 |
48 |
49 |
50 | );
51 | }
52 |
--------------------------------------------------------------------------------
/.history/src/components/DetailsBid_20220516003536.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, SIZES, FONTS } from "../constants";
4 | import { EthPrice } from "./SubInfo";
5 | export default function DetailsBid({ bid }) {
6 | return (
7 |
18 |
23 |
24 |
25 |
32 | bid placed by {bid.name}
33 | {bid.title}
34 |
35 |
43 | {bid.date}
44 |
45 |
46 |
47 |
48 |
49 |
50 | );
51 | }
52 |
--------------------------------------------------------------------------------
/.history/src/components/DetailsBid_20220516003552.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, SIZES, FONTS } from "../constants";
4 | import { EthPrice } from "./SubInfo";
5 | export default function DetailsBid({ bid }) {
6 | return (
7 |
18 |
23 |
24 |
25 |
32 | bid placed by {bid.name}
33 | {bid.title}
34 |
35 |
43 | {bid.date}
44 |
45 |
46 |
47 |
48 |
49 |
50 | );
51 | }
52 |
--------------------------------------------------------------------------------
/.history/src/components/DetailsBid_20220516002353.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, SIZES, FONTS } from "../constants";
4 | import { EthPrice } from "./SubInfo";
5 | export default function DetailsBid({ bid }) {
6 | return (
7 |
18 |
23 |
24 |
25 |
32 | bid placed by {bid.name}
33 | {bid.title}
34 |
35 |
43 | {bid.date}
44 |
45 |
46 |
47 |
48 |
49 |
50 | );
51 | }
52 |
--------------------------------------------------------------------------------
/.history/src/components/DetailsBid_20220516003544.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, SIZES, FONTS } from "../constants";
4 | import { EthPrice } from "./SubInfo";
5 | export default function DetailsBid({ bid }) {
6 | return (
7 |
18 |
23 |
24 |
25 |
32 | bid placed by {bid.name}
33 | {bid.title}
34 |
35 |
43 | {bid.date}
44 |
45 |
46 |
47 |
48 |
49 |
50 | );
51 | }
52 |
--------------------------------------------------------------------------------
/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 = "com.nftmarketplace",
39 | )
40 |
41 | android_resource(
42 | name = "res",
43 | package = "com.nftmarketplace",
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 |
--------------------------------------------------------------------------------
/App.js:
--------------------------------------------------------------------------------
1 | import { StatusBar } from "expo-status-bar";
2 | import React from "react";
3 | import { StyleSheet, Text, View } from "react-native";
4 | import { useFonts } from "expo-font";
5 | // In App.js in a new project
6 |
7 | import { NavigationContainer , DefaultTheme } from "@react-navigation/native";
8 | import { createNativeStackNavigator } from "@react-navigation/native-stack";
9 | import HomeScreen from "./src/pages/home";
10 | import DetailsScreen from "./src/pages/details";
11 |
12 | const Stack = createNativeStackNavigator();
13 |
14 | const theme = {
15 | ...DefaultTheme,
16 | colors: {
17 | ...DefaultTheme.colors,
18 | background: "transparent",
19 |
20 | },
21 | };
22 |
23 | export default function App() {
24 | const [fontsLoaded] = useFonts({
25 | InterBold: require("./src/assets/fonts/Inter-Bold.ttf"),
26 | InterRegular: require("./src/assets/fonts/Inter-Regular.ttf"),
27 | InterSemiBold: require("./src/assets/fonts/Inter-SemiBold.ttf"),
28 | InterLight: require("./src/assets/fonts/Inter-Light.ttf"),
29 | InterMedium: require("./src/assets/fonts/Inter-Medium.ttf"),
30 | });
31 |
32 | if (!fontsLoaded) {
33 | return null;
34 | }
35 |
36 | return (
37 |
38 |
44 |
45 |
46 |
47 |
48 | );
49 | }
50 |
--------------------------------------------------------------------------------
/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp:
--------------------------------------------------------------------------------
1 | #include "MainApplicationTurboModuleManagerDelegate.h"
2 | #include "MainApplicationModuleProvider.h"
3 |
4 | namespace facebook {
5 | namespace react {
6 |
7 | jni::local_ref
8 | MainApplicationTurboModuleManagerDelegate::initHybrid(
9 | jni::alias_ref) {
10 | return makeCxxInstance();
11 | }
12 |
13 | void MainApplicationTurboModuleManagerDelegate::registerNatives() {
14 | registerHybrid({
15 | makeNativeMethod(
16 | "initHybrid", MainApplicationTurboModuleManagerDelegate::initHybrid),
17 | makeNativeMethod(
18 | "canCreateTurboModule",
19 | MainApplicationTurboModuleManagerDelegate::canCreateTurboModule),
20 | });
21 | }
22 |
23 | std::shared_ptr
24 | MainApplicationTurboModuleManagerDelegate::getTurboModule(
25 | const std::string name,
26 | const std::shared_ptr jsInvoker) {
27 | // Not implemented yet: provide pure-C++ NativeModules here.
28 | return nullptr;
29 | }
30 |
31 | std::shared_ptr
32 | MainApplicationTurboModuleManagerDelegate::getTurboModule(
33 | const std::string name,
34 | const JavaTurboModule::InitParams ¶ms) {
35 | return MainApplicationModuleProvider(name, params);
36 | }
37 |
38 | bool MainApplicationTurboModuleManagerDelegate::canCreateTurboModule(
39 | std::string name) {
40 | return getTurboModule(name, nullptr) != nullptr ||
41 | getTurboModule(name, {.moduleName = name}) != nullptr;
42 | }
43 |
44 | } // namespace react
45 | } // namespace facebook
46 |
--------------------------------------------------------------------------------
/src/components/Button.js:
--------------------------------------------------------------------------------
1 | import { View, Text, TouchableOpacity, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, FONTS, SHADOWS, SIZES } from "../constants";
4 |
5 | export function CircleButton({ imgUrl, handlePress, ...props }) {
6 | // function to determine if number is even or odd
7 | const isEven = (num) => num % 2 === 0;
8 |
9 | return (
10 |
24 |
29 |
30 | );
31 | }
32 |
33 | export function RectButton({ minWidth, fontSize, handlePress, ...props }) {
34 | return (
35 |
46 |
54 | Place a bid
55 |
56 |
57 | );
58 | }
59 |
--------------------------------------------------------------------------------
/android/app/src/main/jni/Android.mk:
--------------------------------------------------------------------------------
1 | THIS_DIR := $(call my-dir)
2 |
3 | include $(REACT_ANDROID_DIR)/Android-prebuilt.mk
4 |
5 | # If you wish to add a custom TurboModule or Fabric component in your app you
6 | # will have to include the following autogenerated makefile.
7 | # include $(GENERATED_SRC_DIR)/codegen/jni/Android.mk
8 | include $(CLEAR_VARS)
9 |
10 | LOCAL_PATH := $(THIS_DIR)
11 |
12 | # You can customize the name of your application .so file here.
13 | LOCAL_MODULE := nftmarketplace_appmodules
14 |
15 | LOCAL_C_INCLUDES := $(LOCAL_PATH)
16 | LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/*.cpp)
17 | LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
18 |
19 | # If you wish to add a custom TurboModule or Fabric component in your app you
20 | # will have to uncomment those lines to include the generated source
21 | # files from the codegen (placed in $(GENERATED_SRC_DIR)/codegen/jni)
22 | #
23 | # LOCAL_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
24 | # LOCAL_SRC_FILES += $(wildcard $(GENERATED_SRC_DIR)/codegen/jni/*.cpp)
25 | # LOCAL_EXPORT_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
26 |
27 | # Here you should add any native library you wish to depend on.
28 | LOCAL_SHARED_LIBRARIES := \
29 | libfabricjni \
30 | libfbjni \
31 | libfolly_futures \
32 | libfolly_json \
33 | libglog \
34 | libjsi \
35 | libreact_codegen_rncore \
36 | libreact_debug \
37 | libreact_nativemodule_core \
38 | libreact_render_componentregistry \
39 | libreact_render_core \
40 | libreact_render_debug \
41 | libreact_render_graphics \
42 | librrc_view \
43 | libruntimeexecutor \
44 | libturbomodulejsijni \
45 | libyoga
46 |
47 | LOCAL_CFLAGS := -DLOG_TAG=\"ReactNative\" -fexceptions -frtti -std=c++17 -Wall
48 |
49 | include $(BUILD_SHARED_LIBRARY)
50 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
2 | require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
3 | require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
4 |
5 | require 'json'
6 | podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {}
7 |
8 | platform :ios, podfile_properties['ios.deploymentTarget'] || '12.0'
9 | install! 'cocoapods',
10 | :deterministic_uuids => false
11 |
12 | target 'nftmarketplace' do
13 | use_expo_modules!
14 | config = use_native_modules!
15 |
16 | use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
17 |
18 | # Flags change depending on the env values.
19 | flags = get_default_flags()
20 |
21 | use_react_native!(
22 | :path => config[:reactNativePath],
23 | :hermes_enabled => flags[:hermes_enabled] || podfile_properties['expo.jsEngine'] == 'hermes',
24 | :fabric_enabled => flags[:fabric_enabled],
25 | # An absolute path to your application root.
26 | :app_path => "#{Dir.pwd}/.."
27 | )
28 |
29 | # Uncomment to opt-in to using Flipper
30 | # Note that if you have use_frameworks! enabled, Flipper will not work
31 | #
32 | # if !ENV['CI']
33 | # use_flipper!()
34 | # end
35 |
36 | post_install do |installer|
37 | react_native_post_install(installer)
38 | __apply_Xcode_12_5_M1_post_install_workaround(installer)
39 | end
40 |
41 | post_integrate do |installer|
42 | begin
43 | expo_patch_react_imports!(installer)
44 | rescue => e
45 | Pod::UI.warn e
46 | end
47 | end
48 |
49 | end
50 |
--------------------------------------------------------------------------------
/ios/nftmarketplace/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | $(PRODUCT_BUNDLE_PACKAGE_TYPE)
17 | CFBundleSignature
18 | ????
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | NSAppTransportSecurity
26 |
27 | NSAllowsArbitraryLoads
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | UILaunchStoryboardName
39 | SplashScreen
40 | UIRequiredDeviceCapabilities
41 |
42 | armv7
43 |
44 | UISupportedInterfaceOrientations
45 |
46 | UIInterfaceOrientationPortrait
47 | UIInterfaceOrientationLandscapeLeft
48 | UIInterfaceOrientationLandscapeRight
49 |
50 | UIViewControllerBasedStatusBarAppearance
51 |
52 | UIStatusBarStyle
53 | UIStatusBarStyleDefault
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/pages/home.js:
--------------------------------------------------------------------------------
1 | import { View, Text, FlatList, SafeAreaView } from "react-native";
2 | import React from "react";
3 | import { useState } from "react";
4 | import { COLORS, NFTData } from "../constants";
5 | import { NFTCard, HomeHeader, FocusedStatusBar } from "../components";
6 | const Home = () => {
7 |
8 | const [data, setData] = useState(NFTData);
9 |
10 | const handleSearch = (value) => {
11 | if (!value.length === 0) {
12 | return setData(NFTData);
13 | }
14 | const filteredData = NFTData.filter((item) => {
15 | return item.name.toLowerCase().includes(value.toLowerCase());
16 | });
17 |
18 | if (filteredData.length === 0) {
19 | setData(NFTData);
20 | } else {
21 | setData(filteredData);
22 | }
23 | };
24 |
25 | return (
26 |
27 |
28 |
29 |
30 |
31 | }
34 | keyExtractor={(item) => item.id}
35 | style={{ marginTop: 20 }}
36 | ListHeaderComponent={}
37 | showsVerticalScrollIndicator={false}
38 | />
39 |
40 |
41 |
51 |
52 |
53 |
54 |
55 |
56 | );
57 | };
58 |
59 | export default Home;
60 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/nftmarketplace/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.nftmarketplace;
2 |
3 | import android.os.Build;
4 | import android.os.Bundle;
5 |
6 | import com.facebook.react.ReactActivity;
7 | import com.facebook.react.ReactActivityDelegate;
8 | import com.facebook.react.ReactRootView;
9 |
10 | import expo.modules.ReactActivityDelegateWrapper;
11 |
12 | public class MainActivity extends ReactActivity {
13 | @Override
14 | protected void onCreate(Bundle savedInstanceState) {
15 | // Set the theme to AppTheme BEFORE onCreate to support
16 | // coloring the background, status bar, and navigation bar.
17 | // This is required for expo-splash-screen.
18 | setTheme(R.style.AppTheme);
19 | super.onCreate(null);
20 | }
21 |
22 | /**
23 | * Returns the name of the main component registered from JavaScript.
24 | * This is used to schedule rendering of the component.
25 | */
26 | @Override
27 | protected String getMainComponentName() {
28 | return "main";
29 | }
30 |
31 | @Override
32 | protected ReactActivityDelegate createReactActivityDelegate() {
33 | return new ReactActivityDelegateWrapper(this,
34 | new ReactActivityDelegate(this, getMainComponentName())
35 | );
36 | }
37 |
38 | /**
39 | * Align the back button behavior with Android S
40 | * where moving root activities to background instead of finishing activities.
41 | * @see onBackPressed
42 | */
43 | @Override
44 | public void invokeDefaultOnBackPressed() {
45 | if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
46 | if (!moveTaskToBack(false)) {
47 | // For non-root activities, use the default implementation to finish them.
48 | super.invokeDefaultOnBackPressed();
49 | }
50 | return;
51 | }
52 |
53 | // Use the default back button implementation on Android S
54 | // because it's doing more than {@link Activity#moveTaskToBack} in fact.
55 | super.invokeDefaultOnBackPressed();
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/nftmarketplace/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java:
--------------------------------------------------------------------------------
1 | package com.nftmarketplace.newarchitecture.modules;
2 |
3 | import com.facebook.jni.HybridData;
4 | import com.facebook.react.ReactPackage;
5 | import com.facebook.react.ReactPackageTurboModuleManagerDelegate;
6 | import com.facebook.react.bridge.ReactApplicationContext;
7 | import com.facebook.soloader.SoLoader;
8 | import java.util.List;
9 |
10 | /**
11 | * Class responsible to load the TurboModules. This class has native methods and needs a
12 | * corresponding C++ implementation/header file to work correctly (already placed inside the jni/
13 | * folder for you).
14 | *
15 | * Please note that this class is used ONLY if you opt-in for the New Architecture (see the
16 | * `newArchEnabled` property). Is ignored otherwise.
17 | */
18 | public class MainApplicationTurboModuleManagerDelegate
19 | extends ReactPackageTurboModuleManagerDelegate {
20 |
21 | private static volatile boolean sIsSoLibraryLoaded;
22 |
23 | protected MainApplicationTurboModuleManagerDelegate(
24 | ReactApplicationContext reactApplicationContext, List packages) {
25 | super(reactApplicationContext, packages);
26 | }
27 |
28 | protected native HybridData initHybrid();
29 |
30 | native boolean canCreateTurboModule(String moduleName);
31 |
32 | public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder {
33 | protected MainApplicationTurboModuleManagerDelegate build(
34 | ReactApplicationContext context, List packages) {
35 | return new MainApplicationTurboModuleManagerDelegate(context, packages);
36 | }
37 | }
38 |
39 | @Override
40 | protected synchronized void maybeLoadOtherSoLibraries() {
41 | if (!sIsSoLibraryLoaded) {
42 | // If you change the name of your application .so file in the Android.mk file,
43 | // make sure you update the name here as well.
44 | SoLoader.loadLibrary("nftmarketplace_appmodules");
45 | sIsSoLibraryLoaded = true;
46 | }
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/rn_edit_text_material.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
21 |
22 |
23 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/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 |
32 |
33 |
--------------------------------------------------------------------------------
/src/components/NFTCard.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { useNavigation } from "@react-navigation/native";
4 | import { COLORS, SIZES, SHADOWS, assets } from "../constants";
5 | import { CircleButton, RectButton } from "./Button";
6 | import { EthPrice, NFTTitle, SubInfo } from "./SubInfo";
7 |
8 | export default function NFTCard({ data }) {
9 | const navigation = useNavigation();
10 | return (
11 |
20 |
21 |
31 |
32 | {
37 | navigation.navigate("Detail", {
38 | data: data,
39 | });
40 | }}
41 | />
42 |
43 |
44 |
45 |
46 |
52 |
53 |
61 |
62 | {
66 | navigation.navigate("details", {
67 | data: data,
68 | });
69 | }}
70 | />
71 |
72 |
73 |
74 | );
75 | }
76 |
--------------------------------------------------------------------------------
/android/app/src/main/jni/MainComponentsRegistry.cpp:
--------------------------------------------------------------------------------
1 | #include "MainComponentsRegistry.h"
2 |
3 | #include
4 | #include
5 | #include
6 | #include
7 |
8 | namespace facebook {
9 | namespace react {
10 |
11 | MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {}
12 |
13 | std::shared_ptr
14 | MainComponentsRegistry::sharedProviderRegistry() {
15 | auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry();
16 |
17 | // Custom Fabric Components go here. You can register custom
18 | // components coming from your App or from 3rd party libraries here.
19 | //
20 | // providerRegistry->add(concreteComponentDescriptorProvider<
21 | // AocViewerComponentDescriptor>());
22 | return providerRegistry;
23 | }
24 |
25 | jni::local_ref
26 | MainComponentsRegistry::initHybrid(
27 | jni::alias_ref,
28 | ComponentFactory *delegate) {
29 | auto instance = makeCxxInstance(delegate);
30 |
31 | auto buildRegistryFunction =
32 | [](EventDispatcher::Weak const &eventDispatcher,
33 | ContextContainer::Shared const &contextContainer)
34 | -> ComponentDescriptorRegistry::Shared {
35 | auto registry = MainComponentsRegistry::sharedProviderRegistry()
36 | ->createComponentDescriptorRegistry(
37 | {eventDispatcher, contextContainer});
38 |
39 | auto mutableRegistry =
40 | std::const_pointer_cast(registry);
41 |
42 | mutableRegistry->setFallbackComponentDescriptor(
43 | std::make_shared(
44 | ComponentDescriptorParameters{
45 | eventDispatcher, contextContainer, nullptr}));
46 |
47 | return registry;
48 | };
49 |
50 | delegate->buildRegistryFunction = buildRegistryFunction;
51 | return instance;
52 | }
53 |
54 | void MainComponentsRegistry::registerNatives() {
55 | registerHybrid({
56 | makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid),
57 | });
58 | }
59 |
60 | } // namespace react
61 | } // namespace facebook
62 |
--------------------------------------------------------------------------------
/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: -Xmx512m -XX:MaxMetaspaceSize=256m
13 | org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
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.125.0
30 |
31 | # Use this property to specify which architecture you want to build.
32 | # You can also override it from the CLI using
33 | # ./gradlew -PreactNativeArchitectures=x86_64
34 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
35 |
36 | # Use this property to enable support to the new architecture.
37 | # This will allow you to use TurboModules and the Fabric render in
38 | # your application. You should enable this flag either if you want
39 | # to write custom TurboModules/Fabric components OR use libraries that
40 | # are providing them.
41 | newArchEnabled=false
42 |
43 | # The hosted JavaScript engine
44 | # Supported values: expo.jsEngine = "hermes" | "jsc"
45 | expo.jsEngine=jsc
46 |
47 | # Enable GIF support in React Native images (~200 B increase)
48 | expo.gif.enabled=true
49 | # Enable webp support in React Native images (~85 KB increase)
50 | expo.webp.enabled=true
51 | # Enable animated webp support (~3.4 MB increase)
52 | # Disabled by default because iOS doesn't support animated webp
53 | expo.webp.animated=false
54 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | import org.apache.tools.ant.taskdefs.condition.Os
2 |
3 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
4 |
5 | buildscript {
6 | ext {
7 | buildToolsVersion = findProperty('android.buildToolsVersion') ?: "31.0.0"
8 | minSdkVersion = 21
9 | compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: "31")
10 | targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: "31")
11 | if (hasProperty('android.kotlinVersion')) {
12 | kotlinVersion = findProperty('android.kotlinVersion')
13 | }
14 |
15 | if (System.properties['os.arch'] == "aarch64") {
16 | // For M1 Users we need to use the NDK 24 which added support for aarch64
17 | ndkVersion = "24.0.8215888"
18 | } else {
19 | // Otherwise we default to the side-by-side NDK version from AGP.
20 | ndkVersion = "21.4.7075529"
21 | }
22 | }
23 | repositories {
24 | google()
25 | mavenCentral()
26 | }
27 | dependencies {
28 | classpath("com.android.tools.build:gradle:7.0.4")
29 | classpath("com.facebook.react:react-native-gradle-plugin")
30 | classpath("de.undercouch:gradle-download-task:4.1.2")
31 | // NOTE: Do not place your application dependencies here; they belong
32 | // in the individual module build.gradle files
33 | }
34 | }
35 |
36 | allprojects {
37 | repositories {
38 | mavenLocal()
39 | maven {
40 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
41 | url(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../android"))
42 | }
43 | maven {
44 | // Android JSC is installed from npm
45 | url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist"))
46 | }
47 |
48 | google()
49 | mavenCentral {
50 | // We don't want to fetch react-native from Maven Central as there are
51 | // older versions over there.
52 | content {
53 | excludeGroup "com.facebook.react"
54 | }
55 | }
56 | maven { url 'https://www.jitpack.io' }
57 | }
58 | }
59 |
--------------------------------------------------------------------------------
/src/components/DetailsDesc.js:
--------------------------------------------------------------------------------
1 | import { View, Text } from "react-native";
2 | import React from "react";
3 | import { useState } from "react";
4 | import { COLORS, assets, SIZES, SHADOWS, FONTS } from "../constants";
5 | import { NFTTitle, EthPrice } from "./SubInfo";
6 | export default function DetailsDesc({ data }) {
7 | const [desc, setDesc] = useState(data.description.slice(0, 100));
8 | const [readMore, setreadMore] = useState(false);
9 | return (
10 | <>
11 |
19 |
25 |
26 |
27 |
28 |
34 |
41 | Description
42 |
43 |
44 |
49 |
57 | {desc}
58 | {!readMore && "....."}
59 |
60 | {
67 | setreadMore(!readMore);
68 | if (!readMore) {
69 | setDesc(data.description);
70 | setreadMore(true);
71 | } else {
72 | setDesc(data.description.slice(0, 100));
73 | setreadMore(false);
74 | }
75 | }}
76 | >
77 | {readMore ? "see less" : "see more"}
78 |
79 |
80 |
81 |
82 | >
83 | );
84 | }
85 |
--------------------------------------------------------------------------------
/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 execute
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 execute
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 | :execute
68 | @rem Setup the command line
69 |
70 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
71 |
72 |
73 | @rem Execute Gradle
74 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
75 |
76 | :end
77 | @rem End local scope for the variables with windows NT shell
78 | if "%ERRORLEVEL%"=="0" goto mainEnd
79 |
80 | :fail
81 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
82 | rem the _cmd.exe /c_ return code!
83 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
84 | exit /b 1
85 |
86 | :mainEnd
87 | if "%OS%"=="Windows_NT" endlocal
88 |
89 | :omega
90 |
--------------------------------------------------------------------------------
/src/pages/details.js:
--------------------------------------------------------------------------------
1 | import {
2 | View,
3 | Text,
4 | SafeAreaView,
5 | Image,
6 | StatusBar,
7 | FlatList,
8 | } from "react-native";
9 | import React from "react";
10 | import { COLORS, FONTS, SHADOWS, SIZES, assets } from "../constants";
11 |
12 | import {
13 | FocusedStatusBar,
14 | SubInfo,
15 | CircleButton,
16 | RectButton,
17 | DetailsBid,
18 | DetailsDesc,
19 | Bids,
20 | } from "../components";
21 |
22 | const DetailsHeader = ({ data, navigation }) => (
23 |
24 |
29 |
30 | navigation.goBack()}
33 | left={15}
34 | top={StatusBar.currentHeight + 2}
35 | style={{
36 | top: SIZES.large,
37 | left: SIZES.large,
38 | }}
39 | />
40 |
41 | navigation.goBack()}
44 | right={15}
45 | top={StatusBar.currentHeight + 2}
46 | style={{
47 | top: SIZES.large,
48 | left: SIZES.large,
49 | }}
50 | />
51 |
52 | );
53 |
54 | export default function Details({ route, navigation }) {
55 | const { data } = route.params;
56 |
57 | return (
58 |
59 |
64 |
65 |
77 |
78 |
79 |
80 | }
83 | keyExtractor={(item) => item.id}
84 | showsVerticalScrollIndicator={false}
85 | contentContainerStyle={{
86 | paddingBottom: SIZES.extraLarge * 3,
87 | }}
88 | ListHeaderComponent={() => (
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
106 | Current Bids
107 |
108 |
109 | )}
110 | />
111 |
112 | );
113 | }
114 |
--------------------------------------------------------------------------------
/src/components/HomeHeader.js:
--------------------------------------------------------------------------------
1 | import { View, Text, TextInput, Image } from "react-native";
2 | import React from "react";
3 | import { COLORS, FONTS, SHADOWS, SIZES, assets } from "../constants";
4 |
5 | export default function HomeHeader({ OnSearch }) {
6 | return (
7 |
13 |
20 |
25 |
26 |
27 |
32 |
33 |
44 |
45 |
46 |
47 |
52 |
59 | Hello World ✊
60 |
61 |
62 |
70 | Lets get started 👽 !
71 |
72 |
73 |
74 |
75 |
86 |
91 |
92 |
105 |
106 |
107 |
108 | );
109 | }
110 |
--------------------------------------------------------------------------------
/src/components/SubInfo.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { SIZES, COLORS, SHADOWS, assets, FONTS } from "../constants";
4 |
5 | export function NFTTitle({ title, subtitle, titleSize, subtitleSize }) {
6 | return (
7 |
8 |
15 | {title}
16 |
17 |
18 |
25 | by {subtitle}
26 |
27 |
28 | );
29 | }
30 |
31 | export function EthPrice({ price }) {
32 | return (
33 |
39 |
44 |
45 |
52 | {price}
53 |
54 |
55 | );
56 | }
57 |
58 | export function ImageCmp({ index, imgUrl }) {
59 | return (
60 |
69 | );
70 | }
71 |
72 | export function People() {
73 | return (
74 |
79 | {[assets.person02, assets.person03, assets.person04].map(
80 | (imgUrl, index) => {
81 | return (
82 |
83 | );
84 | }
85 | )}
86 |
87 | );
88 | }
89 |
90 | export function EndDate() {
91 | return (
92 |
104 |
111 | Ending in
112 |
113 |
114 |
121 | 12 days
122 |
123 |
124 | );
125 | }
126 |
127 | export function SubInfo() {
128 | return (
129 |
138 |
139 |
140 |
141 | );
142 | }
143 |
--------------------------------------------------------------------------------
/.history/src/components/SubInfo_20220515233002.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { SIZES, COLORS, SHADOWS, assets, FONTS } from "../constants";
4 |
5 | export function NFTTitle({ title, subtitle, titleSize, subtitleSize }) {
6 | return (
7 |
8 |
15 | {title}
16 |
17 |
18 |
25 | {subtitle}
26 |
27 |
28 | );
29 | }
30 |
31 | export function EthPrice({ price }) {
32 | return (
33 |
39 |
44 |
45 |
52 | {price}
53 |
54 |
55 | );
56 | }
57 |
58 | export function ImageCmp({ index, imgUrl }) {
59 | return (
60 |
69 | );
70 | }
71 |
72 | export function People() {
73 | return (
74 |
79 | {[assets.person02, assets.person03, assets.person04].map(
80 | (imgUrl, index) => {
81 | return (
82 |
83 | );
84 | }
85 | )}
86 |
87 | );
88 | }
89 |
90 | export function EndDate() {
91 | return (
92 |
104 |
111 | Ending in
112 |
113 |
114 |
121 | 12 days
122 |
123 |
124 | );
125 | }
126 |
127 | export function SubInfo() {
128 | return (
129 |
138 |
139 |
140 |
141 | );
142 | }
143 |
--------------------------------------------------------------------------------
/.history/src/components/SubInfo_20220516003455.js:
--------------------------------------------------------------------------------
1 | import { View, Text, Image } from "react-native";
2 | import React from "react";
3 | import { SIZES, COLORS, SHADOWS, assets, FONTS } from "../constants";
4 |
5 | export function NFTTitle({ title, subtitle, titleSize, subtitleSize }) {
6 | return (
7 |
8 |
15 | {title}
16 |
17 |
18 |
25 | by {subtitle}
26 |
27 |
28 | );
29 | }
30 |
31 | export function EthPrice({ price }) {
32 | return (
33 |
39 |
44 |
45 |
52 | {price}
53 |
54 |
55 | );
56 | }
57 |
58 | export function ImageCmp({ index, imgUrl }) {
59 | return (
60 |
69 | );
70 | }
71 |
72 | export function People() {
73 | return (
74 |
79 | {[assets.person02, assets.person03, assets.person04].map(
80 | (imgUrl, index) => {
81 | return (
82 |
83 | );
84 | }
85 | )}
86 |
87 | );
88 | }
89 |
90 | export function EndDate() {
91 | return (
92 |
104 |
111 | Ending in
112 |
113 |
114 |
121 | 12 days
122 |
123 |
124 | );
125 | }
126 |
127 | export function SubInfo() {
128 | return (
129 |
138 |
139 |
140 |
141 | );
142 | }
143 |
--------------------------------------------------------------------------------
/android/app/src/debug/java/com/nftmarketplace/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.nftmarketplace;
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/nftmarketplace.xcodeproj/xcshareddata/xcschemes/nftmarketplace.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 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/nftmarketplace/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.nftmarketplace;
2 |
3 | import android.app.Application;
4 | import android.content.Context;
5 | import android.content.res.Configuration;
6 | import androidx.annotation.NonNull;
7 |
8 | import com.facebook.react.PackageList;
9 | import com.facebook.react.ReactApplication;
10 | import com.facebook.react.ReactInstanceManager;
11 | import com.facebook.react.ReactNativeHost;
12 | import com.facebook.react.ReactPackage;
13 | import com.facebook.react.config.ReactFeatureFlags;
14 | import com.facebook.soloader.SoLoader;
15 | import com.nftmarketplace.newarchitecture.MainApplicationReactNativeHost;
16 |
17 | import expo.modules.ApplicationLifecycleDispatcher;
18 | import expo.modules.ReactNativeHostWrapper;
19 |
20 | import java.lang.reflect.InvocationTargetException;
21 | import java.util.List;
22 |
23 | public class MainApplication extends Application implements ReactApplication {
24 | private final ReactNativeHost mReactNativeHost = new ReactNativeHostWrapper(
25 | this,
26 | new ReactNativeHost(this) {
27 | @Override
28 | public boolean getUseDeveloperSupport() {
29 | return BuildConfig.DEBUG;
30 | }
31 |
32 | @Override
33 | protected List getPackages() {
34 | @SuppressWarnings("UnnecessaryLocalVariable")
35 | List packages = new PackageList(this).getPackages();
36 | // Packages that cannot be autolinked yet can be added manually here, for example:
37 | // packages.add(new MyReactNativePackage());
38 | return packages;
39 | }
40 |
41 | @Override
42 | protected String getJSMainModuleName() {
43 | return "index";
44 | }
45 | });
46 |
47 | private final ReactNativeHost mNewArchitectureNativeHost =
48 | new ReactNativeHostWrapper(this, new MainApplicationReactNativeHost(this));
49 |
50 | @Override
51 | public ReactNativeHost getReactNativeHost() {
52 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
53 | return mNewArchitectureNativeHost;
54 | } else {
55 | return mReactNativeHost;
56 | }
57 | }
58 |
59 | @Override
60 | public void onCreate() {
61 | super.onCreate();
62 | // If you opted-in for the New Architecture, we enable the TurboModule system
63 | ReactFeatureFlags.useTurboModules = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
64 | SoLoader.init(this, /* native exopackage */ false);
65 |
66 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
67 | ApplicationLifecycleDispatcher.onApplicationCreate(this);
68 | }
69 |
70 | @Override
71 | public void onConfigurationChanged(@NonNull Configuration newConfig) {
72 | super.onConfigurationChanged(newConfig);
73 | ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);
74 | }
75 |
76 | /**
77 | * Loads Flipper in React Native templates. Call this in the onCreate method with something like
78 | * initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
79 | *
80 | * @param context
81 | * @param reactInstanceManager
82 | */
83 | private static void initializeFlipper(
84 | Context context, ReactInstanceManager reactInstanceManager) {
85 | if (BuildConfig.DEBUG) {
86 | try {
87 | /*
88 | We use reflection here to pick up the class that initializes Flipper,
89 | since Flipper library is not available in release mode
90 | */
91 | Class> aClass = Class.forName("com.nftmarketplace.ReactNativeFlipper");
92 | aClass
93 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
94 | .invoke(null, context, reactInstanceManager);
95 | } catch (ClassNotFoundException e) {
96 | e.printStackTrace();
97 | } catch (NoSuchMethodException e) {
98 | e.printStackTrace();
99 | } catch (IllegalAccessException e) {
100 | e.printStackTrace();
101 | } catch (InvocationTargetException e) {
102 | e.printStackTrace();
103 | }
104 | }
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/ios/nftmarketplace/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 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/nftmarketplace/newarchitecture/MainApplicationReactNativeHost.java:
--------------------------------------------------------------------------------
1 | package com.nftmarketplace.newarchitecture;
2 |
3 | import android.app.Application;
4 | import androidx.annotation.NonNull;
5 | import com.facebook.react.PackageList;
6 | import com.facebook.react.ReactInstanceManager;
7 | import com.facebook.react.ReactNativeHost;
8 | import com.facebook.react.ReactPackage;
9 | import com.facebook.react.ReactPackageTurboModuleManagerDelegate;
10 | import com.facebook.react.bridge.JSIModulePackage;
11 | import com.facebook.react.bridge.JSIModuleProvider;
12 | import com.facebook.react.bridge.JSIModuleSpec;
13 | import com.facebook.react.bridge.JSIModuleType;
14 | import com.facebook.react.bridge.JavaScriptContextHolder;
15 | import com.facebook.react.bridge.ReactApplicationContext;
16 | import com.facebook.react.bridge.UIManager;
17 | import com.facebook.react.fabric.ComponentFactory;
18 | import com.facebook.react.fabric.CoreComponentsRegistry;
19 | import com.facebook.react.fabric.EmptyReactNativeConfig;
20 | import com.facebook.react.fabric.FabricJSIModuleProvider;
21 | import com.facebook.react.uimanager.ViewManagerRegistry;
22 | import com.nftmarketplace.BuildConfig;
23 | import com.nftmarketplace.newarchitecture.components.MainComponentsRegistry;
24 | import com.nftmarketplace.newarchitecture.modules.MainApplicationTurboModuleManagerDelegate;
25 | import java.util.ArrayList;
26 | import java.util.List;
27 |
28 | /**
29 | * A {@link ReactNativeHost} that helps you load everything needed for the New Architecture, both
30 | * TurboModule delegates and the Fabric Renderer.
31 | *
32 | * Please note that this class is used ONLY if you opt-in for the New Architecture (see the
33 | * `newArchEnabled` property). Is ignored otherwise.
34 | */
35 | public class MainApplicationReactNativeHost extends ReactNativeHost {
36 | public MainApplicationReactNativeHost(Application application) {
37 | super(application);
38 | }
39 |
40 | @Override
41 | public boolean getUseDeveloperSupport() {
42 | return BuildConfig.DEBUG;
43 | }
44 |
45 | @Override
46 | protected List getPackages() {
47 | List packages = new PackageList(this).getPackages();
48 | // Packages that cannot be autolinked yet can be added manually here, for example:
49 | // packages.add(new MyReactNativePackage());
50 | // TurboModules must also be loaded here providing a valid TurboReactPackage implementation:
51 | // packages.add(new TurboReactPackage() { ... });
52 | // If you have custom Fabric Components, their ViewManagers should also be loaded here
53 | // inside a ReactPackage.
54 | return packages;
55 | }
56 |
57 | @Override
58 | protected String getJSMainModuleName() {
59 | return "index";
60 | }
61 |
62 | @NonNull
63 | @Override
64 | protected ReactPackageTurboModuleManagerDelegate.Builder
65 | getReactPackageTurboModuleManagerDelegateBuilder() {
66 | // Here we provide the ReactPackageTurboModuleManagerDelegate Builder. This is necessary
67 | // for the new architecture and to use TurboModules correctly.
68 | return new MainApplicationTurboModuleManagerDelegate.Builder();
69 | }
70 |
71 | @Override
72 | protected JSIModulePackage getJSIModulePackage() {
73 | return new JSIModulePackage() {
74 | @Override
75 | public List getJSIModules(
76 | final ReactApplicationContext reactApplicationContext,
77 | final JavaScriptContextHolder jsContext) {
78 | final List specs = new ArrayList<>();
79 |
80 | // Here we provide a new JSIModuleSpec that will be responsible of providing the
81 | // custom Fabric Components.
82 | specs.add(
83 | new JSIModuleSpec() {
84 | @Override
85 | public JSIModuleType getJSIModuleType() {
86 | return JSIModuleType.UIManager;
87 | }
88 |
89 | @Override
90 | public JSIModuleProvider getJSIModuleProvider() {
91 | final ComponentFactory componentFactory = new ComponentFactory();
92 | CoreComponentsRegistry.register(componentFactory);
93 |
94 | // Here we register a Components Registry.
95 | // The one that is generated with the template contains no components
96 | // and just provides you the one from React Native core.
97 | MainComponentsRegistry.register(componentFactory);
98 |
99 | final ReactInstanceManager reactInstanceManager = getReactInstanceManager();
100 |
101 | ViewManagerRegistry viewManagerRegistry =
102 | new ViewManagerRegistry(
103 | reactInstanceManager.getOrCreateViewManagers(reactApplicationContext));
104 |
105 | return new FabricJSIModuleProvider(
106 | reactApplicationContext,
107 | componentFactory,
108 | new EmptyReactNativeConfig(),
109 | viewManagerRegistry);
110 | }
111 | });
112 | return specs;
113 | }
114 | };
115 | }
116 | }
117 |
--------------------------------------------------------------------------------
/ios/nftmarketplace/AppDelegate.mm:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 | #import
5 | #import
6 | #import
7 | #import
8 |
9 | #import
10 |
11 | #if RCT_NEW_ARCH_ENABLED
12 | #import
13 | #import
14 | #import
15 | #import
16 | #import
17 | #import
18 |
19 | #import
20 |
21 | @interface AppDelegate () {
22 | RCTTurboModuleManager *_turboModuleManager;
23 | RCTSurfacePresenterBridgeAdapter *_bridgeAdapter;
24 | std::shared_ptr _reactNativeConfig;
25 | facebook::react::ContextContainer::Shared _contextContainer;
26 | }
27 | @end
28 | #endif
29 |
30 | @implementation AppDelegate
31 |
32 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
33 | {
34 | RCTAppSetupPrepareApp(application);
35 |
36 | RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];
37 |
38 | #if RCT_NEW_ARCH_ENABLED
39 | _contextContainer = std::make_shared();
40 | _reactNativeConfig = std::make_shared();
41 | _contextContainer->insert("ReactNativeConfig", _reactNativeConfig);
42 | _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer];
43 | bridge.surfacePresenter = _bridgeAdapter.surfacePresenter;
44 | #endif
45 |
46 | UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil];
47 |
48 | rootView.backgroundColor = [UIColor whiteColor];
49 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
50 | UIViewController *rootViewController = [self.reactDelegate createRootViewController];
51 | rootViewController.view = rootView;
52 | self.window.rootViewController = rootViewController;
53 | [self.window makeKeyAndVisible];
54 |
55 | [super application:application didFinishLaunchingWithOptions:launchOptions];
56 |
57 | return YES;
58 | }
59 |
60 | - (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge
61 | {
62 | // If you'd like to export some custom RCTBridgeModules, add them here!
63 | return @[];
64 | }
65 |
66 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
67 | {
68 | #if DEBUG
69 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
70 | #else
71 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
72 | #endif
73 | }
74 |
75 | // Linking API
76 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options {
77 | return [super application:application openURL:url options:options] || [RCTLinkingManager application:application openURL:url options:options];
78 | }
79 |
80 | // Universal Links
81 | - (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler {
82 | BOOL result = [RCTLinkingManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler];
83 | return [super application:application continueUserActivity:userActivity restorationHandler:restorationHandler] || result;
84 | }
85 |
86 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
87 | - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
88 | {
89 | return [super application:application didRegisterForRemoteNotificationsWithDeviceToken:deviceToken];
90 | }
91 |
92 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
93 | - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error
94 | {
95 | return [super application:application didFailToRegisterForRemoteNotificationsWithError:error];
96 | }
97 |
98 | // Explicitly define remote notification delegates to ensure compatibility with some third-party libraries
99 | - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
100 | {
101 | return [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:completionHandler];
102 | }
103 |
104 | #if RCT_NEW_ARCH_ENABLED
105 |
106 | #pragma mark - RCTCxxBridgeDelegate
107 |
108 | - (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge
109 | {
110 | _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge
111 | delegate:self
112 | jsInvoker:bridge.jsCallInvoker];
113 | return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager);
114 | }
115 |
116 | #pragma mark RCTTurboModuleManagerDelegate
117 |
118 | - (Class)getModuleClassFromName:(const char *)name
119 | {
120 | return RCTCoreModulesClassProvider(name);
121 | }
122 |
123 | - (std::shared_ptr)getTurboModule:(const std::string &)name
124 | jsInvoker:(std::shared_ptr)jsInvoker
125 | {
126 | return nullptr;
127 | }
128 |
129 | - (std::shared_ptr)getTurboModule:(const std::string &)name
130 | initParams:
131 | (const facebook::react::ObjCTurboModule::InitParams &)params
132 | {
133 | return nullptr;
134 | }
135 |
136 | - (id)getModuleInstanceFromClass:(Class)moduleClass
137 | {
138 | return RCTAppSetupDefaultModuleFromClass(moduleClass);
139 | }
140 |
141 | #endif
142 |
143 | @end
144 |
--------------------------------------------------------------------------------
/src/constants/dummy.js:
--------------------------------------------------------------------------------
1 | import assets from "./assets";
2 |
3 | const NFTData = [
4 | {
5 | id: "NFT-01",
6 | name: "Abstracto #312",
7 | creator: "Putri Intan",
8 | price: 4.25,
9 | description:
10 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural. The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural. The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural.",
11 | image: assets.nft01,
12 | bids: [
13 | {
14 | id: "BID-11",
15 | name: "Jessica Tan",
16 | price: 4.25,
17 | image: assets.person02,
18 | date: "December 12, 2019 at 12:10 PM",
19 | },
20 | {
21 | id: "BID-12",
22 | name: "Jennifer Sia",
23 | price: 4.5,
24 | image: assets.person03,
25 | date: "December 27, 2019 at 1:50 PM",
26 | },
27 | {
28 | id: "BID-13",
29 | name: "Rosie Wong",
30 | price: 4.75,
31 | image: assets.person04,
32 | date: "December 31, 2019 at 3:50 PM",
33 | },
34 | ],
35 | },
36 | {
37 | id: "NFT-02",
38 | name: "Green Coins",
39 | creator: "Siti Nurhaliza",
40 | price: 7.25,
41 | description:
42 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural. Nulla sed velit erat vitae leo sem inceptos diam fames arcu hendrerit, quis ultrices in eleifend posuere ipsum conubia porttitor felis.",
43 | image: assets.nft02,
44 | bids: [
45 | {
46 | id: "BID-21",
47 | name: "Jessica Tan",
48 | price: 7.05,
49 | image: assets.person04,
50 | date: "December 12, 2019 at 12:10 PM",
51 | },
52 | ],
53 | },
54 | {
55 | id: "NFT-03",
56 | name: "NFT coins race",
57 | creator: "Elisabeth aho",
58 | price: 95.25,
59 | description:
60 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural. Lorem ipsum dolor sit amet consectetur adipiscing elit consequat accumsan sapien, lectus convallis malesuada odio curae habitasse dignissim nascetur. Nulla sed velit erat vitae leo sem inceptos diam fames arcu hendrerit, quis ultrices in eleifend posuere ipsum conubia porttitor felis. Lorem ipsum dolor sit amet consectetur adipiscing elit consequat accumsan sapien, lectus convallis malesuada odio curae habitasse dignissim nascetur. Nulla sed velit erat vitae leo sem inceptos diam fames arcu hendrerit, quis ultrices in eleifend posuere ipsum conubia porttitor felis.",
61 | image: assets.nft03,
62 | bids: [
63 | {
64 | id: "BID-31",
65 | name: "Jessica Tan",
66 | price: 95.25,
67 | image: assets.person02,
68 | date: "December 12, 2019 at 12:10 PM",
69 | },
70 | {
71 | id: "BID-32",
72 | name: "Jennifer Sia",
73 | price: 95.5,
74 | image: assets.person03,
75 | date: "December 27, 2019 at 1:50 PM",
76 | },
77 | ],
78 | },
79 | {
80 | id: "NFT-04",
81 | name: "Nifty NFT",
82 | creator: "Putri Intan",
83 | price: 54.25,
84 | description:
85 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural.Lorem ipsum dolor sit amet consectetur adipiscing elit consequat accumsan sapien, lectus convallis malesuada odio curae habitasse dignissim nascetur.",
86 | image: assets.nft04,
87 | bids: [
88 | {
89 | id: "BID-41",
90 | name: "Jessica Tan",
91 | price: 56.25,
92 | image: assets.person02,
93 | date: "December 12, 2019 at 12:10 PM",
94 | },
95 | {
96 | id: "BID-42",
97 | name: "Jennifer Sia",
98 | price: 54.25,
99 | image: assets.person03,
100 | date: "December 27, 2019 at 1:50 PM",
101 | },
102 | {
103 | id: "BID-43",
104 | name: "Rosie Wong",
105 | price: 55.15,
106 | image: assets.person04,
107 | date: "December 31, 2019 at 3:50 PM",
108 | },
109 | {
110 | id: "BID-44",
111 | name: "Vincent Swift",
112 | price: 54.15,
113 | image: assets.person02,
114 | date: "December 31, 2019 at 3:50 PM",
115 | },
116 | ],
117 | },
118 | {
119 | id: "NFT-05",
120 | name: "Colorful circles",
121 | creator: "David doe",
122 | price: 10.25,
123 | description:
124 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural.",
125 | image: assets.nft05,
126 | bids: [
127 | {
128 | id: "BID-51",
129 | name: "Jessica Tan",
130 | price: 10.25,
131 | image: assets.person02,
132 | date: "December 12, 2019 at 12:10 PM",
133 | },
134 | ],
135 | },
136 | {
137 | id: "NFT-06",
138 | name: "Black box model",
139 | creator: "Leo Messi",
140 | price: 20.25,
141 | description:
142 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural. Lorem ipsum dolor sit amet consectetur adipiscing elit consequat accumsan sapien, lectus convallis malesuada odio curae habitasse dignissim nascetur. Nulla sed velit erat vitae leo sem inceptos diam fames arcu hendrerit, quis ultrices in eleifend posuere ipsum conubia porttitor felis.",
143 | image: assets.nft06,
144 | bids: [
145 | {
146 | id: "BID-61",
147 | name: "Jessica Tan",
148 | price: 20.25,
149 | image: assets.person02,
150 | date: "December 12, 2019 at 12:10 PM",
151 | },
152 | {
153 | id: "BID-62",
154 | name: "Jennifer Sia",
155 | price: 20.5,
156 | image: assets.person03,
157 | date: "December 27, 2019 at 1:50 PM",
158 | },
159 | {
160 | id: "BID-63",
161 | name: "Rosie Wong",
162 | price: 20.75,
163 | image: assets.person04,
164 | date: "December 31, 2019 at 3:50 PM",
165 | },
166 | {
167 | id: "BID-64",
168 | name: "Siti Nurhaliza",
169 | price: 21.25,
170 | image: assets.person02,
171 | date: "December 31, 2019 at 3:50 PM",
172 | },
173 | {
174 | id: "BID-65",
175 | name: "Kaitlyn Lee",
176 | price: 7.25,
177 | image: assets.person02,
178 | date: "December 31, 2019 at 3:50 PM",
179 | },
180 | ],
181 | },
182 | {
183 | id: "NFT-07",
184 | name: "Abstracto soulful art",
185 | creator: "Victor de la Cruz",
186 | price: 18.25,
187 | description:
188 | "The action painter abstract expressionists were directly influenced by automatism. Pollock channelled this into producing gestural. Lorem ipsum dolor sit amet consectetur adipiscing elit consequat accumsan sapien, lectus convallis malesuada odio curae habitasse dignissim nascetur. Nulla sed velit erat vitae leo sem inceptos diam fames arcu hendrerit, quis ultrices in eleifend posuere ipsum conubia porttitor felis. Ullamcorper platea penatibus ornare egestas nulla ligula hendrerit nisl suscipit sociosqu maximus, tincidunt aptent habitant purus pharetra ultrices dapibus laoreet nisi lacinia. Porta malesuada netus vel sapien conubia porttitor aliquam ut pretium ante litora molestie senectus magna egestas sociosqu, eget aliquet fames pharetra felis posuere varius fringilla quisque in arcu montes eu ullamcorper.",
189 | image: assets.nft07,
190 | bids: [],
191 | },
192 | ];
193 |
194 | export { NFTData };
195 |
--------------------------------------------------------------------------------
/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Copyright © 2015-2021 the original 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 POSIX generated by Gradle.
22 | #
23 | # Important for running:
24 | #
25 | # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
26 | # noncompliant, but you have some other compliant shell such as ksh or
27 | # bash, then to run this script, type that shell name before the whole
28 | # command line, like:
29 | #
30 | # ksh Gradle
31 | #
32 | # Busybox and similar reduced shells will NOT work, because this script
33 | # requires all of these POSIX shell features:
34 | # * functions;
35 | # * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
36 | # «${var#prefix}», «${var%suffix}», and «$( cmd )»;
37 | # * compound commands having a testable exit status, especially «case»;
38 | # * various built-in commands including «command», «set», and «ulimit».
39 | #
40 | # Important for patching:
41 | #
42 | # (2) This script targets any POSIX shell, so it avoids extensions provided
43 | # by Bash, Ksh, etc; in particular arrays are avoided.
44 | #
45 | # The "traditional" practice of packing multiple parameters into a
46 | # space-separated string is a well documented source of bugs and security
47 | # problems, so this is (mostly) avoided, by progressively accumulating
48 | # options in "$@", and eventually passing that to Java.
49 | #
50 | # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
51 | # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
52 | # see the in-line comments for details.
53 | #
54 | # There are tweaks for specific operating systems such as AIX, CygWin,
55 | # Darwin, MinGW, and NonStop.
56 | #
57 | # (3) This script is generated from the Groovy template
58 | # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
59 | # within the Gradle project.
60 | #
61 | # You can find Gradle at https://github.com/gradle/gradle/.
62 | #
63 | ##############################################################################
64 |
65 | # Attempt to set APP_HOME
66 |
67 | # Resolve links: $0 may be a link
68 | app_path=$0
69 |
70 | # Need this for daisy-chained symlinks.
71 | while
72 | APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
73 | [ -h "$app_path" ]
74 | do
75 | ls=$( ls -ld "$app_path" )
76 | link=${ls#*' -> '}
77 | case $link in #(
78 | /*) app_path=$link ;; #(
79 | *) app_path=$APP_HOME$link ;;
80 | esac
81 | done
82 |
83 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84 |
85 | APP_NAME="Gradle"
86 | APP_BASE_NAME=${0##*/}
87 |
88 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90 |
91 | # Use the maximum available, or set MAX_FD != -1 to use that value.
92 | MAX_FD=maximum
93 |
94 | warn () {
95 | echo "$*"
96 | } >&2
97 |
98 | die () {
99 | echo
100 | echo "$*"
101 | echo
102 | exit 1
103 | } >&2
104 |
105 | # OS specific support (must be 'true' or 'false').
106 | cygwin=false
107 | msys=false
108 | darwin=false
109 | nonstop=false
110 | case "$( uname )" in #(
111 | CYGWIN* ) cygwin=true ;; #(
112 | Darwin* ) darwin=true ;; #(
113 | MSYS* | MINGW* ) msys=true ;; #(
114 | NONSTOP* ) nonstop=true ;;
115 | esac
116 |
117 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
118 |
119 |
120 | # Determine the Java command to use to start the JVM.
121 | if [ -n "$JAVA_HOME" ] ; then
122 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
123 | # IBM's JDK on AIX uses strange locations for the executables
124 | JAVACMD=$JAVA_HOME/jre/sh/java
125 | else
126 | JAVACMD=$JAVA_HOME/bin/java
127 | fi
128 | if [ ! -x "$JAVACMD" ] ; then
129 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
130 |
131 | Please set the JAVA_HOME variable in your environment to match the
132 | location of your Java installation."
133 | fi
134 | else
135 | JAVACMD=java
136 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137 |
138 | Please set the JAVA_HOME variable in your environment to match the
139 | location of your Java installation."
140 | fi
141 |
142 | # Increase the maximum file descriptors if we can.
143 | if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144 | case $MAX_FD in #(
145 | max*)
146 | MAX_FD=$( ulimit -H -n ) ||
147 | warn "Could not query maximum file descriptor limit"
148 | esac
149 | case $MAX_FD in #(
150 | '' | soft) :;; #(
151 | *)
152 | ulimit -n "$MAX_FD" ||
153 | warn "Could not set maximum file descriptor limit to $MAX_FD"
154 | esac
155 | fi
156 |
157 | # Collect all arguments for the java command, stacking in reverse order:
158 | # * args from the command line
159 | # * the main class name
160 | # * -classpath
161 | # * -D...appname settings
162 | # * --module-path (only if needed)
163 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
164 |
165 | # For Cygwin or MSYS, switch paths to Windows format before running java
166 | if "$cygwin" || "$msys" ; then
167 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
168 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
169 |
170 | JAVACMD=$( cygpath --unix "$JAVACMD" )
171 |
172 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
173 | for arg do
174 | if
175 | case $arg in #(
176 | -*) false ;; # don't mess with options #(
177 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
178 | [ -e "$t" ] ;; #(
179 | *) false ;;
180 | esac
181 | then
182 | arg=$( cygpath --path --ignore --mixed "$arg" )
183 | fi
184 | # Roll the args list around exactly as many times as the number of
185 | # args, so each arg winds up back in the position where it started, but
186 | # possibly modified.
187 | #
188 | # NB: a `for` loop captures its iteration list before it begins, so
189 | # changing the positional parameters here affects neither the number of
190 | # iterations, nor the values presented in `arg`.
191 | shift # remove old arg
192 | set -- "$@" "$arg" # push replacement arg
193 | done
194 | fi
195 |
196 | # Collect all arguments for the java command;
197 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
198 | # shell script including quotes and variable substitutions, so put them in
199 | # double quotes to make sure that they get re-expanded; and
200 | # * put everything else in single quotes, so that it's not re-expanded.
201 |
202 | set -- \
203 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
204 | -classpath "$CLASSPATH" \
205 | org.gradle.wrapper.GradleWrapperMain \
206 | "$@"
207 |
208 | # Use "xargs" to parse quoted args.
209 | #
210 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
211 | #
212 | # In Bash we could simply go:
213 | #
214 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
215 | # set -- "${ARGS[@]}" "$@"
216 | #
217 | # but POSIX shell has neither arrays nor command substitution, so instead we
218 | # post-process each arg (as a line of input to sed) to backslash-escape any
219 | # character that might be a shell metacharacter, then use eval to reverse
220 | # that process (while maintaining the separation between arguments), and wrap
221 | # the whole thing up as a single "set" statement.
222 | #
223 | # This will of course break if any of these variables contains a newline or
224 | # an unmatched quote.
225 | #
226 |
227 | eval "set -- $(
228 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
229 | xargs -n1 |
230 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
231 | tr '\n' ' '
232 | )" '"$@"'
233 |
234 | exec "$JAVACMD" "$@"
235 |
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 | import org.apache.tools.ant.taskdefs.condition.Os
5 |
6 | /**
7 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
8 | * and bundleReleaseJsAndAssets).
9 | * These basically call `react-native bundle` with the correct arguments during the Android build
10 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
11 | * bundle directly from the development server. Below you can see all the possible configurations
12 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
13 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
14 | *
15 | * project.ext.react = [
16 | * // the name of the generated asset file containing your JS bundle
17 | * bundleAssetName: "index.android.bundle",
18 | *
19 | * // the entry file for bundle generation. If none specified and
20 | * // "index.android.js" exists, it will be used. Otherwise "index.js" is
21 | * // default. Can be overridden with ENTRY_FILE environment variable.
22 | * entryFile: "index.android.js",
23 | *
24 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
25 | * bundleCommand: "ram-bundle",
26 | *
27 | * // whether to bundle JS and assets in debug mode
28 | * bundleInDebug: false,
29 | *
30 | * // whether to bundle JS and assets in release mode
31 | * bundleInRelease: true,
32 | *
33 | * // whether to bundle JS and assets in another build variant (if configured).
34 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
35 | * // The configuration property can be in the following formats
36 | * // 'bundleIn${productFlavor}${buildType}'
37 | * // 'bundleIn${buildType}'
38 | * // bundleInFreeDebug: true,
39 | * // bundleInPaidRelease: true,
40 | * // bundleInBeta: true,
41 | *
42 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
43 | * // for example: to disable dev mode in the staging build type (if configured)
44 | * devDisabledInStaging: true,
45 | * // The configuration property can be in the following formats
46 | * // 'devDisabledIn${productFlavor}${buildType}'
47 | * // 'devDisabledIn${buildType}'
48 | *
49 | * // the root of your project, i.e. where "package.json" lives
50 | * root: "../../",
51 | *
52 | * // where to put the JS bundle asset in debug mode
53 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
54 | *
55 | * // where to put the JS bundle asset in release mode
56 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
57 | *
58 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
59 | * // require('./image.png')), in debug mode
60 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
61 | *
62 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
63 | * // require('./image.png')), in release mode
64 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
65 | *
66 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
67 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
68 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
69 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
70 | * // for example, you might want to remove it from here.
71 | * inputExcludes: ["android/**", "ios/**"],
72 | *
73 | * // override which node gets called and with what additional arguments
74 | * nodeExecutableAndArgs: ["node"],
75 | *
76 | * // supply additional arguments to the packager
77 | * extraPackagerArgs: []
78 | * ]
79 | */
80 |
81 | def projectRoot = rootDir.getAbsoluteFile().getParentFile().getAbsolutePath()
82 |
83 | project.ext.react = [
84 | entryFile: ["node", "-e", "require('expo/scripts/resolveAppEntry')", projectRoot, "android"].execute(null, rootDir).text.trim(),
85 | enableHermes: (findProperty('expo.jsEngine') ?: "jsc") == "hermes",
86 | cliPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/cli.js",
87 | hermesCommand: new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/%OS-BIN%/hermesc",
88 | composeSourceMapsPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/scripts/compose-source-maps.js",
89 | ]
90 |
91 | apply from: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../react.gradle")
92 |
93 | /**
94 | * Set this to true to create two separate APKs instead of one:
95 | * - An APK that only works on ARM devices
96 | * - An APK that only works on x86 devices
97 | * The advantage is the size of the APK is reduced by about 4MB.
98 | * Upload all the APKs to the Play Store and people will download
99 | * the correct one based on the CPU architecture of their device.
100 | */
101 | def enableSeparateBuildPerCPUArchitecture = false
102 |
103 | /**
104 | * Run Proguard to shrink the Java bytecode in release builds.
105 | */
106 | def enableProguardInReleaseBuilds = (findProperty('android.enableProguardInReleaseBuilds') ?: false).toBoolean()
107 |
108 | /**
109 | * The preferred build flavor of JavaScriptCore.
110 | *
111 | * For example, to use the international variant, you can use:
112 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
113 | *
114 | * The international variant includes ICU i18n library and necessary data
115 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
116 | * give correct results when using with locales other than en-US. Note that
117 | * this variant is about 6MiB larger per architecture than default.
118 | */
119 | def jscFlavor = 'org.webkit:android-jsc:+'
120 |
121 | /**
122 | * Whether to enable the Hermes VM.
123 | *
124 | * This should be set on project.ext.react and that value will be read here. If it is not set
125 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
126 | * and the benefits of using Hermes will therefore be sharply reduced.
127 | */
128 | def enableHermes = project.ext.react.get("enableHermes", false);
129 |
130 | /**
131 | * Architectures to build native code for.
132 | */
133 | def reactNativeArchitectures() {
134 | def value = project.getProperties().get("reactNativeArchitectures")
135 | return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
136 | }
137 |
138 | android {
139 | ndkVersion rootProject.ext.ndkVersion
140 |
141 | compileSdkVersion rootProject.ext.compileSdkVersion
142 |
143 | defaultConfig {
144 | applicationId "com.nftmarketplace"
145 | minSdkVersion rootProject.ext.minSdkVersion
146 | targetSdkVersion rootProject.ext.targetSdkVersion
147 | versionCode 1
148 | versionName "1.0"
149 | buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
150 |
151 | if (isNewArchitectureEnabled()) {
152 | // We configure the NDK build only if you decide to opt-in for the New Architecture.
153 | externalNativeBuild {
154 | ndkBuild {
155 | arguments "APP_PLATFORM=android-21",
156 | "APP_STL=c++_shared",
157 | "NDK_TOOLCHAIN_VERSION=clang",
158 | "GENERATED_SRC_DIR=$buildDir/generated/source",
159 | "PROJECT_BUILD_DIR=$buildDir",
160 | "REACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid",
161 | "REACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build"
162 | cFlags "-Wall", "-Werror", "-fexceptions", "-frtti", "-DWITH_INSPECTOR=1"
163 | cppFlags "-std=c++17"
164 | // Make sure this target name is the same you specify inside the
165 | // src/main/jni/Android.mk file for the `LOCAL_MODULE` variable.
166 | targets "nftmarketplace_appmodules"
167 |
168 | // Fix for windows limit on number of character in file paths and in command lines
169 | if (Os.isFamily(Os.FAMILY_WINDOWS)) {
170 | arguments "NDK_APP_SHORT_COMMANDS=true"
171 | }
172 | }
173 | }
174 | if (!enableSeparateBuildPerCPUArchitecture) {
175 | ndk {
176 | abiFilters (*reactNativeArchitectures())
177 | }
178 | }
179 | }
180 | }
181 |
182 | if (isNewArchitectureEnabled()) {
183 | // We configure the NDK build only if you decide to opt-in for the New Architecture.
184 | externalNativeBuild {
185 | ndkBuild {
186 | path "$projectDir/src/main/jni/Android.mk"
187 | }
188 | }
189 | def reactAndroidProjectDir = project(':ReactAndroid').projectDir
190 | def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) {
191 | dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck")
192 | from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
193 | into("$buildDir/react-ndk/exported")
194 | }
195 | def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) {
196 | dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck")
197 | from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib")
198 | into("$buildDir/react-ndk/exported")
199 | }
200 | afterEvaluate {
201 | // If you wish to add a custom TurboModule or component locally,
202 | // you should uncomment this line.
203 | // preBuild.dependsOn("generateCodegenArtifactsFromSchema")
204 | preDebugBuild.dependsOn(packageReactNdkDebugLibs)
205 | preReleaseBuild.dependsOn(packageReactNdkReleaseLibs)
206 |
207 | // Due to a bug inside AGP, we have to explicitly set a dependency
208 | // between configureNdkBuild* tasks and the preBuild tasks.
209 | // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732
210 | configureNdkBuildRelease.dependsOn(preReleaseBuild)
211 | configureNdkBuildDebug.dependsOn(preDebugBuild)
212 | reactNativeArchitectures().each { architecture ->
213 | tasks.findByName("configureNdkBuildDebug[${architecture}]")?.configure {
214 | dependsOn("preDebugBuild")
215 | }
216 | tasks.findByName("configureNdkBuildRelease[${architecture}]")?.configure {
217 | dependsOn("preReleaseBuild")
218 | }
219 | }
220 | }
221 | }
222 |
223 | splits {
224 | abi {
225 | reset()
226 | enable enableSeparateBuildPerCPUArchitecture
227 | universalApk false // If true, also generate a universal APK
228 | include (*reactNativeArchitectures())
229 | }
230 | }
231 | signingConfigs {
232 | debug {
233 | storeFile file('debug.keystore')
234 | storePassword 'android'
235 | keyAlias 'androiddebugkey'
236 | keyPassword 'android'
237 | }
238 | }
239 | buildTypes {
240 | debug {
241 | signingConfig signingConfigs.debug
242 | }
243 | release {
244 | // Caution! In production, you need to generate your own keystore file.
245 | // see https://reactnative.dev/docs/signed-apk-android.
246 | signingConfig signingConfigs.debug
247 | minifyEnabled enableProguardInReleaseBuilds
248 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
249 | }
250 | }
251 |
252 | // applicationVariants are e.g. debug, release
253 | applicationVariants.all { variant ->
254 | variant.outputs.each { output ->
255 | // For each separate APK per architecture, set a unique version code as described here:
256 | // https://developer.android.com/studio/build/configure-apk-splits.html
257 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
258 | def abi = output.getFilter(OutputFile.ABI)
259 | if (abi != null) { // null for the universal-debug, universal-release variants
260 | output.versionCodeOverride =
261 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
262 | }
263 |
264 | }
265 | }
266 | }
267 |
268 | // Apply static values from `gradle.properties` to the `android.packagingOptions`
269 | // Accepts values in comma delimited lists, example:
270 | // android.packagingOptions.pickFirsts=/LICENSE,**/picasa.ini
271 | ["pickFirsts", "excludes", "merges", "doNotStrip"].each { prop ->
272 | // Split option: 'foo,bar' -> ['foo', 'bar']
273 | def options = (findProperty("android.packagingOptions.$prop") ?: "").split(",");
274 | // Trim all elements in place.
275 | for (i in 0.. 0) {
280 | println "android.packagingOptions.$prop += $options ($options.length)"
281 | // Ex: android.packagingOptions.pickFirsts += '**/SCCS/**'
282 | options.each {
283 | android.packagingOptions[prop] += it
284 | }
285 | }
286 | }
287 |
288 | dependencies {
289 | implementation fileTree(dir: "libs", include: ["*.jar"])
290 |
291 | //noinspection GradleDynamicVersion
292 | implementation "com.facebook.react:react-native:+" // From node_modules
293 |
294 | def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
295 | def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
296 | def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
297 |
298 | // If your app supports Android versions before Ice Cream Sandwich (API level 14)
299 | // All fresco packages should use the same version
300 | if (isGifEnabled || isWebpEnabled) {
301 | implementation 'com.facebook.fresco:fresco:2.0.0'
302 | implementation 'com.facebook.fresco:imagepipeline-okhttp3:2.0.0'
303 | }
304 |
305 | if (isGifEnabled) {
306 | // For animated gif support
307 | implementation 'com.facebook.fresco:animated-gif:2.0.0'
308 | }
309 |
310 | if (isWebpEnabled) {
311 | // For webp support
312 | implementation 'com.facebook.fresco:webpsupport:2.0.0'
313 | if (isWebpAnimatedEnabled) {
314 | // Animated webp support
315 | implementation 'com.facebook.fresco:animated-webp:2.0.0'
316 | }
317 | }
318 |
319 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
320 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
321 | exclude group:'com.facebook.fbjni'
322 | }
323 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
324 | exclude group:'com.facebook.flipper'
325 | exclude group:'com.squareup.okhttp3', module:'okhttp'
326 | }
327 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
328 | exclude group:'com.facebook.flipper'
329 | }
330 |
331 | if (enableHermes) {
332 | debugImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim(), "../android/hermes-debug.aar"))
333 | releaseImplementation files(new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim(), "../android/hermes-release.aar"))
334 | } else {
335 | implementation jscFlavor
336 | }
337 | }
338 |
339 | if (isNewArchitectureEnabled()) {
340 | // If new architecture is enabled, we let you build RN from source
341 | // Otherwise we fallback to a prebuilt .aar bundled in the NPM package.
342 | // This will be applied to all the imported transtitive dependency.
343 | configurations.all {
344 | resolutionStrategy.dependencySubstitution {
345 | substitute(module("com.facebook.react:react-native"))
346 | .using(project(":ReactAndroid")).because("On New Architecture we're building React Native from source")
347 | }
348 | }
349 | }
350 |
351 | // Run this once to be able to run the application with BUCK
352 | // puts all compile dependencies into folder libs for BUCK to use
353 | task copyDownloadableDepsToLibs(type: Copy) {
354 | from configurations.implementation
355 | into 'libs'
356 | }
357 |
358 | apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
359 | applyNativeModulesAppBuildGradle(project)
360 |
361 | def isNewArchitectureEnabled() {
362 | // To opt-in for the New Architecture, you can either:
363 | // - Set `newArchEnabled` to true inside the `gradle.properties` file
364 | // - Invoke gradle with `-newArchEnabled=true`
365 | // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
366 | return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
367 | }
368 |
--------------------------------------------------------------------------------
/ios/nftmarketplace.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.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
11 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
12 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
13 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
14 | 96905EF65AED1B983A6B3ABC /* libPods-nftmarketplace.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-nftmarketplace.a */; };
15 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */; };
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 /* nftmarketplace.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = nftmarketplace.app; sourceTree = BUILT_PRODUCTS_DIR; };
22 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = nftmarketplace/AppDelegate.h; sourceTree = ""; };
23 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = nftmarketplace/AppDelegate.mm; sourceTree = ""; };
24 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = nftmarketplace/Images.xcassets; sourceTree = ""; };
25 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = nftmarketplace/Info.plist; sourceTree = ""; };
26 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = nftmarketplace/main.m; sourceTree = ""; };
27 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-nftmarketplace.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-nftmarketplace.a"; sourceTree = BUILT_PRODUCTS_DIR; };
28 | 6C2E3173556A471DD304B334 /* Pods-nftmarketplace.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nftmarketplace.debug.xcconfig"; path = "Target Support Files/Pods-nftmarketplace/Pods-nftmarketplace.debug.xcconfig"; sourceTree = ""; };
29 | 7A4D352CD337FB3A3BF06240 /* Pods-nftmarketplace.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-nftmarketplace.release.xcconfig"; path = "Target Support Files/Pods-nftmarketplace/Pods-nftmarketplace.release.xcconfig"; sourceTree = ""; };
30 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = nftmarketplace/SplashScreen.storyboard; sourceTree = ""; };
31 | BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; };
32 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
33 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-nftmarketplace/ExpoModulesProvider.swift"; sourceTree = ""; };
34 | /* End PBXFileReference section */
35 |
36 | /* Begin PBXFrameworksBuildPhase section */
37 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
38 | isa = PBXFrameworksBuildPhase;
39 | buildActionMask = 2147483647;
40 | files = (
41 | 96905EF65AED1B983A6B3ABC /* libPods-nftmarketplace.a in Frameworks */,
42 | );
43 | runOnlyForDeploymentPostprocessing = 0;
44 | };
45 | /* End PBXFrameworksBuildPhase section */
46 |
47 | /* Begin PBXGroup section */
48 | 13B07FAE1A68108700A75B9A /* nftmarketplace */ = {
49 | isa = PBXGroup;
50 | children = (
51 | BB2F792B24A3F905000567C9 /* Supporting */,
52 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */,
53 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
54 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */,
55 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
56 | 13B07FB61A68108700A75B9A /* Info.plist */,
57 | 13B07FB71A68108700A75B9A /* main.m */,
58 | AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
59 | );
60 | name = nftmarketplace;
61 | sourceTree = "";
62 | };
63 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
64 | isa = PBXGroup;
65 | children = (
66 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
67 | 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-nftmarketplace.a */,
68 | );
69 | name = Frameworks;
70 | sourceTree = "";
71 | };
72 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
73 | isa = PBXGroup;
74 | children = (
75 | );
76 | name = Libraries;
77 | sourceTree = "";
78 | };
79 | 83CBB9F61A601CBA00E9B192 = {
80 | isa = PBXGroup;
81 | children = (
82 | 13B07FAE1A68108700A75B9A /* nftmarketplace */,
83 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
84 | 83CBBA001A601CBA00E9B192 /* Products */,
85 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
86 | D65327D7A22EEC0BE12398D9 /* Pods */,
87 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */,
88 | );
89 | indentWidth = 2;
90 | sourceTree = "";
91 | tabWidth = 2;
92 | usesTabs = 0;
93 | };
94 | 83CBBA001A601CBA00E9B192 /* Products */ = {
95 | isa = PBXGroup;
96 | children = (
97 | 13B07F961A680F5B00A75B9A /* nftmarketplace.app */,
98 | );
99 | name = Products;
100 | sourceTree = "";
101 | };
102 | 92DBD88DE9BF7D494EA9DA96 /* nftmarketplace */ = {
103 | isa = PBXGroup;
104 | children = (
105 | FAC715A2D49A985799AEE119 /* ExpoModulesProvider.swift */,
106 | );
107 | name = nftmarketplace;
108 | sourceTree = "";
109 | };
110 | BB2F792B24A3F905000567C9 /* Supporting */ = {
111 | isa = PBXGroup;
112 | children = (
113 | BB2F792C24A3F905000567C9 /* Expo.plist */,
114 | );
115 | name = Supporting;
116 | path = nftmarketplace/Supporting;
117 | sourceTree = "";
118 | };
119 | D65327D7A22EEC0BE12398D9 /* Pods */ = {
120 | isa = PBXGroup;
121 | children = (
122 | 6C2E3173556A471DD304B334 /* Pods-nftmarketplace.debug.xcconfig */,
123 | 7A4D352CD337FB3A3BF06240 /* Pods-nftmarketplace.release.xcconfig */,
124 | );
125 | path = Pods;
126 | sourceTree = "";
127 | };
128 | D7E4C46ADA2E9064B798F356 /* ExpoModulesProviders */ = {
129 | isa = PBXGroup;
130 | children = (
131 | 92DBD88DE9BF7D494EA9DA96 /* nftmarketplace */,
132 | );
133 | name = ExpoModulesProviders;
134 | sourceTree = "";
135 | };
136 | /* End PBXGroup section */
137 |
138 | /* Begin PBXNativeTarget section */
139 | 13B07F861A680F5B00A75B9A /* nftmarketplace */ = {
140 | isa = PBXNativeTarget;
141 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "nftmarketplace" */;
142 | buildPhases = (
143 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
144 | FD10A7F022414F080027D42C /* Start Packager */,
145 | 13B07F871A680F5B00A75B9A /* Sources */,
146 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
147 | 13B07F8E1A680F5B00A75B9A /* Resources */,
148 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
149 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
150 | );
151 | buildRules = (
152 | );
153 | dependencies = (
154 | );
155 | name = nftmarketplace;
156 | productName = nftmarketplace;
157 | productReference = 13B07F961A680F5B00A75B9A /* nftmarketplace.app */;
158 | productType = "com.apple.product-type.application";
159 | };
160 | /* End PBXNativeTarget section */
161 |
162 | /* Begin PBXProject section */
163 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
164 | isa = PBXProject;
165 | attributes = {
166 | LastUpgradeCheck = 1130;
167 | TargetAttributes = {
168 | 13B07F861A680F5B00A75B9A = {
169 | LastSwiftMigration = 1250;
170 | };
171 | };
172 | };
173 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "nftmarketplace" */;
174 | compatibilityVersion = "Xcode 3.2";
175 | developmentRegion = en;
176 | hasScannedForEncodings = 0;
177 | knownRegions = (
178 | en,
179 | Base,
180 | );
181 | mainGroup = 83CBB9F61A601CBA00E9B192;
182 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
183 | projectDirPath = "";
184 | projectRoot = "";
185 | targets = (
186 | 13B07F861A680F5B00A75B9A /* nftmarketplace */,
187 | );
188 | };
189 | /* End PBXProject section */
190 |
191 | /* Begin PBXResourcesBuildPhase section */
192 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
193 | isa = PBXResourcesBuildPhase;
194 | buildActionMask = 2147483647;
195 | files = (
196 | BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
197 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
198 | 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
199 | );
200 | runOnlyForDeploymentPostprocessing = 0;
201 | };
202 | /* End PBXResourcesBuildPhase section */
203 |
204 | /* Begin PBXShellScriptBuildPhase section */
205 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
206 | isa = PBXShellScriptBuildPhase;
207 | buildActionMask = 2147483647;
208 | files = (
209 | );
210 | inputPaths = (
211 | );
212 | name = "Bundle React Native code and images";
213 | outputPaths = (
214 | );
215 | runOnlyForDeploymentPostprocessing = 0;
216 | shellPath = /bin/sh;
217 | shellScript = "export NODE_BINARY=node\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\n`node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n";
218 | };
219 | 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
220 | isa = PBXShellScriptBuildPhase;
221 | buildActionMask = 2147483647;
222 | files = (
223 | );
224 | inputFileListPaths = (
225 | );
226 | inputPaths = (
227 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
228 | "${PODS_ROOT}/Manifest.lock",
229 | );
230 | name = "[CP] Check Pods Manifest.lock";
231 | outputFileListPaths = (
232 | );
233 | outputPaths = (
234 | "$(DERIVED_FILE_DIR)/Pods-nftmarketplace-checkManifestLockResult.txt",
235 | );
236 | runOnlyForDeploymentPostprocessing = 0;
237 | shellPath = /bin/sh;
238 | 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";
239 | showEnvVarsInLog = 0;
240 | };
241 | 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
242 | isa = PBXShellScriptBuildPhase;
243 | buildActionMask = 2147483647;
244 | files = (
245 | );
246 | inputPaths = (
247 | "${PODS_ROOT}/Target Support Files/Pods-nftmarketplace/Pods-nftmarketplace-resources.sh",
248 | "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
249 | "${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
250 | "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
251 | );
252 | name = "[CP] Copy Pods Resources";
253 | outputPaths = (
254 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
255 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
256 | "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle",
257 | );
258 | runOnlyForDeploymentPostprocessing = 0;
259 | shellPath = /bin/sh;
260 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-nftmarketplace/Pods-nftmarketplace-resources.sh\"\n";
261 | showEnvVarsInLog = 0;
262 | };
263 | FD10A7F022414F080027D42C /* Start Packager */ = {
264 | isa = PBXShellScriptBuildPhase;
265 | buildActionMask = 2147483647;
266 | files = (
267 | );
268 | inputFileListPaths = (
269 | );
270 | inputPaths = (
271 | );
272 | name = "Start Packager";
273 | outputFileListPaths = (
274 | );
275 | outputPaths = (
276 | );
277 | runOnlyForDeploymentPostprocessing = 0;
278 | shellPath = /bin/sh;
279 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/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 `node --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/launchPackager.command'\"` || echo \"Can't start packager automatically\"\n fi\nfi\n";
280 | showEnvVarsInLog = 0;
281 | };
282 | /* End PBXShellScriptBuildPhase section */
283 |
284 | /* Begin PBXSourcesBuildPhase section */
285 | 13B07F871A680F5B00A75B9A /* Sources */ = {
286 | isa = PBXSourcesBuildPhase;
287 | buildActionMask = 2147483647;
288 | files = (
289 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
290 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
291 | B18059E884C0ABDD17F3DC3D /* ExpoModulesProvider.swift in Sources */,
292 | );
293 | runOnlyForDeploymentPostprocessing = 0;
294 | };
295 | /* End PBXSourcesBuildPhase section */
296 |
297 | /* Begin XCBuildConfiguration section */
298 | 13B07F941A680F5B00A75B9A /* Debug */ = {
299 | isa = XCBuildConfiguration;
300 | baseConfigurationReference = 6C2E3173556A471DD304B334 /* Pods-nftmarketplace.debug.xcconfig */;
301 | buildSettings = {
302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
303 | CLANG_ENABLE_MODULES = YES;
304 | CURRENT_PROJECT_VERSION = 1;
305 | ENABLE_BITCODE = NO;
306 | GCC_PREPROCESSOR_DEFINITIONS = (
307 | "$(inherited)",
308 | "FB_SONARKIT_ENABLED=1",
309 | );
310 | INFOPLIST_FILE = nftmarketplace/Info.plist;
311 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
312 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
313 | OTHER_LDFLAGS = (
314 | "$(inherited)",
315 | "-ObjC",
316 | "-lc++",
317 | );
318 | PRODUCT_BUNDLE_IDENTIFIER = org.name.nftmarketplace;
319 | PRODUCT_NAME = nftmarketplace;
320 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
321 | SWIFT_VERSION = 5.0;
322 | VERSIONING_SYSTEM = "apple-generic";
323 | };
324 | name = Debug;
325 | };
326 | 13B07F951A680F5B00A75B9A /* Release */ = {
327 | isa = XCBuildConfiguration;
328 | baseConfigurationReference = 7A4D352CD337FB3A3BF06240 /* Pods-nftmarketplace.release.xcconfig */;
329 | buildSettings = {
330 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
331 | CLANG_ENABLE_MODULES = YES;
332 | CURRENT_PROJECT_VERSION = 1;
333 | INFOPLIST_FILE = nftmarketplace/Info.plist;
334 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
335 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
336 | OTHER_LDFLAGS = (
337 | "$(inherited)",
338 | "-ObjC",
339 | "-lc++",
340 | );
341 | PRODUCT_BUNDLE_IDENTIFIER = org.name.nftmarketplace;
342 | PRODUCT_NAME = nftmarketplace;
343 | SWIFT_VERSION = 5.0;
344 | VERSIONING_SYSTEM = "apple-generic";
345 | };
346 | name = Release;
347 | };
348 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
349 | isa = XCBuildConfiguration;
350 | buildSettings = {
351 | ALWAYS_SEARCH_USER_PATHS = NO;
352 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
353 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
354 | CLANG_CXX_LIBRARY = "libc++";
355 | CLANG_ENABLE_MODULES = YES;
356 | CLANG_ENABLE_OBJC_ARC = YES;
357 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
358 | CLANG_WARN_BOOL_CONVERSION = YES;
359 | CLANG_WARN_COMMA = YES;
360 | CLANG_WARN_CONSTANT_CONVERSION = YES;
361 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
362 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
363 | CLANG_WARN_EMPTY_BODY = YES;
364 | CLANG_WARN_ENUM_CONVERSION = YES;
365 | CLANG_WARN_INFINITE_RECURSION = YES;
366 | CLANG_WARN_INT_CONVERSION = YES;
367 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
368 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
369 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
370 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
371 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
372 | CLANG_WARN_STRICT_PROTOTYPES = YES;
373 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
374 | CLANG_WARN_UNREACHABLE_CODE = YES;
375 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
376 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
377 | COPY_PHASE_STRIP = NO;
378 | ENABLE_STRICT_OBJC_MSGSEND = YES;
379 | ENABLE_TESTABILITY = YES;
380 | GCC_C_LANGUAGE_STANDARD = gnu99;
381 | GCC_DYNAMIC_NO_PIC = NO;
382 | GCC_NO_COMMON_BLOCKS = YES;
383 | GCC_OPTIMIZATION_LEVEL = 0;
384 | GCC_PREPROCESSOR_DEFINITIONS = (
385 | "DEBUG=1",
386 | "$(inherited)",
387 | );
388 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
389 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
390 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
391 | GCC_WARN_UNDECLARED_SELECTOR = YES;
392 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
393 | GCC_WARN_UNUSED_FUNCTION = YES;
394 | GCC_WARN_UNUSED_VARIABLE = YES;
395 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
396 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
397 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\"";
398 | MTL_ENABLE_DEBUG_INFO = YES;
399 | ONLY_ACTIVE_ARCH = YES;
400 | SDKROOT = iphoneos;
401 | };
402 | name = Debug;
403 | };
404 | 83CBBA211A601CBA00E9B192 /* Release */ = {
405 | isa = XCBuildConfiguration;
406 | buildSettings = {
407 | ALWAYS_SEARCH_USER_PATHS = NO;
408 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
409 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
410 | CLANG_CXX_LIBRARY = "libc++";
411 | CLANG_ENABLE_MODULES = YES;
412 | CLANG_ENABLE_OBJC_ARC = YES;
413 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
414 | CLANG_WARN_BOOL_CONVERSION = YES;
415 | CLANG_WARN_COMMA = YES;
416 | CLANG_WARN_CONSTANT_CONVERSION = YES;
417 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
418 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
419 | CLANG_WARN_EMPTY_BODY = YES;
420 | CLANG_WARN_ENUM_CONVERSION = YES;
421 | CLANG_WARN_INFINITE_RECURSION = YES;
422 | CLANG_WARN_INT_CONVERSION = YES;
423 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
424 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
425 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
426 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
427 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
428 | CLANG_WARN_STRICT_PROTOTYPES = YES;
429 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
430 | CLANG_WARN_UNREACHABLE_CODE = YES;
431 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
432 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
433 | COPY_PHASE_STRIP = YES;
434 | ENABLE_NS_ASSERTIONS = NO;
435 | ENABLE_STRICT_OBJC_MSGSEND = YES;
436 | GCC_C_LANGUAGE_STANDARD = gnu99;
437 | GCC_NO_COMMON_BLOCKS = YES;
438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
440 | GCC_WARN_UNDECLARED_SELECTOR = YES;
441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
442 | GCC_WARN_UNUSED_FUNCTION = YES;
443 | GCC_WARN_UNUSED_VARIABLE = YES;
444 | IPHONEOS_DEPLOYMENT_TARGET = 12.0;
445 | LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)";
446 | LIBRARY_SEARCH_PATHS = "\"$(inherited)\"";
447 | MTL_ENABLE_DEBUG_INFO = NO;
448 | SDKROOT = iphoneos;
449 | VALIDATE_PRODUCT = YES;
450 | };
451 | name = Release;
452 | };
453 | /* End XCBuildConfiguration section */
454 |
455 | /* Begin XCConfigurationList section */
456 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "nftmarketplace" */ = {
457 | isa = XCConfigurationList;
458 | buildConfigurations = (
459 | 13B07F941A680F5B00A75B9A /* Debug */,
460 | 13B07F951A680F5B00A75B9A /* Release */,
461 | );
462 | defaultConfigurationIsVisible = 0;
463 | defaultConfigurationName = Release;
464 | };
465 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "nftmarketplace" */ = {
466 | isa = XCConfigurationList;
467 | buildConfigurations = (
468 | 83CBBA201A601CBA00E9B192 /* Debug */,
469 | 83CBBA211A601CBA00E9B192 /* Release */,
470 | );
471 | defaultConfigurationIsVisible = 0;
472 | defaultConfigurationName = Release;
473 | };
474 | /* End XCConfigurationList section */
475 | };
476 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
477 | }
478 |
--------------------------------------------------------------------------------