Skip to content

Commit

Permalink
adjust example app to be able using production keys
Browse files Browse the repository at this point in the history
  • Loading branch information
serdiukov-o-nordwhale committed Feb 11, 2021
1 parent 5082726 commit 12ea72e
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
* https://github.com/facebook/react-native
*/

import React, { useCallback, useEffect, useRef, useState } from 'react';
import React, { useCallback, useEffect, useState } from 'react';
import { Button, StyleSheet, Text, View } from 'react-native';
import FaceTec, { FaceTecUxEvent, FaceTecSDKStatus, FaceTecSessionStatus } from '@gooddollar/react-native-facetec';
import FaceTec from '@gooddollar/react-native-facetec';
import Config from 'react-native-config'

const {
Expand All @@ -22,6 +22,8 @@ const {
REACT_APP_ENROLLMENT_IDENTIFIER,
} = Config

console.log(Config)

export default function App () {
const [status, setStatus] = useState('initializing')
const [verified, setVerified] = useState('not verified')
Expand Down
4 changes: 2 additions & 2 deletions example/android/app/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ android_library(

android_build_config(
name = "build_config",
package = "com.example",
package = "org.gooddollar.facetec.example",
)

android_resource(
name = "res",
package = "com.example",
package = "org.gooddollar.facetec.example",
res = "src/main/res",
)

Expand Down
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ android {
}

defaultConfig {
applicationId "com.example"
applicationId "org.gooddollar.facetec.example"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.example;
package org.gooddollar.facetec.example;

import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example">
package="org.gooddollar.facetec.example">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example;
package org.gooddollar.facetec.example;

import com.facebook.react.ReactActivity;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example;
package org.gooddollar.facetec.example;

import android.app.Application;
import android.content.Context;
Expand Down Expand Up @@ -62,7 +62,7 @@ private static void initializeFlipper(
We use reflection here to pick up the class that initializes Flipper,
since Flipper library is not available in release mode
*/
Class<?> aClass = Class.forName("com.example.ReactNativeFlipper");
Class<?> aClass = Class.forName("org.gooddollar.facetec.example.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
Expand Down
2 changes: 1 addition & 1 deletion example/android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">example</string>
<string name="app_name">GoodDollar FaceTec Example</string>
</resources>

0 comments on commit 12ea72e

Please sign in to comment.