Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InvestCustomer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Giang Tran
InvestCustomer
Commits
bddc0f56
Commit
bddc0f56
authored
Jun 07, 2021
by
Giang Tran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch service
parent
4a65c72f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
23 deletions
+24
-23
AppDelegate.m
ios/Invest/AppDelegate.m
+22
-22
url.js
src/apis/url.js
+2
-1
No files found.
ios/Invest/AppDelegate.m
View file @
bddc0f56
...
...
@@ -8,34 +8,34 @@
#import <React/RCTLinkingManager.h>
#import <AVFoundation/AVFoundation.h>
#import "RNBootSplash.h"
#if DEBUG
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
//
#if DEBUG
//
#import <FlipperKit/FlipperClient.h>
//
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
//
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
//
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
//
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
//
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
//#import <CallAppSDK/CallAppInterface.h>
static
void
InitializeFlipper
(
UIApplication
*
application
)
{
FlipperClient
*
client
=
[
FlipperClient
sharedClient
];
SKDescriptorMapper
*
layoutDescriptorMapper
=
[[
SKDescriptorMapper
alloc
]
initWithDefaults
];
[
client
addPlugin
:[[
FlipperKitLayoutPlugin
alloc
]
initWithRootNode
:
application
withDescriptorMapper
:
layoutDescriptorMapper
]];
[
client
addPlugin
:[[
FKUserDefaultsPlugin
alloc
]
initWithSuiteName
:
nil
]];
[
client
addPlugin
:[
FlipperKitReactPlugin
new
]];
[
client
addPlugin
:[[
FlipperKitNetworkPlugin
alloc
]
initWithNetworkAdapter
:[
SKIOSNetworkAdapter
new
]]];
[
client
start
];
}
#endif
//
//
//
static void InitializeFlipper(UIApplication *application) {
//
FlipperClient *client = [FlipperClient sharedClient];
//
SKDescriptorMapper *layoutDescriptorMapper = [[SKDescriptorMapper alloc] initWithDefaults];
//
[client addPlugin:[[FlipperKitLayoutPlugin alloc] initWithRootNode:application withDescriptorMapper:layoutDescriptorMapper]];
//
[client addPlugin:[[FKUserDefaultsPlugin alloc] initWithSuiteName:nil]];
//
[client addPlugin:[FlipperKitReactPlugin new]];
//
[client addPlugin:[[FlipperKitNetworkPlugin alloc] initWithNetworkAdapter:[SKIOSNetworkAdapter new]]];
//
[client start];
//
}
//
#endif
@implementation
AppDelegate
-
(
BOOL
)
application
:(
UIApplication
*
)
application
didFinishLaunchingWithOptions
:(
NSDictionary
*
)
launchOptions
{
#if DEBUG
InitializeFlipper
(
application
);
#endif
//
#if DEBUG
//
InitializeFlipper(application);
//
#endif
[[
AVAudioSession
sharedInstance
]
setCategory
:
AVAudioSessionCategoryPlayback
error
:
nil
];
RCTBridge
*
bridge
=
[[
RCTBridge
alloc
]
initWithDelegate
:
self
launchOptions
:
launchOptions
];
...
...
src/apis/url.js
View file @
bddc0f56
export
const
root
=
'http://api.dcvinvest.com/'
;
export
const
root
=
'http://services.dcvinvest.com/'
;
export
default
{
urllogin
:
root
+
'api/auth/customer-login'
,
urlRegistor
:
root
+
'api/auth/customer-register'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment