renaming app to Flipper

Summary: rename all visible references of Sonar to Flipper. Changes endpoint URLs to the new repo address.

Reviewed By: passy

Differential Revision: D9082100

fbshipit-source-id: 2ab8b680a19c23d80050e8e768379c29d66acfca
This commit is contained in:
Daniel Büchele
2018-08-06 10:30:55 -07:00
committed by Facebook Github Bot
parent 2c48afdf04
commit 134a0d96c5
8 changed files with 51 additions and 42 deletions

View File

@@ -6,8 +6,8 @@ sidebar_label: Getting Started
Flipper helps you debug Android and iOS apps running in an emulator/simulator or connected physical development devices. Flipper consists of two parts: Flipper helps you debug Android and iOS apps running in an emulator/simulator or connected physical development devices. Flipper consists of two parts:
* The desktop app for macOS - The desktop app for macOS
* The native mobile SDKs for Android and iOS - The native mobile SDKs for Android and iOS
To use Flipper, you need to add the mobile SDK to your app. To use Flipper, you need to add the mobile SDK to your app.
@@ -15,7 +15,7 @@ To use Flipper, you need to add the mobile SDK to your app.
### Desktop app ### Desktop app
The desktop part of Flipper doesn't need any particular setup. Simply [download the latest build](https://www.facebook.com/sonar/public/mac) of our app and launch it. The desktop app is available for macOS and requires a working installation of the Android/iOS development tools on your system. The desktop part of Sonar doesn't need any particular setup. Simply [download the latest build](https://www.facebook.com/fbflipper/public/mac) of our app and launch it. The desktop app is available for macOS and requires a working installation of the Android/iOS development tools on your system.
Once you start Flipper and launch an emulator/simulator or connect a device, you will already be able to see the device logs in Flipper. To see app specific data, you need to integrate our native SDKs with your app. Once you start Flipper and launch an emulator/simulator or connect a device, you will already be able to see the device logs in Flipper. To see app specific data, you need to integrate our native SDKs with your app.
@@ -107,13 +107,14 @@ and install the dependencies by running `pod install`. When you open the Xcode w
} }
@end @end
``` ```
<div class='warning'> <div class='warning'>
* We haven't released the dependency to CocoaPods yet, here is the [issue](https://github.com/facebook/flipper/issues/132) by which you can track. - We haven't released the dependency to CocoaPods yet, here is the [issue](https://github.com/facebook/flipper/issues/132) by which you can track.
* If you do not use CocoaPods as a dependency management tool then currently there is no way to integrate SonarKit other than manually including all the dependencies and building it. - If you do not use CocoaPods as a dependency management tool then currently there is no way to integrate SonarKit other than manually including all the dependencies and building it.
* For Android, Flipper works with both emulators and physical devices connected through USB. However on iOS, we don't yet support physical devices. - For Android, Flipper works with both emulators and physical devices connected through USB. However on iOS, we don't yet support physical devices.
* The Flipper layout and network plugins aren't supported in Swift projects since they include C++ dependencies. We're working on supporting these plugins for Swift apps. You can join the discussion on the [issues page](https://github.com/facebook/flipper/issues). - The Flipper layout and network plugins aren't supported in Swift projects since they include C++ dependencies. We're working on supporting these plugins for Swift apps. You can join the discussion on the [issues page](https://github.com/facebook/flipper/issues).
</div> </div>
## Ready for takeoff ## Ready for takeoff

View File

@@ -4,16 +4,16 @@
"version": "0.6.6", "version": "0.6.6",
"versionDate": "2018-4-12", "versionDate": "2018-4-12",
"description": "Mobile development tool", "description": "Mobile development tool",
"productName": "Sonar", "productName": "Flipper",
"author": "Facebook Inc", "author": "Facebook Inc",
"main": "src/index.js", "main": "src/index.js",
"icon": "icon.png", "icon": "icon.png",
"category": "facebook-intern", "category": "facebook-intern",
"privileged": true, "privileged": true,
"build": { "build": {
"appId": "sonar", "appId": "flipper",
"productName": "Sonar", "productName": "Flipper",
"artifactName": "Sonar-${os}.${ext}", "artifactName": "Flipper-${os}.${ext}",
"mac": { "mac": {
"category": "public.app-category.developer-tools" "category": "public.app-category.developer-tools"
}, },

View File

@@ -2,23 +2,26 @@
"command": "SandcastleUniversalCommand", "command": "SandcastleUniversalCommand",
"user": "__USER__", "user": "__USER__",
"args": { "args": {
"name": "Release public Sonar build", "name": "Release public Flipper build",
"oncall": "danielbuechele", "oncall": "danielbuechele",
"steps": [ "steps": [
{ {
"name": "Clone from GitHub", "name": "Clone from GitHub",
"required": true, "required": true,
"shell": "git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/Sonar.git ../xplat/sonar-public" "shell":
"git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/flipper.git ../xplat/sonar-public"
}, },
{ {
"name": "Copy Sandcastle script", "name": "Copy Sandcastle script",
"required": true, "required": true,
"shell": "cp ../xplat/sonar/scripts/sandcastle-build.sh ../xplat/sonar-public/scripts/sandcastle-build.sh" "shell":
"cp ../xplat/sonar/scripts/sandcastle-build.sh ../xplat/sonar-public/scripts/sandcastle-build.sh"
}, },
{ {
"name": "Create build", "name": "Create build",
"required": true, "required": true,
"shell": "cd ../xplat/sonar-public/scripts && ./sandcastle-build.sh __VERSION__" "shell":
"cd ../xplat/sonar-public/scripts && ./sandcastle-build.sh __VERSION__"
}, },
{ {
"name": "Copy artifacts for syncing", "name": "Copy artifacts for syncing",
@@ -30,26 +33,25 @@
"step_type": "sync_step", "step_type": "sync_step",
"from": "remote", "from": "remote",
"to": "local", "to": "local",
"paths": [ "paths": ["Flipper-mac.zip", "manifest.json"]
"Sonar-mac.zip",
"manifest.json"
]
}, },
{ {
"name": "Publish to github", "name": "Publish to github",
"required": true, "required": true,
"shell": "curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"target_commitish\": \"master\", \"name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"body\": \"\", \"draft\": false, \"prerelease\": false}' https://api.github.com/repos/facebook/Sonar/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)", "shell":
"curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"target_commitish\": \"master\", \"name\": \"v'$(cat $SANDCASTLE_NEXUS/manifest.json | jq -r .version_name)'\", \"body\": \"\", \"draft\": false, \"prerelease\": false}' https://api.github.com/repos/facebook/flipper/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)",
"shell_type": "SandcastleLocalShell" "shell_type": "SandcastleLocalShell"
}, },
{ {
"name": "Upload", "name": "Upload",
"required": true, "required": true,
"shell": "curl -x fwdproxy:8080 $(cat RELEASE.json | jq -r '.upload_url' | sed -e 's#{?name,label}##')'?access_token='$(secrets_tool get SONAR_GITHUB_TOKEN)'&name=Sonar.zip' --header 'Content-Type: application/zip' --upload-file $SANDCASTLE_NEXUS'/Sonar-mac.zip' -X POST", "shell":
"curl -x fwdproxy:8080 $(cat RELEASE.json | jq -r '.upload_url' | sed -e 's#{?name,label}##')'?access_token='$(secrets_tool get SONAR_GITHUB_TOKEN)'&name=Flipper.zip' --header 'Content-Type: application/zip' --upload-file $SANDCASTLE_NEXUS'/Flipper-mac.zip' -X POST",
"shell_type": "SandcastleLocalShell" "shell_type": "SandcastleLocalShell"
} }
] ]
}, },
"alias": "sonar_release_public_build", "alias": "flipper_release_public_build",
"capabilities": { "capabilities": {
"vcs": "fbcode-fbsource", "vcs": "fbcode-fbsource",
"type": "lego-mac" "type": "lego-mac"

View File

@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
echo "✨ Creating new Sonar release on GitHub..." echo "✨ Creating new Flipper release on GitHub..."
MAJOR=$(curl -x fwdproxy:8080 --silent https://raw.githubusercontent.com/facebook/Sonar/master/package.json | jq -r '.version' | sed -E 's/[0-9]+$//g') MAJOR=$(curl -x fwdproxy:8080 --silent https://raw.githubusercontent.com/facebook/flipper/master/package.json | jq -r '.version' | sed -E 's/[0-9]+$//g')
echo "What should the patch version of the next release be? (v${MAJOR}_)" echo "What should the patch version of the next release be? (v${MAJOR}_)"

View File

@@ -2,23 +2,25 @@
"command": "SandcastleUniversalCommand", "command": "SandcastleUniversalCommand",
"user": "__USER__", "user": "__USER__",
"args": { "args": {
"name": "Release public Sonar build", "name": "Release public Flipper build",
"oncall": "danielbuechele", "oncall": "danielbuechele",
"steps": [ "steps": [
{ {
"name": "Clone from GitHub", "name": "Clone from GitHub",
"required": true, "required": true,
"shell": "git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/Sonar.git ../xplat/sonar-public" "shell":
"git -c http.proxy=fwdproxy:8080 -c https.proxy=fwdproxy:8080 clone https://github.com/facebook/flipper.git ../xplat/sonar-public"
}, },
{ {
"name": "Publish to github", "name": "Publish to github",
"required": true, "required": true,
"shell": "curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' https://api.github.com/repos/facebook/Sonar/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)", "shell":
"curl -o RELEASE.json -x fwdproxy:8080 --silent --data '{ \"tag_name\": \"v__VERSION__\", \"target_commitish\": \"master\", \"name\": \"v__VERSION__\", \"body\": \"\", \"draft\": false, \"prerelease\": true}' https://api.github.com/repos/facebook/flipper/releases?access_token=$(secrets_tool get SONAR_GITHUB_TOKEN)",
"shell_type": "SandcastleLocalShell" "shell_type": "SandcastleLocalShell"
} }
] ]
}, },
"alias": "sonar_release_ios_public_build", "alias": "flipper_release_ios_public_build",
"capabilities": { "capabilities": {
"vcs": "fbcode-fbsource", "vcs": "fbcode-fbsource",
"type": "lego-mac" "type": "lego-mac"

View File

@@ -274,19 +274,21 @@ function getTemplate(app: Object, shell: Object): Array<MenuItem> {
{ {
label: 'Getting started', label: 'Getting started',
click: function() { click: function() {
shell.openExternal('https://fbsonar.com/docs/getting-started.html'); shell.openExternal(
'https://fbflipper.com/docs/getting-started.html',
);
}, },
}, },
{ {
label: 'Create plugins', label: 'Create plugins',
click: function() { click: function() {
shell.openExternal('https://fbsonar.com/docs/create-plugin.html'); shell.openExternal('https://fbflipper.com/docs/create-plugin.html');
}, },
}, },
{ {
label: 'Report problems', label: 'Report problems',
click: function() { click: function() {
shell.openExternal('https://github.com/facebook/Sonar/issues'); shell.openExternal('https://github.com/facebook/flipper/issues');
}, },
}, },
], ],

View File

@@ -118,7 +118,7 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
<Container> <Container>
<Welcome isMounted={this.state.isMounted}> <Welcome isMounted={this.state.isMounted}>
<Logo src="./icon.png" /> <Logo src="./icon.png" />
<Title>Welcome to Sonar</Title> <Title>Welcome to Flipper</Title>
<Version> <Version>
{isProduction() {isProduction()
? `Version ${remote.app.getVersion()}` ? `Version ${remote.app.getVersion()}`
@@ -126,19 +126,21 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
</Version> </Version>
<Item <Item
onClick={() => onClick={() =>
shell.openExternal('https://fbsonar.com/docs/understand.html') shell.openExternal('https://fbflipper.com/docs/understand.html')
}> }>
<Icon size={20} name="rocket" color={brandColors.Sonar} /> <Icon size={20} name="rocket" color={brandColors.Sonar} />
<FlexColumn> <FlexColumn>
<ItemTitle>Using Sonar</ItemTitle> <ItemTitle>Using Flipper</ItemTitle>
<ItemSubTitle> <ItemSubTitle>
Learn how Sonar can help you debugging your App Learn how Flipper can help you debugging your App
</ItemSubTitle> </ItemSubTitle>
</FlexColumn> </FlexColumn>
</Item> </Item>
<Item <Item
onClick={() => onClick={() =>
shell.openExternal('https://fbsonar.com/docs/create-plugin.html') shell.openExternal(
'https://fbflipper.com/docs/create-plugin.html',
)
}> }>
<Icon size={20} name="magic-wand" color={brandColors.Sonar} /> <Icon size={20} name="magic-wand" color={brandColors.Sonar} />
<FlexColumn> <FlexColumn>
@@ -149,24 +151,24 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
<Item <Item
onClick={() => onClick={() =>
shell.openExternal( shell.openExternal(
'https://fbsonar.com/docs/getting-started.html', 'https://fbflipper.com/docs/getting-started.html',
) )
}> }>
<Icon size={20} name="tools" color={brandColors.Sonar} /> <Icon size={20} name="tools" color={brandColors.Sonar} />
<FlexColumn> <FlexColumn>
<ItemTitle>Add Sonar support to your app</ItemTitle> <ItemTitle>Add Flipper support to your app</ItemTitle>
<ItemSubTitle>Get started with these pointers</ItemSubTitle> <ItemSubTitle>Get started with these pointers</ItemSubTitle>
</FlexColumn> </FlexColumn>
</Item> </Item>
<Item <Item
onClick={() => onClick={() =>
shell.openExternal('https://github.com/facebook/Sonar/issues') shell.openExternal('https://github.com/facebook/flipper/issues')
}> }>
<Icon size={20} name="posts" color={brandColors.Sonar} /> <Icon size={20} name="posts" color={brandColors.Sonar} />
<FlexColumn> <FlexColumn>
<ItemTitle>Contributing and Feedback</ItemTitle> <ItemTitle>Contributing and Feedback</ItemTitle>
<ItemSubTitle> <ItemSubTitle>
Report issues and help us improving Sonar Report issues and help us improving Flipper
</ItemSubTitle> </ItemSubTitle>
</FlexColumn> </FlexColumn>
</Item> </Item>

View File

@@ -6,6 +6,6 @@
*/ */
export default { export default {
updateServer: 'https://www.facebook.com/sonar/public/latest.json', updateServer: 'https://www.facebook.com/fbflipper/public/latest.json',
bugReportButtonVisible: false, bugReportButtonVisible: false,
}; };