Skip to content

Commit

Permalink
fix: renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNerdGuyLulu committed Apr 18, 2024
1 parent cc0eb3d commit d6892d6
Show file tree
Hide file tree
Showing 22 changed files with 150 additions and 131 deletions.
17 changes: 15 additions & 2 deletions sandboxes/NotificationsSandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,20 @@ yarn rename --androidBundleID "my.android.package.name" # Set Android Packag

>**Note**: This package does not attempt to properly rename build artifacts such as ios/build or Cocoa Pod installation targets. After renaming your project you should clean, build, and reinstall third party dependencies to get it running properly with the new name.
## Step 3: Initialize Intercom

## Step 3: Run pod install

```shell
# using npm
npm run pod

# OR using Yarn
yarn run pod
```



## Step 4: Initialize Intercom

### Android
>**MainApplication.kt**
Expand Down Expand Up @@ -70,7 +83,7 @@ return [super application:application didFinishLaunchingWithOptions:launchOption
```
## Step 4: Setup Push Notifications
## Step 5: Setup Push Notifications
### Android
> Move your **google-services.json** file into the **android/app** directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MainActivity : ReactActivity() {
* Returns the name of the main component registered from JavaScript. This is used to schedule
* rendering of the component.
*/
override fun getMainComponentName(): String = "IntercomRNNotificationsSample"
override fun getMainComponentName(): String = "notificationsandbox"

/**
* Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">IntercomRNNotificationsSample</string>
<string name="app_name">notificationsandbox</string>
</resources>
2 changes: 1 addition & 1 deletion sandboxes/NotificationsSandbox/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = 'IntercomRNNotificationsSample'
rootProject.name = 'notificationsandbox'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')
4 changes: 2 additions & 2 deletions sandboxes/NotificationsSandbox/app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "IntercomRNNotificationsSample",
"displayName": "IntercomRNNotificationsSample"
"name": "notificationsandbox",
"displayName": "notificationsandbox"
}
4 changes: 2 additions & 2 deletions sandboxes/NotificationsSandbox/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if linkage != nil
use_frameworks! :linkage => linkage.to_sym
end

target 'IntercomRNNotificationsSample' do
target 'notificationsandbox' do
config = use_native_modules!

use_react_native!(
Expand All @@ -50,7 +50,7 @@ target 'IntercomRNNotificationsSample' do
:app_path => "#{Pod::Config.instance.installation_root}/.."
)

target 'IntercomRNNotificationsSampleTests' do
target 'notificationsandboxTests' do
inherit! :complete
# Pods for testing
end
Expand Down
4 changes: 2 additions & 2 deletions sandboxes/NotificationsSandbox/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,6 @@ SPEC CHECKSUMS:
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
Yoga: d17d2cc8105eed528474683b42e2ea310e1daf61

PODFILE CHECKSUM: d3bb09c8b4b18e69d051b661165ace5ed205748b
PODFILE CHECKSUM: 28e1753308c393a5dc9600dcf89558d2178dcc78

COCOAPODS: 1.15.2
COCOAPODS: 1.14.3

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "IntercomRNNotificationsSample.app"
BlueprintName = "IntercomRNNotificationsSample"
ReferencedContainer = "container:IntercomRNNotificationsSample.xcodeproj">
BuildableName = "notificationsandbox.app"
BlueprintName = "notificationsandbox"
ReferencedContainer = "container:notificationsandbox.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -33,9 +33,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "IntercomRNNotificationsSampleTests.xctest"
BlueprintName = "IntercomRNNotificationsSampleTests"
ReferencedContainer = "container:IntercomRNNotificationsSample.xcodeproj">
BuildableName = "notificationsandboxTests.xctest"
BlueprintName = "notificationsandboxTests"
ReferencedContainer = "container:notificationsandbox.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -55,9 +55,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "IntercomRNNotificationsSample.app"
BlueprintName = "IntercomRNNotificationsSample"
ReferencedContainer = "container:IntercomRNNotificationsSample.xcodeproj">
BuildableName = "notificationsandbox.app"
BlueprintName = "notificationsandbox"
ReferencedContainer = "container:notificationsandbox.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -72,9 +72,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "IntercomRNNotificationsSample.app"
BlueprintName = "IntercomRNNotificationsSample"
ReferencedContainer = "container:IntercomRNNotificationsSample.xcodeproj">
BuildableName = "notificationsandbox.app"
BlueprintName = "notificationsandbox"
ReferencedContainer = "container:notificationsandbox.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ @implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"IntercomRNNotificationsSample";
self.moduleName = @"notificationsandbox";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
self.initialProps = @{};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>IntercomRNNotificationsSample</string>
<string>notificationsandbox</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="IntercomRNNotificationsSample" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="notificationsandbox" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
<rect key="frame" x="0.0" y="202" width="375" height="43"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
<nil key="highlightedColor"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
#define TIMEOUT_SECONDS 600
#define TEXT_TO_LOOK_FOR @"Welcome to React"

@interface IntercomRNNotificationsSampleTests : XCTestCase
@interface notificationsandboxTests : XCTestCase

@end

@implementation IntercomRNNotificationsSampleTests
@implementation notificationsandboxTests

- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
{
Expand Down
9 changes: 5 additions & 4 deletions sandboxes/NotificationsSandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "intercomrnnotificationssample",
"name": "notificationsandbox",
"version": "0.0.1",
"private": true,
"scripts": {
Expand All @@ -8,9 +8,10 @@
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"setup:yarn": "yarn install && cd ios && bundle exec pod install",
"setup:npm": "npm install && cd ios && bundle exec pod install",
"rename": "react-native-rename 'IntercomRNNotificationsSample' --skipGitStatusCheck"
"setup:yarn": "bundle install && yarn install",
"setup:npm": "bundle install && npm install",
"pod": "cd ios && bundle exec pod install",
"rename": "react-native-rename 'notificationsandbox' --skipGitStatusCheck"
},
"dependencies": {
"@intercom/intercom-react-native": "^7.0.1",
Expand Down

0 comments on commit d6892d6

Please sign in to comment.