Skip to content

Commit

Permalink
Renames React Native project for GraphQL example
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Oct 22, 2020
1 parent 680768c commit 02d58dc
Show file tree
Hide file tree
Showing 17 changed files with 172 additions and 172 deletions.
4 changes: 2 additions & 2 deletions examples/graphql-react-native-apollo/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.mswdemo",
package = "com.GraphQLReactNativeApollo",
)

android_resource(
name = "res",
package = "com.mswdemo",
package = "com.GraphQLReactNativeApollo",
res = "src/main/res",
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ android {
}

defaultConfig {
applicationId "com.mswdemo"
applicationId "com.GraphQLReactNativeApollo"
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.mswdemo;
package com.GraphQLReactNativeApollo;

import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
Expand Down
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.mswdemo">
package="com.GraphQLReactNativeApollo">

<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.mswdemo;
package com.GraphQLReactNativeApollo;

import com.facebook.react.ReactActivity;

Expand All @@ -10,6 +10,6 @@ public class MainActivity extends ReactActivity {
*/
@Override
protected String getMainComponentName() {
return "MSWDemo";
return "GraphQLReactNativeApollo";
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.mswdemo;
package com.GraphQLReactNativeApollo;

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.mswdemo.ReactNativeFlipper");
Class<?> aClass = Class.forName("com.GraphQLReactNativeApollo.ReactNativeFlipper");
aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">MSWDemo</string>
<string name="app_name">GraphQLReactNativeApollo</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
rootProject.name = 'MSWDemo'
rootProject.name = 'GraphQLReactNativeApollo'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'

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 = "2D02E47A1E0B4A5D006451C7"
BuildableName = "MSWDemo-tvOS.app"
BlueprintName = "MSWDemo-tvOS"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo-tvOS.app"
BlueprintName = "GraphQLReactNativeApollo-tvOS"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -33,9 +33,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2D02E48F1E0B4A5D006451C7"
BuildableName = "MSWDemo-tvOSTests.xctest"
BlueprintName = "MSWDemo-tvOSTests"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo-tvOSTests.xctest"
BlueprintName = "GraphQLReactNativeApollo-tvOSTests"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -55,9 +55,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
BuildableName = "MSWDemo-tvOS.app"
BlueprintName = "MSWDemo-tvOS"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo-tvOS.app"
BlueprintName = "GraphQLReactNativeApollo-tvOS"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -72,9 +72,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "2D02E47A1E0B4A5D006451C7"
BuildableName = "MSWDemo-tvOS.app"
BlueprintName = "MSWDemo-tvOS"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo-tvOS.app"
BlueprintName = "GraphQLReactNativeApollo-tvOS"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "MSWDemo.app"
BlueprintName = "MSWDemo"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo.app"
BlueprintName = "GraphQLReactNativeApollo"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand All @@ -33,9 +33,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E356ED1AD99517003FC87E"
BuildableName = "MSWDemoTests.xctest"
BlueprintName = "MSWDemoTests"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApolloTests.xctest"
BlueprintName = "GraphQLReactNativeApolloTests"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
Expand All @@ -55,9 +55,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "MSWDemo.app"
BlueprintName = "MSWDemo"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo.app"
BlueprintName = "GraphQLReactNativeApollo"
ReferencedContainer = "container:GraphQLReactNativeApollo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -72,9 +72,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
BuildableName = "MSWDemo.app"
BlueprintName = "MSWDemo"
ReferencedContainer = "container:MSWDemo.xcodeproj">
BuildableName = "GraphQLReactNativeApollo.app"
BlueprintName = "GraphQLReactNativeApollo"
ReferencedContainer = "container:GraphQLReactNativeApollo.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 @@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
moduleName:@"MSWDemo"
moduleName:@"GraphQLReactNativeApollo"
initialProperties:nil];

rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
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>MSWDemo</string>
<string>GraphQLReactNativeApollo</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 @@ -22,7 +22,7 @@
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="MSWDemo" 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="GraphQLReactNativeApollo" 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"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
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 MSWDemoTests : XCTestCase
@interface GraphQLReactNativeApolloTests : XCTestCase

@end

@implementation MSWDemoTests
@implementation GraphQLReactNativeApolloTests

- (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
{
Expand Down
10 changes: 5 additions & 5 deletions examples/graphql-react-native-apollo/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ

platform :ios, '10.0'

target 'MSWDemo' do
target 'GraphQLReactNativeApollo' do
config = use_native_modules!

use_react_native!(:path => config["reactNativePath"])

target 'MSWDemoTests' do
target 'GraphQLReactNativeApolloTests' do
inherit! :complete
# Pods for testing
end
Expand All @@ -23,10 +23,10 @@ target 'MSWDemo' do
end
end

target 'MSWDemo-tvOS' do
# Pods for MSWDemo-tvOS
target 'GraphQLReactNativeApollo-tvOS' do
# Pods for GraphQLReactNativeApollo-tvOS

target 'MSWDemo-tvOSTests' do
target 'GraphQLReactNativeApollo-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
Expand Down

0 comments on commit 02d58dc

Please sign in to comment.