2 |
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char *argv[])
6 | {
7 | @autoreleasepool {
8 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/App.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import Home from './pages/Home';
3 |
4 | import {
5 | SafeAreaView,
6 | } from 'react-native';
7 |
8 | const App = () => {
9 | return
10 |
11 |
12 | };
13 |
14 | export default App;
--------------------------------------------------------------------------------
/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionBase=GRADLE_USER_HOME
2 | distributionPath=wrapper/dists
3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
4 | networkTimeout=10000
5 | zipStoreBase=GRADLE_USER_HOME
6 | zipStorePath=wrapper/dists
7 |
--------------------------------------------------------------------------------
/android/settings.gradle:
--------------------------------------------------------------------------------
1 | rootProject.name = 'PhonePeSampleApp'
2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3 | include ':app'
4 | includeBuild('../node_modules/@react-native/gradle-plugin')
5 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/metro.config.js:
--------------------------------------------------------------------------------
1 | const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
2 |
3 | /**
4 | * Metro configuration
5 | * https://facebook.github.io/metro/docs/configuration
6 | *
7 | * @type {import('metro-config').MetroConfig}
8 | */
9 | const config = {};
10 |
11 | module.exports = mergeConfig(getDefaultConfig(__dirname), config);
12 |
--------------------------------------------------------------------------------
/pages/Container/PPButton.tsx:
--------------------------------------------------------------------------------
1 | import { Text, Pressable } from "react-native";
2 | import React from "react";
3 | import { style } from "../stylesheets/Style";
4 |
5 | const PPButton = (props: any) => {
6 | return (
7 |
8 | {props.title}
9 |
10 | )
11 | }
12 |
13 | export default PPButton;
--------------------------------------------------------------------------------
/__tests__/App.test.tsx:
--------------------------------------------------------------------------------
1 | /**
2 | * @format
3 | */
4 |
5 | import 'react-native';
6 | import React from 'react';
7 | import App from '../App';
8 |
9 | // Note: import explicitly to use the types shiped with jest.
10 | import {it} from '@jest/globals';
11 |
12 | // Note: test renderer must be required after react-native.
13 | import renderer from 'react-test-renderer';
14 |
15 | it('renders correctly', () => {
16 | renderer.create();
17 | });
18 |
--------------------------------------------------------------------------------
/android/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/android/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
--------------------------------------------------------------------------------
/ios/.xcode.env:
--------------------------------------------------------------------------------
1 | # This `.xcode.env` file is versioned and is used to source the environment
2 | # used when running script phases inside Xcode.
3 | # To customize your local environment, you can create an `.xcode.env.local`
4 | # file that is not versioned.
5 |
6 | # NODE_BINARY variable contains the PATH to the node executable.
7 | #
8 | # Customize the NODE_BINARY variable here.
9 | # For example, to use nvm with brew, add the following line
10 | # . "$(brew --prefix nvm)/nvm.sh" --no-use
11 | export NODE_BINARY=$(command -v node)
12 |
--------------------------------------------------------------------------------
/android/app/src/debug/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/pages/Container/PPDropDown.tsx:
--------------------------------------------------------------------------------
1 | import { Text, View } from "react-native";
2 | import React from "react";
3 | import { style } from "../stylesheets/Style";
4 | import DropDownPicker from 'react-native-dropdown-picker';
5 |
6 | const PPDropDown = (props: any) => {
7 |
8 | return (
9 |
10 | {props.title}
11 |
20 |
21 | )
22 | }
23 |
24 | export default PPDropDown;
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Sample App
2 | Sample App to demonstrate the integration of PhonePe PG SDK React Native package.
3 |
4 | To know about the integration steps, please visit the Dev Docs : [PhonePe Developer Docs](https://developer.phonepe.com/v1/docs/react-native-sdk-integration-standard).
5 |
6 | > [!NOTE]
7 | > Please get in touch with the ```PhonePe integration team``` (merchant-integration@phonepe.com) to get your secret keys and to know about how to use this app.
8 |
9 | > [!WARNING]
10 | > Without valid input this sample app will not work.
11 |
12 | Pull dependencies from NPM:
13 | ```
14 | npm i -f
15 | npm i react-native-phonepe-pg -f
16 | ```
17 |
18 | To run on iOS:
19 | ```
20 | cd ios
21 | pod install
22 | npm run ios
23 | ```
24 |
25 | To run on Android:
26 | ```
27 | npm run android
28 | ```
29 |
--------------------------------------------------------------------------------
/pages/Container/PPTextField.tsx:
--------------------------------------------------------------------------------
1 | import { Text, TextInput, View } from "react-native";
2 | import React from "react";
3 | import { style } from "../stylesheets/Style";
4 |
5 | const PPTextField = (props: any) => {
6 |
7 | return (
8 |
9 | {props.title}
10 | {
18 | props.setValue(text);
19 | }}
20 | >
21 |
22 | )
23 | }
24 |
25 | export default PPTextField;
26 |
--------------------------------------------------------------------------------
/android/app/src/release/java/com/phonepesampleapp/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Meta Platforms, Inc. and 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.phonepesampleapp;
8 |
9 | import android.content.Context;
10 | import com.facebook.react.ReactInstanceManager;
11 |
12 | /**
13 | * Class responsible of loading Flipper inside your React Native application. This is the release
14 | * flavor of it so it's empty as we don't want to load Flipper.
15 | */
16 | public class ReactNativeFlipper {
17 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
18 | // Do nothing as we don't want to initialize Flipper on Release.
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleAppTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1
23 |
24 |
25 |
--------------------------------------------------------------------------------
/android/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext {
5 | buildToolsVersion = "33.0.0"
6 | minSdkVersion = 21
7 | compileSdkVersion = 33
8 | targetSdkVersion = 33
9 |
10 | // We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
11 | ndkVersion = "23.1.7779620"
12 | }
13 | repositories {
14 | google()
15 | mavenCentral()
16 | }
17 | dependencies {
18 | classpath("com.android.tools.build:gradle")
19 | classpath("com.facebook.react:react-native-gradle-plugin")
20 | }
21 | }
22 |
23 | allprojects {
24 | repositories {
25 | maven {
26 | url "https://phonepe.mycloudrepo.io/public/repositories/phonepe-intentsdk-android"
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/pages/Container/PPHStack.tsx:
--------------------------------------------------------------------------------
1 | import { Text, TextInput, View } from "react-native";
2 | import React from "react";
3 | import { style } from "../stylesheets/Style";
4 |
5 | const PPHTextField = (props: any) => {
6 |
7 | return (
8 |
9 |
10 | {props.title}
11 |
12 |
13 | {
20 | props.setValue(text);
21 | }}
22 | >
23 |
24 |
25 | )
26 | };
27 |
28 | export default PPHTextField;
29 |
--------------------------------------------------------------------------------
/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
12 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "PhonePeSampleApp",
3 | "version": "0.0.1",
4 | "private": true,
5 | "scripts": {
6 | "android": "react-native run-android",
7 | "ios": "react-native run-ios",
8 | "lint": "eslint .",
9 | "start": "react-native start",
10 | "test": "jest"
11 | },
12 | "dependencies": {
13 | "react": "18.2.0",
14 | "react-native": "0.72.4",
15 | "react-native-dropdown-picker": "^5.4.6"
16 | },
17 | "devDependencies": {
18 | "@babel/core": "^7.20.0",
19 | "@babel/preset-env": "^7.20.0",
20 | "@babel/runtime": "^7.20.0",
21 | "@react-native/eslint-config": "^0.72.2",
22 | "@react-native/metro-config": "^0.72.11",
23 | "@tsconfig/react-native": "^3.0.0",
24 | "@types/react": "^18.0.24",
25 | "@types/react-test-renderer": "^18.0.0",
26 | "babel-jest": "^29.2.1",
27 | "eslint": "^8.19.0",
28 | "jest": "^29.2.1",
29 | "metro-react-native-babel-preset": "0.76.8",
30 | "prettier": "^2.4.1",
31 | "react-test-renderer": "18.2.0",
32 | "typescript": "4.8.4"
33 | },
34 | "engines": {
35 | "node": ">=16"
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 PhonePe
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "scale" : "2x",
6 | "size" : "20x20"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "scale" : "3x",
11 | "size" : "20x20"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "scale" : "2x",
16 | "size" : "29x29"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "scale" : "3x",
21 | "size" : "29x29"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "scale" : "2x",
26 | "size" : "40x40"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "scale" : "3x",
31 | "size" : "40x40"
32 | },
33 | {
34 | "idiom" : "iphone",
35 | "scale" : "2x",
36 | "size" : "60x60"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "scale" : "3x",
41 | "size" : "60x60"
42 | },
43 | {
44 | "idiom" : "ios-marketing",
45 | "scale" : "1x",
46 | "size" : "1024x1024"
47 | }
48 | ],
49 | "info" : {
50 | "author" : "xcode",
51 | "version" : 1
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/phonepesampleapp/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.phonepesampleapp;
2 |
3 | import com.facebook.react.ReactActivity;
4 | import com.facebook.react.ReactActivityDelegate;
5 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
6 | import com.facebook.react.defaults.DefaultReactActivityDelegate;
7 |
8 | public class MainActivity extends ReactActivity {
9 |
10 | /**
11 | * Returns the name of the main component registered from JavaScript. This is used to schedule
12 | * rendering of the component.
13 | */
14 | @Override
15 | protected String getMainComponentName() {
16 | return "PhonePeSampleApp";
17 | }
18 |
19 | /**
20 | * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link
21 | * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React
22 | * (aka React 18) with two boolean flags.
23 | */
24 | @Override
25 | protected ReactActivityDelegate createReactActivityDelegate() {
26 | return new DefaultReactActivityDelegate(
27 | this,
28 | getMainComponentName(),
29 | // If you opted-in for the New Architecture, we enable the Fabric Renderer.
30 | DefaultNewArchitectureEntryPoint.getFabricEnabled());
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp/AppDelegate.mm:
--------------------------------------------------------------------------------
1 | #import "AppDelegate.h"
2 |
3 | #import
4 |
5 | @implementation AppDelegate
6 |
7 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
8 | {
9 | self.moduleName = @"PhonePeSampleApp";
10 | // You can add your custom initial props in the dictionary below.
11 | // They will be passed down to the ViewController used by React Native.
12 | self.initialProps = @{};
13 |
14 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
15 | }
16 |
17 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
18 | {
19 | #if DEBUG
20 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
21 | #else
22 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
23 | #endif
24 | }
25 |
26 | - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary *)options
27 | {
28 | NSMutableDictionary *userInfo = [[NSMutableDictionary alloc] init];
29 | [userInfo setObject:options forKey:@"options"];
30 | [userInfo setObject:url forKey:@"openUrl"];
31 | [[NSNotificationCenter defaultCenter] postNotificationName: @"ApplicationOpenURLNotification" object:nil userInfo:userInfo];
32 | return YES;
33 | }
34 |
35 | @end
36 |
--------------------------------------------------------------------------------
/android/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
31 |
32 |
--------------------------------------------------------------------------------
/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 | # Automatically convert third-party libraries to use AndroidX
25 | android.enableJetifier=true
26 |
27 | # Version of flipper SDK to use with React Native
28 | FLIPPER_VERSION=0.182.0
29 |
30 | # Use this property to specify which architecture you want to build.
31 | # You can also override it from the CLI using
32 | # ./gradlew -PreactNativeArchitectures=x86_64
33 | reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
34 |
35 | # Use this property to enable support to the new architecture.
36 | # This will allow you to use TurboModules and the Fabric render in
37 | # your application. You should enable this flag either if you want
38 | # to write custom TurboModules/Fabric components OR use libraries that
39 | # are providing them.
40 | newArchEnabled=false
41 |
42 | # Use this property to enable or disable the Hermes JS engine.
43 | # If set to false, you will be using JSC instead.
44 | hermesEnabled=true
45 |
--------------------------------------------------------------------------------
/android/app/src/main/res/drawable/rn_edit_text_material.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
21 |
22 |
23 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/android/.idea/jarRepositories.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 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/android/app/src/main/java/com/phonepesampleapp/MainApplication.java:
--------------------------------------------------------------------------------
1 | package com.phonepesampleapp;
2 |
3 | import android.app.Application;
4 | import com.facebook.react.PackageList;
5 | import com.facebook.react.ReactApplication;
6 | import com.facebook.react.ReactNativeHost;
7 | import com.facebook.react.ReactPackage;
8 | import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
9 | import com.facebook.react.defaults.DefaultReactNativeHost;
10 | import com.facebook.soloader.SoLoader;
11 | import java.util.List;
12 |
13 | public class MainApplication extends Application implements ReactApplication {
14 |
15 | private final ReactNativeHost mReactNativeHost =
16 | new DefaultReactNativeHost(this) {
17 | @Override
18 | public boolean getUseDeveloperSupport() {
19 | return BuildConfig.DEBUG;
20 | }
21 |
22 | @Override
23 | protected List getPackages() {
24 | @SuppressWarnings("UnnecessaryLocalVariable")
25 | List packages = new PackageList(this).getPackages();
26 | // Packages that cannot be autolinked yet can be added manually here, for example:
27 | // packages.add(new MyReactNativePackage());
28 | return packages;
29 | }
30 |
31 | @Override
32 | protected String getJSMainModuleName() {
33 | return "index";
34 | }
35 |
36 | @Override
37 | protected boolean isNewArchEnabled() {
38 | return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED;
39 | }
40 |
41 | @Override
42 | protected Boolean isHermesEnabled() {
43 | return BuildConfig.IS_HERMES_ENABLED;
44 | }
45 | };
46 |
47 | @Override
48 | public ReactNativeHost getReactNativeHost() {
49 | return mReactNativeHost;
50 | }
51 |
52 | @Override
53 | public void onCreate() {
54 | super.onCreate();
55 | SoLoader.init(this, /* native exopackage */ false);
56 | if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
57 | // If you opted-in for the New Architecture, we load the native entry point for this app.
58 | DefaultNewArchitectureEntryPoint.load();
59 | }
60 | ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleAppTests/PhonePeSampleAppTests.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | #import
5 | #import
6 |
7 | #define TIMEOUT_SECONDS 600
8 | #define TEXT_TO_LOOK_FOR @"Welcome to React"
9 |
10 | @interface PhonePeSampleAppTests : XCTestCase
11 |
12 | @end
13 |
14 | @implementation PhonePeSampleAppTests
15 |
16 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
17 | {
18 | if (test(view)) {
19 | return YES;
20 | }
21 | for (UIView *subview in [view subviews]) {
22 | if ([self findSubviewInView:subview matching:test]) {
23 | return YES;
24 | }
25 | }
26 | return NO;
27 | }
28 |
29 | - (void)testRendersWelcomeScreen
30 | {
31 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33 | BOOL foundElement = NO;
34 |
35 | __block NSString *redboxError = nil;
36 | #ifdef DEBUG
37 | RCTSetLogFunction(
38 | ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
39 | if (level >= RCTLogLevelError) {
40 | redboxError = message;
41 | }
42 | });
43 | #endif
44 |
45 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
46 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
48 |
49 | foundElement = [self findSubviewInView:vc.view
50 | matching:^BOOL(UIView *view) {
51 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
52 | return YES;
53 | }
54 | return NO;
55 | }];
56 | }
57 |
58 | #ifdef DEBUG
59 | RCTSetLogFunction(RCTDefaultLogFunction);
60 | #endif
61 |
62 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
63 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
64 | }
65 |
66 | @end
67 |
--------------------------------------------------------------------------------
/ios/Podfile:
--------------------------------------------------------------------------------
1 | # Resolve react_native_pods.rb with node to allow for hoisting
2 | require Pod::Executable.execute_command('node', ['-p',
3 | 'require.resolve(
4 | "react-native/scripts/react_native_pods.rb",
5 | {paths: [process.argv[1]]},
6 | )', __dir__]).strip
7 |
8 | platform :ios, min_ios_version_supported
9 | prepare_react_native_project!
10 |
11 | # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
12 | # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
13 | #
14 | # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
15 | # ```js
16 | # module.exports = {
17 | # dependencies: {
18 | # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
19 | # ```
20 | flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
21 |
22 | linkage = ENV['USE_FRAMEWORKS']
23 | if linkage != nil
24 | Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
25 | use_frameworks! :linkage => linkage.to_sym
26 | end
27 |
28 | target 'PhonePeSampleApp' do
29 | config = use_native_modules!
30 |
31 | # Flags change depending on the env values.
32 | flags = get_default_flags()
33 |
34 | use_react_native!(
35 | :path => config[:reactNativePath],
36 | # Hermes is now enabled by default. Disable by setting this flag to false.
37 | :hermes_enabled => flags[:hermes_enabled],
38 | :fabric_enabled => flags[:fabric_enabled],
39 | # Enables Flipper.
40 | #
41 | # Note that if you have use_frameworks! enabled, Flipper will not work and
42 | # you should disable the next line.
43 | :flipper_configuration => flipper_config,
44 | # An absolute path to your application root.
45 | :app_path => "#{Pod::Config.instance.installation_root}/.."
46 | )
47 |
48 | target 'PhonePeSampleAppTests' do
49 | inherit! :complete
50 | # Pods for testing
51 | end
52 |
53 | post_install do |installer|
54 | # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
55 | react_native_post_install(
56 | installer,
57 | config[:reactNativePath],
58 | :mac_catalyst_enabled => false
59 | )
60 | __apply_Xcode_12_5_M1_post_install_workaround(installer)
61 | end
62 | end
63 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | PhonePeSampleApp
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | $(MARKETING_VERSION)
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | $(CURRENT_PROJECT_VERSION)
25 | LSRequiresIPhoneOS
26 |
27 | NSAppTransportSecurity
28 |
29 | NSExceptionDomains
30 |
31 | localhost
32 |
33 | NSExceptionAllowsInsecureHTTPLoads
34 |
35 |
36 |
37 |
38 | NSLocationWhenInUseUsageDescription
39 |
40 | UILaunchStoryboardName
41 | LaunchScreen
42 | UIRequiredDeviceCapabilities
43 |
44 | armv7
45 |
46 | UISupportedInterfaceOrientations
47 |
48 | UIInterfaceOrientationPortrait
49 | UIInterfaceOrientationLandscapeLeft
50 | UIInterfaceOrientationLandscapeRight
51 |
52 | UIViewControllerBasedStatusBarAppearance
53 |
54 | CFBundleURLTypes
55 |
56 |
57 | CFBundleTypeRole
58 | Editor
59 | CFBundleURLName
60 | phonePe.reactNativeSampleApp
61 | CFBundleURLSchemes
62 |
63 | reactDemoAppScheme
64 |
65 |
66 |
67 | LSApplicationQueriesSchemes
68 |
69 | ppemerchantsdkv1
70 | ppeUniversal
71 | ppemerchantsdkv2
72 | ppemerchantsdkv3
73 | gpay
74 | paytmmp
75 | ppesim
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | CFPropertyList (3.0.6)
5 | rexml
6 | activesupport (6.1.7.6)
7 | concurrent-ruby (~> 1.0, >= 1.0.2)
8 | i18n (>= 1.6, < 2)
9 | minitest (>= 5.1)
10 | tzinfo (~> 2.0)
11 | zeitwerk (~> 2.3)
12 | addressable (2.8.5)
13 | public_suffix (>= 2.0.2, < 6.0)
14 | algoliasearch (1.27.5)
15 | httpclient (~> 2.8, >= 2.8.3)
16 | json (>= 1.5.1)
17 | atomos (0.1.3)
18 | claide (1.1.0)
19 | cocoapods (1.12.1)
20 | addressable (~> 2.8)
21 | claide (>= 1.0.2, < 2.0)
22 | cocoapods-core (= 1.12.1)
23 | cocoapods-deintegrate (>= 1.0.3, < 2.0)
24 | cocoapods-downloader (>= 1.6.0, < 2.0)
25 | cocoapods-plugins (>= 1.0.0, < 2.0)
26 | cocoapods-search (>= 1.0.0, < 2.0)
27 | cocoapods-trunk (>= 1.6.0, < 2.0)
28 | cocoapods-try (>= 1.1.0, < 2.0)
29 | colored2 (~> 3.1)
30 | escape (~> 0.0.4)
31 | fourflusher (>= 2.3.0, < 3.0)
32 | gh_inspector (~> 1.0)
33 | molinillo (~> 0.8.0)
34 | nap (~> 1.0)
35 | ruby-macho (>= 2.3.0, < 3.0)
36 | xcodeproj (>= 1.21.0, < 2.0)
37 | cocoapods-core (1.12.1)
38 | activesupport (>= 5.0, < 8)
39 | addressable (~> 2.8)
40 | algoliasearch (~> 1.0)
41 | concurrent-ruby (~> 1.1)
42 | fuzzy_match (~> 2.0.4)
43 | nap (~> 1.0)
44 | netrc (~> 0.11)
45 | public_suffix (~> 4.0)
46 | typhoeus (~> 1.0)
47 | cocoapods-deintegrate (1.0.5)
48 | cocoapods-downloader (1.6.3)
49 | cocoapods-plugins (1.0.0)
50 | nap
51 | cocoapods-search (1.0.1)
52 | cocoapods-trunk (1.6.0)
53 | nap (>= 0.8, < 2.0)
54 | netrc (~> 0.11)
55 | cocoapods-try (1.2.0)
56 | colored2 (3.1.2)
57 | concurrent-ruby (1.2.2)
58 | escape (0.0.4)
59 | ethon (0.16.0)
60 | ffi (>= 1.15.0)
61 | ffi (1.15.5)
62 | fourflusher (2.3.1)
63 | fuzzy_match (2.0.4)
64 | gh_inspector (1.1.3)
65 | httpclient (2.8.3)
66 | i18n (1.14.1)
67 | concurrent-ruby (~> 1.0)
68 | json (2.6.3)
69 | minitest (5.20.0)
70 | molinillo (0.8.0)
71 | nanaimo (0.3.0)
72 | nap (1.1.0)
73 | netrc (0.11.0)
74 | public_suffix (4.0.7)
75 | rexml (3.2.6)
76 | ruby-macho (2.5.1)
77 | typhoeus (1.4.0)
78 | ethon (>= 0.9.0)
79 | tzinfo (2.0.6)
80 | concurrent-ruby (~> 1.0)
81 | xcodeproj (1.22.0)
82 | CFPropertyList (>= 2.3.3, < 4.0)
83 | atomos (~> 0.1.3)
84 | claide (>= 1.0.2, < 2.0)
85 | colored2 (~> 3.1)
86 | nanaimo (~> 0.3.0)
87 | rexml (~> 3.2.4)
88 | zeitwerk (2.6.11)
89 |
90 | PLATFORMS
91 | ruby
92 |
93 | DEPENDENCIES
94 | cocoapods (~> 1.12)
95 |
96 | RUBY VERSION
97 | ruby 2.6.10p210
98 |
99 | BUNDLED WITH
100 | 2.3.6
101 |
--------------------------------------------------------------------------------
/pages/stylesheets/Style.ts:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from "react-native";
2 |
3 | export const style = StyleSheet.create({
4 | Text: {
5 | color: 'white',
6 | },
7 | tfborder: {
8 | marginVertical: 8,
9 | justifyContent: "flex-start",
10 | borderStyle: "solid",
11 | borderWidth: 1,
12 | borderColor: 'purple',
13 | borderRadius: 8,
14 | padding: 8,
15 | },
16 | container: {
17 | display: "flex",
18 | justifyContent: 'flex-start',
19 | marginHorizontal: 4,
20 | marginVertical:4,
21 | backgroundColor: 'white',
22 | padding: 8,
23 | },
24 | leadingHView: {
25 | flexDirection: 'row',
26 | jusitfyContent: 'flex-start',
27 | alignItems: 'center',
28 | justifyContent: 'flex-start',
29 | },
30 | bckView: {
31 | flexDirection: 'row',
32 | jusitfyContent: 'center',
33 | alignItems: 'center',
34 | justifyContent: 'center',
35 | },
36 | button: {
37 | flex: 1,
38 | alignItems: 'center',
39 | justifyContent: 'space-between',
40 | margin: 4,
41 | padding: 8,
42 | borderRadius: 4,
43 | elevation: 3,
44 | backgroundColor: 'purple',
45 | },
46 | buttonText: {
47 | fontSize: 16,
48 | lineHeight: 21,
49 | fontWeight: 'bold',
50 | letterSpacing: 0.25,
51 | color: 'white',
52 | },
53 | title: {
54 | textAlign: 'center',
55 | marginVertical: 4,
56 | },
57 | heading: {
58 | marginVertical: 8,
59 | backgroundColor: "white",
60 | borderColor: 'purple',
61 | borderWidth: 1,
62 | borderRadius: 20,
63 | paddingVertical: 8,
64 | textAlign: 'center',
65 | alignContent: "center",
66 | color: "purple"
67 | },
68 | fixToText: {
69 | flexDirection: 'row',
70 | justifyContent: 'space-between',
71 | },
72 | separator: {
73 | marginVertical: 4,
74 | borderBottomColor: '#737373',
75 | borderBottomWidth: StyleSheet.hairlineWidth,
76 | },
77 | dropdown: {
78 | height: 50,
79 | borderColor: 'purple',
80 | borderWidth: 1,
81 | borderRadius: 8,
82 | marginVertical: 4,
83 | padding: 8,
84 | },
85 | icon: {
86 | marginRight: 4,
87 | },
88 | centerLabel: {
89 | position: "relative",
90 | textAlign: "center",
91 | backgroundColor: 'clear',
92 | fontSize: 14,
93 | alignContent: "center"
94 | },
95 | label: {
96 | position: 'absolute',
97 | backgroundColor: 'clear',
98 | left: 22,
99 | top: 8,
100 | zIndex: 999,
101 | paddingHorizontal: 8,
102 | fontSize: 14,
103 | },
104 | placeholderStyle: {
105 | fontSize: 16,
106 | },
107 | selectedTextStyle: {
108 | fontSize: 16,
109 | },
110 | iconStyle: {
111 | width: 20,
112 | height: 20,
113 | },
114 | inputSearchStyle: {
115 | height: 40,
116 | fontSize: 16,
117 | }
118 | });
--------------------------------------------------------------------------------
/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 | @rem This is normally unused
30 | set APP_BASE_NAME=%~n0
31 | set APP_HOME=%DIRNAME%
32 |
33 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
34 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
35 |
36 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
37 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
38 |
39 | @rem Find java.exe
40 | if defined JAVA_HOME goto findJavaFromJavaHome
41 |
42 | set JAVA_EXE=java.exe
43 | %JAVA_EXE% -version >NUL 2>&1
44 | if %ERRORLEVEL% equ 0 goto execute
45 |
46 | echo.
47 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48 | echo.
49 | echo Please set the JAVA_HOME variable in your environment to match the
50 | echo location of your Java installation.
51 |
52 | goto fail
53 |
54 | :findJavaFromJavaHome
55 | set JAVA_HOME=%JAVA_HOME:"=%
56 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
57 |
58 | if exist "%JAVA_EXE%" goto execute
59 |
60 | echo.
61 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62 | echo.
63 | echo Please set the JAVA_HOME variable in your environment to match the
64 | echo location of your Java installation.
65 |
66 | goto fail
67 |
68 | :execute
69 | @rem Setup the command line
70 |
71 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
72 |
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if %ERRORLEVEL% equ 0 goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | set EXIT_CODE=%ERRORLEVEL%
85 | if %EXIT_CODE% equ 0 set EXIT_CODE=1
86 | if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
87 | exit /b %EXIT_CODE%
88 |
89 | :mainEnd
90 | if "%OS%"=="Windows_NT" endlocal
91 |
92 | :omega
93 |
--------------------------------------------------------------------------------
/android/app/src/debug/java/com/phonepesampleapp/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Meta Platforms, Inc. and 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.phonepesampleapp;
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.sharedpreferences.SharedPreferencesFlipperPlugin;
21 | import com.facebook.react.ReactInstanceEventListener;
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 | /**
28 | * Class responsible of loading Flipper inside your React Native application. This is the debug
29 | * flavor of it. Here you can add your own plugins and customize the Flipper setup.
30 | */
31 | public class ReactNativeFlipper {
32 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
33 | if (FlipperUtils.shouldEnableFlipper(context)) {
34 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
35 |
36 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
37 | client.addPlugin(new DatabasesFlipperPlugin(context));
38 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
39 | client.addPlugin(CrashReporterPlugin.getInstance());
40 |
41 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
42 | NetworkingModule.setCustomClientBuilder(
43 | new NetworkingModule.CustomClientBuilder() {
44 | @Override
45 | public void apply(OkHttpClient.Builder builder) {
46 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
47 | }
48 | });
49 | client.addPlugin(networkFlipperPlugin);
50 | client.start();
51 |
52 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
53 | // Hence we run if after all native modules have been initialized
54 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
55 | if (reactContext == null) {
56 | reactInstanceManager.addReactInstanceEventListener(
57 | new ReactInstanceEventListener() {
58 | @Override
59 | public void onReactContextInitialized(ReactContext reactContext) {
60 | reactInstanceManager.removeReactInstanceEventListener(this);
61 | reactContext.runOnNativeModulesQueueThread(
62 | new Runnable() {
63 | @Override
64 | public void run() {
65 | client.addPlugin(new FrescoFlipperPlugin());
66 | }
67 | });
68 | }
69 | });
70 | } else {
71 | client.addPlugin(new FrescoFlipperPlugin());
72 | }
73 | }
74 | }
75 | }
76 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp.xcodeproj/xcshareddata/xcschemes/PhonePeSampleApp.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
53 |
55 |
61 |
62 |
63 |
64 |
70 |
72 |
78 |
79 |
80 |
81 |
83 |
84 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
24 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/pages/Home.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 | import { Text, View, SafeAreaView, ScrollView, Platform } from "react-native";
3 | import DropDownPicker from 'react-native-dropdown-picker';
4 | import PhonePePaymentSDK from 'react-native-phonepe-pg';
5 | import { style } from "./stylesheets/Style";
6 | import PPButton from "./Container/PPButton";
7 | import PPTextField from "./Container/PPTextField";
8 |
9 | const Home = () => {
10 | const [requestBody, setRequestBody] = useState('');
11 | const [merchantId, setMerchantId] = useState('');
12 | const [flowId, setFlowId] = useState('');
13 |
14 | const [openEnvironment, setOpenEnvironment] = useState(false);
15 | const [environmentDropDownValue, setEnvironmentValue] = useState('PRODUCTION');
16 |
17 | const [environements, setEnvironment] = useState([
18 | { label: 'SANDBOX', value: 'SANDBOX' },
19 | { label: 'PRODUCTION', value: 'PRODUCTION' }
20 | ]);
21 |
22 | const [callbackURL, setCallbackURL] = useState('reactDemoAppScheme');
23 |
24 | const handleStartTransaction = () => {
25 | PhonePePaymentSDK.startTransaction(
26 | requestBody,
27 | callbackURL
28 | ).then(a => {
29 | setMessage(JSON.stringify(a));
30 | }).catch(error => {
31 | setMessage("error:" + error.message);
32 | })
33 | };
34 |
35 | const initPhonePeSDK = () => {
36 | PhonePePaymentSDK.init(
37 | environmentDropDownValue,
38 | merchantId,
39 | flowId,
40 | true
41 | ).then(result => {
42 | setMessage("Message: SDK Initialisation ->" + JSON.stringify(result));
43 | }).catch(error => {
44 | setMessage("error:" + error.message);
45 | })
46 | };
47 |
48 | const [message, setMessage] = useState('Message: ');
49 |
50 | const getUPIAppsInstalled = () => {
51 | if (Platform.OS == "ios") {
52 | getUPIAppsInstalledForiOS();
53 | } else {
54 | PhonePePaymentSDK.getUpiAppsForAndroid().then(a => {
55 | setMessage(JSON.stringify(a));
56 | }).catch(error => {
57 | setMessage("error:" + error.message);
58 | })
59 | }
60 | };
61 |
62 | const getUPIAppsInstalledForiOS = () => {
63 | PhonePePaymentSDK.getUPIAppsInstalledforIos().then(a => {
64 | setMessage(JSON.stringify(a));
65 | }).catch(error => {
66 | setMessage("error:" + error.message);
67 | })
68 | };
69 |
70 | return (
71 |
72 |
73 |
74 | RN Merchant Demo App
75 |
76 |
81 |
82 |
87 |
88 | Environment:
89 |
99 |
100 |
104 |
105 |
110 | {Platform.OS == "ios" &&
111 |
112 |
118 | }
119 |
120 |
124 |
125 |
126 |
130 |
131 |
132 | {message}
133 |
134 |
135 |
136 |
137 |
138 | )
139 | }
140 |
141 | export default Home;
--------------------------------------------------------------------------------
/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 | apply plugin: "com.facebook.react"
3 |
4 | /**
5 | * This is the configuration block to customize your React Native Android app.
6 | * By default you don't need to apply any configuration, just uncomment the lines you need.
7 | */
8 | react {
9 | /* Folders */
10 | // The root of your project, i.e. where "package.json" lives. Default is '..'
11 | // root = file("../")
12 | // The folder where the react-native NPM package is. Default is ../node_modules/react-native
13 | // reactNativeDir = file("../node_modules/react-native")
14 | // The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
15 | // codegenDir = file("../node_modules/@react-native/codegen")
16 | // The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
17 | // cliFile = file("../node_modules/react-native/cli.js")
18 |
19 | /* Variants */
20 | // The list of variants to that are debuggable. For those we're going to
21 | // skip the bundling of the JS bundle and the assets. By default is just 'debug'.
22 | // If you add flavors like lite, prod, etc. you'll have to list your debuggableVariants.
23 | // debuggableVariants = ["liteDebug", "prodDebug"]
24 |
25 | /* Bundling */
26 | // A list containing the node command and its flags. Default is just 'node'.
27 | // nodeExecutableAndArgs = ["node"]
28 | //
29 | // The command to run when bundling. By default is 'bundle'
30 | // bundleCommand = "ram-bundle"
31 | //
32 | // The path to the CLI configuration file. Default is empty.
33 | // bundleConfig = file(../rn-cli.config.js)
34 | //
35 | // The name of the generated asset file containing your JS bundle
36 | // bundleAssetName = "MyApplication.android.bundle"
37 | //
38 | // The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
39 | // entryFile = file("../js/MyApplication.android.js")
40 | //
41 | // A list of extra flags to pass to the 'bundle' commands.
42 | // See https://github.com/react-native-community/cli/blob/main/docs/commands.md#bundle
43 | // extraPackagerArgs = []
44 |
45 | /* Hermes Commands */
46 | // The hermes compiler command to run. By default it is 'hermesc'
47 | // hermesCommand = "$rootDir/my-custom-hermesc/bin/hermesc"
48 | //
49 | // The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
50 | // hermesFlags = ["-O", "-output-source-map"]
51 | }
52 |
53 | /**
54 | * Set this to true to Run Proguard on Release builds to minify the Java bytecode.
55 | */
56 | def enableProguardInReleaseBuilds = false
57 |
58 | /**
59 | * The preferred build flavor of JavaScriptCore (JSC)
60 | *
61 | * For example, to use the international variant, you can use:
62 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
63 | *
64 | * The international variant includes ICU i18n library and necessary data
65 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
66 | * give correct results when using with locales other than en-US. Note that
67 | * this variant is about 6MiB larger per architecture than default.
68 | */
69 | def jscFlavor = 'org.webkit:android-jsc:+'
70 |
71 | android {
72 | ndkVersion rootProject.ext.ndkVersion
73 |
74 | compileSdkVersion rootProject.ext.compileSdkVersion
75 |
76 | namespace "com.phonepesampleapp"
77 | defaultConfig {
78 | applicationId "com.phonepesampleapp"
79 | minSdkVersion rootProject.ext.minSdkVersion
80 | targetSdkVersion rootProject.ext.targetSdkVersion
81 | versionCode 1
82 | versionName "1.0"
83 | }
84 |
85 | buildTypes {
86 | debug {
87 | }
88 | release {
89 | minifyEnabled enableProguardInReleaseBuilds
90 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
91 | }
92 | }
93 | }
94 |
95 | dependencies {
96 | // The version of react-native is set by the React Native Gradle Plugin
97 | implementation("com.facebook.react:react-android")
98 |
99 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}")
100 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
101 | exclude group:'com.squareup.okhttp3', module:'okhttp'
102 | }
103 |
104 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}")
105 | if (hermesEnabled.toBoolean()) {
106 | implementation("com.facebook.react:hermes-android")
107 | } else {
108 | implementation jscFlavor
109 | }
110 | }
111 |
112 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
113 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # OSX
2 | #
3 | .DS_Store
4 |
5 | # node.js
6 | #
7 | node_modules/
8 | npm-debug.log
9 | yarn-error.log
10 |
11 | # fastlane
12 | #
13 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
14 | # screenshots whenever they are needed.
15 | # For more information about the recommended setup visit:
16 | # https://docs.fastlane.tools/best-practices/source-control/
17 |
18 | **/fastlane/report.xml
19 | **/fastlane/Preview.html
20 | **/fastlane/screenshots
21 | **/fastlane/test_output
22 |
23 | # Bundle artifact
24 | *.jsbundle
25 |
26 | # Ruby / CocoaPods
27 | /ios/Pods/
28 | /vendor/bundle/
29 |
30 | # Temporary files created by Metro to check the health of the file watcher
31 | .metro-health-check*
32 |
33 | # testing
34 | /coverage
35 |
36 | # Logs
37 | logs
38 | *.log
39 | npm-debug.log*
40 | yarn-debug.log*
41 | yarn-error.log*
42 | lerna-debug.log*
43 | .pnpm-debug.log*
44 |
45 | # Diagnostic reports (https://nodejs.org/api/report.html)
46 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
47 |
48 | # Runtime data
49 | pids
50 | *.pid
51 | *.seed
52 | *.pid.lock
53 |
54 | # Directory for instrumented libs generated by jscoverage/JSCover
55 | lib-cov
56 |
57 | # Coverage directory used by tools like istanbul
58 | coverage
59 | *.lcov
60 |
61 | # nyc test coverage
62 | .nyc_output
63 |
64 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
65 | .grunt
66 |
67 | # Bower dependency directory (https://bower.io/)
68 | bower_components
69 |
70 | # node-waf configuration
71 | .lock-wscript
72 |
73 | # Compiled binary addons (https://nodejs.org/api/addons.html)
74 | build/Release
75 |
76 | # Dependency directories
77 | node_modules/
78 | jspm_packages/
79 |
80 | # Snowpack dependency directory (https://snowpack.dev/)
81 | web_modules/
82 |
83 | # TypeScript cache
84 | *.tsbuildinfo
85 | # TypeScript v1 declaration files
86 | typings/
87 |
88 | # Optional npm cache directory
89 | .npm
90 |
91 | # Optional eslint cache
92 | .eslintcache
93 |
94 | # Optional stylelint cache
95 | .stylelintcache
96 |
97 | # Microbundle cache
98 | .rpt2_cache/
99 | .rts2_cache_cjs/
100 | .rts2_cache_es/
101 | .rts2_cache_umd/
102 |
103 | # Optional REPL history
104 | .node_repl_history
105 |
106 | # Output of 'npm pack'
107 | *.tgz
108 |
109 | # Yarn Integrity file
110 | .yarn-integrity
111 |
112 | # dotenv environment variable files
113 | .env
114 | .env.development.local
115 | .env.test.local
116 | .env.production.local
117 | .env.local
118 |
119 | # parcel-bundler cache (https://parceljs.org/)
120 | .cache
121 | .parcel-cache
122 |
123 | # Next.js build output
124 | .next
125 | out
126 |
127 | # Nuxt.js build / generate output
128 | .nuxt
129 | dist
130 |
131 | # Gatsby files
132 | .cache/
133 | # Comment in the public line in if your project uses Gatsby and not Next.js
134 | # https://nextjs.org/blog/next-9-1#public-directory-support
135 | # public
136 |
137 | # vuepress build output
138 | .vuepress/dist
139 |
140 | # vuepress v2.x temp and cache directory
141 | .temp
142 | .cache
143 |
144 | # Docusaurus cache and generated files
145 | .docusaurus
146 |
147 | # Serverless directories
148 | .serverless/
149 |
150 | # FuseBox cache
151 | .fusebox/
152 |
153 | # DynamoDB Local files
154 | .dynamodb/
155 |
156 | # TernJS port file
157 | .tern-port
158 |
159 | # Stores VSCode versions used for testing VSCode extensions
160 | .vscode-test
161 |
162 | # yarn v2
163 | .yarn/cache
164 | .yarn/unplugged
165 | .yarn/build-state.yml
166 | .yarn/install-state.gz
167 | .pnp.*
168 |
169 |
170 | #android .gitignore
171 |
172 | # Built application files
173 | *.apk
174 | *.ap_
175 | *.aab
176 |
177 | # Files for the ART/Dalvik VM
178 | *.dex
179 |
180 | # Java class files
181 | *.class
182 |
183 | # Generated files
184 | bin/
185 | gen/
186 | out/
187 |
188 | # Gradle files
189 | .gradle/
190 | build/
191 |
192 | # Local configuration file (sdk path, etc)
193 | local.properties
194 |
195 | # Proguard folder generated by Eclipse
196 | proguard/
197 |
198 | # Log Files
199 | *.log
200 |
201 | # Android Studio Navigation editor temp files
202 | .navigation/
203 |
204 | # Android Studio captures folder
205 | captures/
206 |
207 | # IntelliJ
208 | *.iml
209 | .idea/workspace.xml
210 | .idea/tasks.xml
211 | .idea/gradle.xml
212 | .idea/assetWizardSettings.xml
213 | .idea/dictionaries
214 | .idea/libraries
215 | .idea/caches
216 |
217 | # Keystore files
218 | # Uncomment the following lines if you do not want to check your keystore files in.
219 | *.jks
220 | *.keystore
221 |
222 | # External native build folder generated in Android Studio 2.2 and later
223 | .externalNativeBuild
224 |
225 | # Google Services (e.g. APIs or Firebase)
226 | google-services.json
227 |
228 | # Freeline
229 | freeline.py
230 | freeline/
231 | freeline_project_description.json
232 |
233 | # fastlane
234 | fastlane/report.xml
235 | fastlane/Preview.html
236 | fastlane/screenshots
237 | fastlane/test_output
238 | fastlane/readme.md
239 |
240 |
241 | #DynamoDB Local files
242 | .dynamodb/
243 |
244 | # iOS .gitignore
245 |
246 | # Xcode
247 | #
248 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
249 |
250 | ## Build generated
251 | build/
252 | DerivedData/
253 |
254 | ## Various settings
255 | *.pbxuser
256 | !default.pbxuser
257 | *.mode1v3
258 | !default.mode1v3
259 | *.mode2v3
260 | !default.mode2v3
261 | *.perspectivev3
262 | !default.perspectivev3
263 | xcuserdata/
264 |
265 | ## Other
266 | *.moved-aside
267 | *.xccheckout
268 | *.xcscmblueprint
269 |
270 | ## Obj-C/Swift specific
271 | *.hmap
272 | *.ipa
273 | *.dSYM.zip
274 | *.dSYM
275 |
276 | ## Playgrounds
277 | timeline.xctimeline
278 | playground.xcworkspace
279 |
280 | # Swift Package Manager
281 | #
282 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
283 | Packages/
284 | Package.pins
285 | Package.resolved
286 | .build/
287 |
288 | # CocoaPods
289 | #
290 | # We recommend against adding the Pods directory to your .gitignore. However
291 | # you should judge for yourself, the pros and cons are mentioned at:
292 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
293 | #
294 | Pods/
295 | #
296 | # Add this line if you want to avoid checking in source code from the Xcode workspace
297 | *.xcworkspace
298 |
299 | # Carthage
300 | #
301 | # Add this line if you want to avoid checking in source code from Carthage dependencies.
302 | # Carthage/Checkouts
303 |
304 | Carthage/Build
305 |
306 | # fastlane
307 | #
308 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
309 | # screenshots whenever they are needed.
310 | # For more information about the recommended setup visit:
311 | # https://docs.fastlane.tools/best-practices/source-control/#source-control
312 |
313 | fastlane/report.xml
314 | fastlane/Preview.html
315 | fastlane/screenshots/**/*.png
316 | fastlane/test_output
317 |
318 | # Code Injection
319 | #
320 | # After new code Injection tools there's a generated folder /iOSInjectionProject
321 | # https://github.com/johnno1962/injectionforxcode
322 |
323 | iOSInjectionProject/
324 |
--------------------------------------------------------------------------------
/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/HEAD/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 | # This is normally unused
84 | # shellcheck disable=SC2034
85 | APP_BASE_NAME=${0##*/}
86 | APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
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 | # In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147 | # shellcheck disable=SC3045
148 | MAX_FD=$( ulimit -H -n ) ||
149 | warn "Could not query maximum file descriptor limit"
150 | esac
151 | case $MAX_FD in #(
152 | '' | soft) :;; #(
153 | *)
154 | # In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155 | # shellcheck disable=SC3045
156 | ulimit -n "$MAX_FD" ||
157 | warn "Could not set maximum file descriptor limit to $MAX_FD"
158 | esac
159 | fi
160 |
161 | # Collect all arguments for the java command, stacking in reverse order:
162 | # * args from the command line
163 | # * the main class name
164 | # * -classpath
165 | # * -D...appname settings
166 | # * --module-path (only if needed)
167 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
168 |
169 | # For Cygwin or MSYS, switch paths to Windows format before running java
170 | if "$cygwin" || "$msys" ; then
171 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
172 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
173 |
174 | JAVACMD=$( cygpath --unix "$JAVACMD" )
175 |
176 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
177 | for arg do
178 | if
179 | case $arg in #(
180 | -*) false ;; # don't mess with options #(
181 | /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
182 | [ -e "$t" ] ;; #(
183 | *) false ;;
184 | esac
185 | then
186 | arg=$( cygpath --path --ignore --mixed "$arg" )
187 | fi
188 | # Roll the args list around exactly as many times as the number of
189 | # args, so each arg winds up back in the position where it started, but
190 | # possibly modified.
191 | #
192 | # NB: a `for` loop captures its iteration list before it begins, so
193 | # changing the positional parameters here affects neither the number of
194 | # iterations, nor the values presented in `arg`.
195 | shift # remove old arg
196 | set -- "$@" "$arg" # push replacement arg
197 | done
198 | fi
199 |
200 | # Collect all arguments for the java command;
201 | # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202 | # shell script including quotes and variable substitutions, so put them in
203 | # double quotes to make sure that they get re-expanded; and
204 | # * put everything else in single quotes, so that it's not re-expanded.
205 |
206 | set -- \
207 | "-Dorg.gradle.appname=$APP_BASE_NAME" \
208 | -classpath "$CLASSPATH" \
209 | org.gradle.wrapper.GradleWrapperMain \
210 | "$@"
211 |
212 | # Stop when "xargs" is not available.
213 | if ! command -v xargs >/dev/null 2>&1
214 | then
215 | die "xargs is not available"
216 | fi
217 |
218 | # Use "xargs" to parse quoted args.
219 | #
220 | # With -n1 it outputs one arg per line, with the quotes and backslashes removed.
221 | #
222 | # In Bash we could simply go:
223 | #
224 | # readarray ARGS < <( xargs -n1 <<<"$var" ) &&
225 | # set -- "${ARGS[@]}" "$@"
226 | #
227 | # but POSIX shell has neither arrays nor command substitution, so instead we
228 | # post-process each arg (as a line of input to sed) to backslash-escape any
229 | # character that might be a shell metacharacter, then use eval to reverse
230 | # that process (while maintaining the separation between arguments), and wrap
231 | # the whole thing up as a single "set" statement.
232 | #
233 | # This will of course break if any of these variables contains a newline or
234 | # an unmatched quote.
235 | #
236 |
237 | eval "set -- $(
238 | printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
239 | xargs -n1 |
240 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
241 | tr '\n' ' '
242 | )" '"$@"'
243 |
244 | exec "$JAVACMD" "$@"
245 |
--------------------------------------------------------------------------------
/ios/PhonePeSampleApp.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 54;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 00E356F31AD99517003FC87E /* PhonePeSampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* PhonePeSampleAppTests.m */; };
11 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; };
12 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
13 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
15 | /* End PBXBuildFile section */
16 |
17 | /* Begin PBXContainerItemProxy section */
18 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
19 | isa = PBXContainerItemProxy;
20 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
21 | proxyType = 1;
22 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
23 | remoteInfo = PhonePeSampleApp;
24 | };
25 | /* End PBXContainerItemProxy section */
26 |
27 | /* Begin PBXFileReference section */
28 | 00E356EE1AD99517003FC87E /* PhonePeSampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PhonePeSampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
29 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
30 | 00E356F21AD99517003FC87E /* PhonePeSampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PhonePeSampleAppTests.m; sourceTree = ""; };
31 | 13B07F961A680F5B00A75B9A /* PhonePeSampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PhonePeSampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
32 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = PhonePeSampleApp/AppDelegate.h; sourceTree = ""; };
33 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = PhonePeSampleApp/AppDelegate.mm; sourceTree = ""; };
34 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = PhonePeSampleApp/Images.xcassets; sourceTree = ""; };
35 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = PhonePeSampleApp/Info.plist; sourceTree = ""; };
36 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = PhonePeSampleApp/main.m; sourceTree = ""; };
37 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = PhonePeSampleApp/LaunchScreen.storyboard; sourceTree = ""; };
38 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
39 | /* End PBXFileReference section */
40 |
41 | /* Begin PBXFrameworksBuildPhase section */
42 | 00E356EB1AD99517003FC87E /* Frameworks */ = {
43 | isa = PBXFrameworksBuildPhase;
44 | buildActionMask = 2147483647;
45 | files = (
46 | );
47 | runOnlyForDeploymentPostprocessing = 0;
48 | };
49 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
50 | isa = PBXFrameworksBuildPhase;
51 | buildActionMask = 2147483647;
52 | files = (
53 | );
54 | runOnlyForDeploymentPostprocessing = 0;
55 | };
56 | /* End PBXFrameworksBuildPhase section */
57 |
58 | /* Begin PBXGroup section */
59 | 00E356EF1AD99517003FC87E /* PhonePeSampleAppTests */ = {
60 | isa = PBXGroup;
61 | children = (
62 | 00E356F21AD99517003FC87E /* PhonePeSampleAppTests.m */,
63 | 00E356F01AD99517003FC87E /* Supporting Files */,
64 | );
65 | path = PhonePeSampleAppTests;
66 | sourceTree = "";
67 | };
68 | 00E356F01AD99517003FC87E /* Supporting Files */ = {
69 | isa = PBXGroup;
70 | children = (
71 | 00E356F11AD99517003FC87E /* Info.plist */,
72 | );
73 | name = "Supporting Files";
74 | sourceTree = "";
75 | };
76 | 13B07FAE1A68108700A75B9A /* PhonePeSampleApp */ = {
77 | isa = PBXGroup;
78 | children = (
79 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */,
80 | 13B07FB01A68108700A75B9A /* AppDelegate.mm */,
81 | 13B07FB51A68108700A75B9A /* Images.xcassets */,
82 | 13B07FB61A68108700A75B9A /* Info.plist */,
83 | 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
84 | 13B07FB71A68108700A75B9A /* main.m */,
85 | );
86 | name = PhonePeSampleApp;
87 | sourceTree = "";
88 | };
89 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
90 | isa = PBXGroup;
91 | children = (
92 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
93 | );
94 | name = Frameworks;
95 | sourceTree = "";
96 | };
97 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
98 | isa = PBXGroup;
99 | children = (
100 | );
101 | name = Libraries;
102 | sourceTree = "";
103 | };
104 | 83CBB9F61A601CBA00E9B192 = {
105 | isa = PBXGroup;
106 | children = (
107 | 13B07FAE1A68108700A75B9A /* PhonePeSampleApp */,
108 | 832341AE1AAA6A7D00B99B32 /* Libraries */,
109 | 00E356EF1AD99517003FC87E /* PhonePeSampleAppTests */,
110 | 83CBBA001A601CBA00E9B192 /* Products */,
111 | 2D16E6871FA4F8E400B85C8A /* Frameworks */,
112 | BBD78D7AC51CEA395F1C20DB /* Pods */,
113 | );
114 | indentWidth = 2;
115 | sourceTree = "";
116 | tabWidth = 2;
117 | usesTabs = 0;
118 | };
119 | 83CBBA001A601CBA00E9B192 /* Products */ = {
120 | isa = PBXGroup;
121 | children = (
122 | 13B07F961A680F5B00A75B9A /* PhonePeSampleApp.app */,
123 | 00E356EE1AD99517003FC87E /* PhonePeSampleAppTests.xctest */,
124 | );
125 | name = Products;
126 | sourceTree = "";
127 | };
128 | BBD78D7AC51CEA395F1C20DB /* Pods */ = {
129 | isa = PBXGroup;
130 | children = (
131 | );
132 | path = Pods;
133 | sourceTree = "";
134 | };
135 | /* End PBXGroup section */
136 |
137 | /* Begin PBXNativeTarget section */
138 | 00E356ED1AD99517003FC87E /* PhonePeSampleAppTests */ = {
139 | isa = PBXNativeTarget;
140 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "PhonePeSampleAppTests" */;
141 | buildPhases = (
142 | 00E356EA1AD99517003FC87E /* Sources */,
143 | 00E356EB1AD99517003FC87E /* Frameworks */,
144 | 00E356EC1AD99517003FC87E /* Resources */,
145 | );
146 | buildRules = (
147 | );
148 | dependencies = (
149 | 00E356F51AD99517003FC87E /* PBXTargetDependency */,
150 | );
151 | name = PhonePeSampleAppTests;
152 | productName = PhonePeSampleAppTests;
153 | productReference = 00E356EE1AD99517003FC87E /* PhonePeSampleAppTests.xctest */;
154 | productType = "com.apple.product-type.bundle.unit-test";
155 | };
156 | 13B07F861A680F5B00A75B9A /* PhonePeSampleApp */ = {
157 | isa = PBXNativeTarget;
158 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "PhonePeSampleApp" */;
159 | buildPhases = (
160 | FD10A7F022414F080027D42C /* Start Packager */,
161 | 13B07F871A680F5B00A75B9A /* Sources */,
162 | 13B07F8C1A680F5B00A75B9A /* Frameworks */,
163 | 13B07F8E1A680F5B00A75B9A /* Resources */,
164 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
165 | );
166 | buildRules = (
167 | );
168 | dependencies = (
169 | );
170 | name = PhonePeSampleApp;
171 | productName = PhonePeSampleApp;
172 | productReference = 13B07F961A680F5B00A75B9A /* PhonePeSampleApp.app */;
173 | productType = "com.apple.product-type.application";
174 | };
175 | /* End PBXNativeTarget section */
176 |
177 | /* Begin PBXProject section */
178 | 83CBB9F71A601CBA00E9B192 /* Project object */ = {
179 | isa = PBXProject;
180 | attributes = {
181 | LastUpgradeCheck = 1210;
182 | TargetAttributes = {
183 | 00E356ED1AD99517003FC87E = {
184 | CreatedOnToolsVersion = 6.2;
185 | TestTargetID = 13B07F861A680F5B00A75B9A;
186 | };
187 | 13B07F861A680F5B00A75B9A = {
188 | LastSwiftMigration = 1120;
189 | };
190 | };
191 | };
192 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "PhonePeSampleApp" */;
193 | compatibilityVersion = "Xcode 12.0";
194 | developmentRegion = en;
195 | hasScannedForEncodings = 0;
196 | knownRegions = (
197 | en,
198 | Base,
199 | );
200 | mainGroup = 83CBB9F61A601CBA00E9B192;
201 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
202 | projectDirPath = "";
203 | projectRoot = "";
204 | targets = (
205 | 13B07F861A680F5B00A75B9A /* PhonePeSampleApp */,
206 | 00E356ED1AD99517003FC87E /* PhonePeSampleAppTests */,
207 | );
208 | };
209 | /* End PBXProject section */
210 |
211 | /* Begin PBXResourcesBuildPhase section */
212 | 00E356EC1AD99517003FC87E /* Resources */ = {
213 | isa = PBXResourcesBuildPhase;
214 | buildActionMask = 2147483647;
215 | files = (
216 | );
217 | runOnlyForDeploymentPostprocessing = 0;
218 | };
219 | 13B07F8E1A680F5B00A75B9A /* Resources */ = {
220 | isa = PBXResourcesBuildPhase;
221 | buildActionMask = 2147483647;
222 | files = (
223 | 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
224 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
225 | );
226 | runOnlyForDeploymentPostprocessing = 0;
227 | };
228 | /* End PBXResourcesBuildPhase section */
229 |
230 | /* Begin PBXShellScriptBuildPhase section */
231 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
232 | isa = PBXShellScriptBuildPhase;
233 | buildActionMask = 2147483647;
234 | files = (
235 | );
236 | inputPaths = (
237 | "$(SRCROOT)/.xcode.env.local",
238 | "$(SRCROOT)/.xcode.env",
239 | );
240 | name = "Bundle React Native code and images";
241 | outputPaths = (
242 | );
243 | runOnlyForDeploymentPostprocessing = 0;
244 | shellPath = /bin/sh;
245 | shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n";
246 | };
247 | FD10A7F022414F080027D42C /* Start Packager */ = {
248 | isa = PBXShellScriptBuildPhase;
249 | buildActionMask = 2147483647;
250 | files = (
251 | );
252 | inputFileListPaths = (
253 | );
254 | inputPaths = (
255 | );
256 | name = "Start Packager";
257 | outputFileListPaths = (
258 | );
259 | outputPaths = (
260 | );
261 | runOnlyForDeploymentPostprocessing = 0;
262 | shellPath = /bin/sh;
263 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
264 | showEnvVarsInLog = 0;
265 | };
266 | /* End PBXShellScriptBuildPhase section */
267 |
268 | /* Begin PBXSourcesBuildPhase section */
269 | 00E356EA1AD99517003FC87E /* Sources */ = {
270 | isa = PBXSourcesBuildPhase;
271 | buildActionMask = 2147483647;
272 | files = (
273 | 00E356F31AD99517003FC87E /* PhonePeSampleAppTests.m in Sources */,
274 | );
275 | runOnlyForDeploymentPostprocessing = 0;
276 | };
277 | 13B07F871A680F5B00A75B9A /* Sources */ = {
278 | isa = PBXSourcesBuildPhase;
279 | buildActionMask = 2147483647;
280 | files = (
281 | 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
282 | 13B07FC11A68108700A75B9A /* main.m in Sources */,
283 | );
284 | runOnlyForDeploymentPostprocessing = 0;
285 | };
286 | /* End PBXSourcesBuildPhase section */
287 |
288 | /* Begin PBXTargetDependency section */
289 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
290 | isa = PBXTargetDependency;
291 | target = 13B07F861A680F5B00A75B9A /* PhonePeSampleApp */;
292 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
293 | };
294 | /* End PBXTargetDependency section */
295 |
296 | /* Begin XCBuildConfiguration section */
297 | 00E356F61AD99517003FC87E /* Debug */ = {
298 | isa = XCBuildConfiguration;
299 | buildSettings = {
300 | BUNDLE_LOADER = "$(TEST_HOST)";
301 | GCC_PREPROCESSOR_DEFINITIONS = (
302 | "DEBUG=1",
303 | "$(inherited)",
304 | );
305 | INFOPLIST_FILE = PhonePeSampleAppTests/Info.plist;
306 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
307 | LD_RUNPATH_SEARCH_PATHS = (
308 | "$(inherited)",
309 | "@executable_path/Frameworks",
310 | "@loader_path/Frameworks",
311 | );
312 | OTHER_LDFLAGS = (
313 | "-ObjC",
314 | "-lc++",
315 | "$(inherited)",
316 | );
317 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
318 | PRODUCT_NAME = "$(TARGET_NAME)";
319 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PhonePeSampleApp.app/PhonePeSampleApp";
320 | };
321 | name = Debug;
322 | };
323 | 00E356F71AD99517003FC87E /* Release */ = {
324 | isa = XCBuildConfiguration;
325 | buildSettings = {
326 | BUNDLE_LOADER = "$(TEST_HOST)";
327 | COPY_PHASE_STRIP = NO;
328 | INFOPLIST_FILE = PhonePeSampleAppTests/Info.plist;
329 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
330 | LD_RUNPATH_SEARCH_PATHS = (
331 | "$(inherited)",
332 | "@executable_path/Frameworks",
333 | "@loader_path/Frameworks",
334 | );
335 | OTHER_LDFLAGS = (
336 | "-ObjC",
337 | "-lc++",
338 | "$(inherited)",
339 | );
340 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
341 | PRODUCT_NAME = "$(TARGET_NAME)";
342 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PhonePeSampleApp.app/PhonePeSampleApp";
343 | };
344 | name = Release;
345 | };
346 | 13B07F941A680F5B00A75B9A /* Debug */ = {
347 | isa = XCBuildConfiguration;
348 | buildSettings = {
349 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
350 | CLANG_ENABLE_MODULES = YES;
351 | CURRENT_PROJECT_VERSION = 1;
352 | ENABLE_BITCODE = NO;
353 | INFOPLIST_FILE = PhonePeSampleApp/Info.plist;
354 | LD_RUNPATH_SEARCH_PATHS = (
355 | "$(inherited)",
356 | "@executable_path/Frameworks",
357 | );
358 | MARKETING_VERSION = 1.0;
359 | OTHER_LDFLAGS = (
360 | "$(inherited)",
361 | "-ObjC",
362 | "-lc++",
363 | );
364 | PRODUCT_BUNDLE_IDENTIFIER = com.phonepe.reactnative.paymentSDKExample;
365 | PRODUCT_NAME = PhonePeSampleApp;
366 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
367 | SWIFT_VERSION = 5.0;
368 | VERSIONING_SYSTEM = "apple-generic";
369 | };
370 | name = Debug;
371 | };
372 | 13B07F951A680F5B00A75B9A /* Release */ = {
373 | isa = XCBuildConfiguration;
374 | buildSettings = {
375 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
376 | CLANG_ENABLE_MODULES = YES;
377 | CURRENT_PROJECT_VERSION = 1;
378 | INFOPLIST_FILE = PhonePeSampleApp/Info.plist;
379 | LD_RUNPATH_SEARCH_PATHS = (
380 | "$(inherited)",
381 | "@executable_path/Frameworks",
382 | );
383 | MARKETING_VERSION = 1.0;
384 | OTHER_LDFLAGS = (
385 | "$(inherited)",
386 | "-ObjC",
387 | "-lc++",
388 | );
389 | PRODUCT_BUNDLE_IDENTIFIER = com.phonepe.reactnative.paymentSDKExample;
390 | PRODUCT_NAME = PhonePeSampleApp;
391 | SWIFT_VERSION = 5.0;
392 | VERSIONING_SYSTEM = "apple-generic";
393 | };
394 | name = Release;
395 | };
396 | 83CBBA201A601CBA00E9B192 /* Debug */ = {
397 | isa = XCBuildConfiguration;
398 | buildSettings = {
399 | ALWAYS_SEARCH_USER_PATHS = NO;
400 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
401 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
402 | CLANG_CXX_LIBRARY = "libc++";
403 | CLANG_ENABLE_MODULES = YES;
404 | CLANG_ENABLE_OBJC_ARC = YES;
405 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
406 | CLANG_WARN_BOOL_CONVERSION = YES;
407 | CLANG_WARN_COMMA = YES;
408 | CLANG_WARN_CONSTANT_CONVERSION = YES;
409 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
410 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
411 | CLANG_WARN_EMPTY_BODY = YES;
412 | CLANG_WARN_ENUM_CONVERSION = YES;
413 | CLANG_WARN_INFINITE_RECURSION = YES;
414 | CLANG_WARN_INT_CONVERSION = YES;
415 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
416 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
417 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
418 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
419 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
420 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
421 | CLANG_WARN_STRICT_PROTOTYPES = YES;
422 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
423 | CLANG_WARN_UNREACHABLE_CODE = YES;
424 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
425 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
426 | COPY_PHASE_STRIP = NO;
427 | ENABLE_STRICT_OBJC_MSGSEND = YES;
428 | ENABLE_TESTABILITY = YES;
429 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
430 | GCC_C_LANGUAGE_STANDARD = gnu99;
431 | GCC_DYNAMIC_NO_PIC = NO;
432 | GCC_NO_COMMON_BLOCKS = YES;
433 | GCC_OPTIMIZATION_LEVEL = 0;
434 | GCC_PREPROCESSOR_DEFINITIONS = (
435 | "DEBUG=1",
436 | "$(inherited)",
437 | );
438 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
439 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
440 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
441 | GCC_WARN_UNDECLARED_SELECTOR = YES;
442 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
443 | GCC_WARN_UNUSED_FUNCTION = YES;
444 | GCC_WARN_UNUSED_VARIABLE = YES;
445 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
446 | LD_RUNPATH_SEARCH_PATHS = (
447 | /usr/lib/swift,
448 | "$(inherited)",
449 | );
450 | LIBRARY_SEARCH_PATHS = (
451 | "\"$(SDKROOT)/usr/lib/swift\"",
452 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
453 | "\"$(inherited)\"",
454 | );
455 | MTL_ENABLE_DEBUG_INFO = YES;
456 | ONLY_ACTIVE_ARCH = YES;
457 | OTHER_CFLAGS = "$(inherited)";
458 | OTHER_CPLUSPLUSFLAGS = (
459 | "$(OTHER_CFLAGS)",
460 | "-DFOLLY_NO_CONFIG",
461 | "-DFOLLY_MOBILE=1",
462 | "-DFOLLY_USE_LIBCPP=1",
463 | );
464 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
465 | SDKROOT = iphoneos;
466 | };
467 | name = Debug;
468 | };
469 | 83CBBA211A601CBA00E9B192 /* Release */ = {
470 | isa = XCBuildConfiguration;
471 | buildSettings = {
472 | ALWAYS_SEARCH_USER_PATHS = NO;
473 | CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
474 | CLANG_CXX_LANGUAGE_STANDARD = "c++17";
475 | CLANG_CXX_LIBRARY = "libc++";
476 | CLANG_ENABLE_MODULES = YES;
477 | CLANG_ENABLE_OBJC_ARC = YES;
478 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
479 | CLANG_WARN_BOOL_CONVERSION = YES;
480 | CLANG_WARN_COMMA = YES;
481 | CLANG_WARN_CONSTANT_CONVERSION = YES;
482 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
483 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
484 | CLANG_WARN_EMPTY_BODY = YES;
485 | CLANG_WARN_ENUM_CONVERSION = YES;
486 | CLANG_WARN_INFINITE_RECURSION = YES;
487 | CLANG_WARN_INT_CONVERSION = YES;
488 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
489 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
490 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
491 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
492 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
493 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
494 | CLANG_WARN_STRICT_PROTOTYPES = YES;
495 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
496 | CLANG_WARN_UNREACHABLE_CODE = YES;
497 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
498 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
499 | COPY_PHASE_STRIP = YES;
500 | ENABLE_NS_ASSERTIONS = NO;
501 | ENABLE_STRICT_OBJC_MSGSEND = YES;
502 | "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
503 | GCC_C_LANGUAGE_STANDARD = gnu99;
504 | GCC_NO_COMMON_BLOCKS = YES;
505 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
506 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
507 | GCC_WARN_UNDECLARED_SELECTOR = YES;
508 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
509 | GCC_WARN_UNUSED_FUNCTION = YES;
510 | GCC_WARN_UNUSED_VARIABLE = YES;
511 | IPHONEOS_DEPLOYMENT_TARGET = 12.4;
512 | LD_RUNPATH_SEARCH_PATHS = (
513 | /usr/lib/swift,
514 | "$(inherited)",
515 | );
516 | LIBRARY_SEARCH_PATHS = (
517 | "\"$(SDKROOT)/usr/lib/swift\"",
518 | "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"",
519 | "\"$(inherited)\"",
520 | );
521 | MTL_ENABLE_DEBUG_INFO = NO;
522 | OTHER_CFLAGS = "$(inherited)";
523 | OTHER_CPLUSPLUSFLAGS = (
524 | "$(OTHER_CFLAGS)",
525 | "-DFOLLY_NO_CONFIG",
526 | "-DFOLLY_MOBILE=1",
527 | "-DFOLLY_USE_LIBCPP=1",
528 | );
529 | REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
530 | SDKROOT = iphoneos;
531 | VALIDATE_PRODUCT = YES;
532 | };
533 | name = Release;
534 | };
535 | /* End XCBuildConfiguration section */
536 |
537 | /* Begin XCConfigurationList section */
538 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "PhonePeSampleAppTests" */ = {
539 | isa = XCConfigurationList;
540 | buildConfigurations = (
541 | 00E356F61AD99517003FC87E /* Debug */,
542 | 00E356F71AD99517003FC87E /* Release */,
543 | );
544 | defaultConfigurationIsVisible = 0;
545 | defaultConfigurationName = Release;
546 | };
547 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "PhonePeSampleApp" */ = {
548 | isa = XCConfigurationList;
549 | buildConfigurations = (
550 | 13B07F941A680F5B00A75B9A /* Debug */,
551 | 13B07F951A680F5B00A75B9A /* Release */,
552 | );
553 | defaultConfigurationIsVisible = 0;
554 | defaultConfigurationName = Release;
555 | };
556 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "PhonePeSampleApp" */ = {
557 | isa = XCConfigurationList;
558 | buildConfigurations = (
559 | 83CBBA201A601CBA00E9B192 /* Debug */,
560 | 83CBBA211A601CBA00E9B192 /* Release */,
561 | );
562 | defaultConfigurationIsVisible = 0;
563 | defaultConfigurationName = Release;
564 | };
565 | /* End XCConfigurationList section */
566 | };
567 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
568 | }
569 |
--------------------------------------------------------------------------------