File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ android {
8585 applicationId " com.shopify.checkoutkitreactnative"
8686 minSdkVersion rootProject. ext. minSdkVersion
8787 targetSdkVersion rootProject. ext. targetSdkVersion
88- versionCode 10
88+ versionCode 11
8989 versionName " 1.1"
9090 }
9191 signingConfigs {
Original file line number Diff line number Diff line change 88# http://developer.android.com/guide/developing/tools/proguard.html
99
1010# Add any project specific keep options here:
11+ -keep class com.shopify.checkoutkitreactnative.BuildConfig { *; }
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import {
3333import { createBottomTabNavigator } from '@react-navigation/bottom-tabs' ;
3434import { createNativeStackNavigator } from '@react-navigation/native-stack' ;
3535import { ApolloClient , InMemoryCache , ApolloProvider } from '@apollo/client' ;
36- import env from 'react-native-config' ;
36+ import Config from 'react-native-config' ;
3737import Icon from 'react-native-vector-icons/Entypo' ;
3838
3939import CatalogScreen from './screens/CatalogScreen' ;
@@ -94,11 +94,11 @@ const Stack = createNativeStackNavigator<RootStackParamList>();
9494export const cache = new InMemoryCache ( ) ;
9595
9696const client = new ApolloClient ( {
97- uri : `https://${ env . STOREFRONT_DOMAIN } /api/${ env . STOREFRONT_VERSION } /graphql.json` ,
97+ uri : `https://${ Config . STOREFRONT_DOMAIN } /api/${ Config . STOREFRONT_VERSION } /graphql.json` ,
9898 cache,
9999 headers : {
100100 'Content-Type' : 'application/json' ,
101- 'X-Shopify-Storefront-Access-Token' : env . STOREFRONT_ACCESS_TOKEN ?? '' ,
101+ 'X-Shopify-Storefront-Access-Token' : Config . STOREFRONT_ACCESS_TOKEN ?? '' ,
102102 } ,
103103 connectToDevTools : true ,
104104} ) ;
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import {
3333 View ,
3434} from 'react-native' ;
3535import pkg from '../../../package.json' ;
36+ import Config from 'react-native-config' ;
3637import { useConfig } from '../context/Config' ;
3738import {
3839 ColorScheme ,
@@ -220,6 +221,16 @@ function SettingsScreen() {
220221 type : SectionType . Text ,
221222 value : pkg . version ,
222223 } ,
224+ {
225+ title : 'Storefront Domain' ,
226+ type : SectionType . Text ,
227+ value : Config . STOREFRONT_DOMAIN || 'undefined' ,
228+ } ,
229+ {
230+ title : 'Storefront Access Token (last 4)' ,
231+ type : SectionType . Text ,
232+ value : Config . STOREFRONT_ACCESS_TOKEN ?. slice ( - 4 ) || 'undefined' ,
233+ } ,
223234 ] ,
224235 [ ShopifyCheckout . version ] ,
225236 ) ;
Original file line number Diff line number Diff line change 1- import env from 'react-native-config' ;
1+ import Config from 'react-native-config' ;
22import { NativeModules , Platform } from 'react-native' ;
33import type { AppConfig } from './context/Config' ;
44
@@ -14,7 +14,7 @@ const {
1414 PROVINCE ,
1515 ZIP ,
1616 PHONE ,
17- } = env ;
17+ } = Config ;
1818
1919export function createBuyerIdentityCartInput ( appConfig : AppConfig ) {
2020 if ( ! appConfig . prefillBuyerInformation ) {
You can’t perform that action at this time.
0 commit comments