Skip to content

Commit efe6670

Browse files
Rename React Native demo app
1 parent 0d05e36 commit efe6670

37 files changed

Lines changed: 126 additions & 126 deletions

platforms/react-native/sample/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ react {
5656
// bundleConfig = file(../rn-cli.config.js)
5757
//
5858
// The name of the generated asset file containing your JS bundle
59-
bundleAssetName = "ReactNative.android.bundle"
59+
bundleAssetName = "CheckoutKitReactNativeDemo.android.bundle"
6060
//
6161
// The entry file for bundle generation. Default is 'index.android.js' or 'index.js'
6262
entryFile = file("../../index.js")
@@ -103,9 +103,9 @@ android {
103103
}
104104
}
105105

106-
namespace "com.shopify.checkoutkitreactnative"
106+
namespace "com.shopify.checkoutkit.reactnativedemo"
107107
defaultConfig {
108-
applicationId "com.shopify.checkoutkitreactnative"
108+
applicationId "com.shopify.checkoutkit.reactnativedemo"
109109
minSdkVersion rootProject.ext.minSdkVersion
110110
targetSdkVersion rootProject.ext.targetSdkVersion
111111
versionCode 11

platforms/react-native/sample/android/app/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
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 { *; }
11+
-keep class com.shopify.checkoutkit.reactnativedemo.BuildConfig { *; }

platforms/react-native/sample/android/app/src/main/java/com/shopify/checkoutkitreactnative/MainActivity.kt renamed to platforms/react-native/sample/android/app/src/main/java/com/shopify/checkoutkit/reactnativedemo/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.shopify.checkoutkitreactnative
1+
package com.shopify.checkoutkit.reactnativedemo
22

33
import com.facebook.react.ReactActivity
44
import com.facebook.react.ReactActivityDelegate
@@ -11,7 +11,7 @@ class MainActivity : ReactActivity() {
1111
* Returns the name of the main component registered from JavaScript. This is used to schedule
1212
* rendering of the component.
1313
*/
14-
override fun getMainComponentName(): String = "ReactNative"
14+
override fun getMainComponentName(): String = "CheckoutKitReactNativeDemo"
1515

1616
/**
1717
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]

platforms/react-native/sample/android/app/src/main/java/com/shopify/checkoutkitreactnative/MainApplication.kt renamed to platforms/react-native/sample/android/app/src/main/java/com/shopify/checkoutkit/reactnativedemo/MainApplication.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.shopify.checkoutkitreactnative
1+
package com.shopify.checkoutkit.reactnativedemo
22

33
import android.app.Application
44
import com.facebook.react.PackageList
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<resources>
2-
<string name="app_name">ReactNative</string>
2+
<string name="app_name">Checkout Kit React Native Demo</string>
33
<string name="checkout_web_view_title">Checkout</string>
44
</resources>

platforms/react-native/sample/android/app/src/test/java/com/shopify/checkoutkitreactnative/ShopifyCheckoutKitModuleTest.java renamed to platforms/react-native/sample/android/app/src/test/java/com/shopify/checkoutkit/reactnativedemo/ShopifyCheckoutKitModuleTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.shopify.checkoutkitreactnative;
1+
package com.shopify.checkoutkit.reactnativedemo;
22

33
import android.webkit.GeolocationPermissions;
44

platforms/react-native/sample/android/settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ extensions.configure(com.facebook.react.ReactSettingsExtension) { ex ->
1515
)
1616
}
1717

18-
rootProject.name = 'ReactNative'
18+
rootProject.name = 'CheckoutKitReactNativeDemo'
1919

2020
include ':app'
2121
include ':react-native-config'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "ReactNative",
3-
"displayName": "Shopify Checkout"
2+
"name": "CheckoutKitReactNativeDemo",
3+
"displayName": "Checkout Kit React Native Demo"
44
}

platforms/react-native/sample/ios/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2424
window = UIWindow(frame: UIScreen.main.bounds)
2525

2626
factory.startReactNative(
27-
withModuleName: "ReactNative",
27+
withModuleName: "CheckoutKitReactNativeDemo",
2828
in: window,
2929
launchOptions: launchOptions
3030
)

platforms/react-native/sample/ios/ReactNative-Bridging-Header.h renamed to platforms/react-native/sample/ios/CheckoutKitReactNativeDemo-Bridging-Header.h

File renamed without changes.

0 commit comments

Comments
 (0)