Skip to content

Commit

Permalink
Add reacme, license and app icons
Browse files Browse the repository at this point in the history
  • Loading branch information
7kfpun committed Nov 7, 2016
1 parent 2f5f643 commit 8ae2950
Show file tree
Hide file tree
Showing 14 changed files with 154 additions and 24 deletions.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2016 kf

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
52 changes: 52 additions & 0 deletions README.md
@@ -0,0 +1,52 @@
# FinanceMacOSReactNative

[![Dependency Status](https://david-dm.org/7kfpun/FinanceMacOSReactNative.svg)](https://david-dm.org/7kfpun/FinanceMacOSReactNative) [![devDependency Status](https://david-dm.org/7kfpun/FinanceMacOSReactNative/dev-status.svg)](https://david-dm.org/7kfpun/FinanceMacOSReactNative#info=devDependencies)

iOS's Stocks App clone written for MacOS with Touch Bar supported. Data is pulled from [Yahoo Finance](finance.yahoo.com).

## Download

[![Mac App Button](assets/mac-button.png "Mac App Button")](https://github.com/7kfpun/FinanceMacOSReactNative)

## App preview

#### Touch Bar

![Preview](assets/touchbar-preview.png "Touch Bar preview")

#### Application

![Preview](assets/app-preview.png "App preview")

## React and React Native version

* [react](https://github.com/facebook/react): 15.3.2
* [react-native-macos](https://github.com/ptmt/react-native-macos): 0.10.5

## Plugins used

* [mobx](https://github.com/mobxjs/mobx) - Simple, scalable state management.
* [mobx-react](https://github.com/mobxjs/mobx-react) - React bindings for MobX.
* [react-native-simple-store](https://github.com/jasonmerino/react-native-simple-store) - A minimalistic wrapper around React Native's AsyncStorage.
* [react-native-touchbar](https://github.com/ptmt/react-native-touchbar) - TouchBar for react-native-macos.
* [react-router-native](https://github.com/jmurzy/react-router-native) - A routing library for React Native that strives for sensible API parity with react-router 🤖.

## Related project

* [FinanceReactNative](https://github.com/7kfpun/FinanceReactNative) - iOS's Stocks App clone written in React Native for demo purpose (available both iOS and Android).

## Running

#### Clone & install

* Clone this repo `git clone git@github.com:7kfpun/FinanceMacOSReactNative.git`
* `cd FinanceMacOSReactNative`
* run `npm install`

#### Start

* Run `open macos/Finance.xcodeproj`

## License

Released under the [MIT License](http://opensource.org/licenses/MIT).
Binary file added assets/AppStore.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/app-preview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/mac-button.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/touchbar-preview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion macos/Finance.xcodeproj/project.pbxproj
Expand Up @@ -308,7 +308,7 @@
83CBB9F71A601CBA00E9B192 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 610;
LastUpgradeCheck = 0810;
ORGANIZATIONNAME = Facebook;
TargetAttributes = {
00E356ED1AD99517003FC87E = {
Expand Down Expand Up @@ -509,6 +509,7 @@
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Finance.app/Contents/MacOS/Finance";
};
Expand All @@ -527,6 +528,7 @@
"\"$(SRCROOT)/$(TARGET_NAME)\"",
);
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Finance.app/Contents/MacOS/Finance";
};
Expand Down Expand Up @@ -586,15 +588,19 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
Expand Down Expand Up @@ -633,15 +639,18 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
Expand Down
13 changes: 8 additions & 5 deletions macos/Finance.xcodeproj/xcshareddata/xcschemes/Finance.xcscheme
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
LastUpgradeVersion = "0810"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -37,10 +37,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -62,15 +62,18 @@
ReferencedContainer = "container:Finance.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand All @@ -86,10 +89,10 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
57 changes: 41 additions & 16 deletions macos/Finance/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -1,38 +1,63 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"idiom" : "mac",
"size" : "16x16",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "16x16",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
"size" : "128x128",
"idiom" : "mac",
"filename" : "mac.png",
"scale" : "1x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"idiom" : "mac",
"size" : "128x128",
"filename" : "mac@2x.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
"size" : "256x256",
"idiom" : "mac",
"filename" : "mac@2x.png",
"scale" : "1x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"idiom" : "mac",
"size" : "256x256",
"filename" : "mac@3x.png",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
"size" : "512x512",
"idiom" : "mac",
"filename" : "mac@3x.png",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion macos/FinanceTests/Info.plist
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
22 changes: 21 additions & 1 deletion package.json
@@ -1,12 +1,32 @@
{
"name": "Finance",
"version": "0.0.1",
"description": "iOS's Stocks App clone written for MacOS with TouchBar supported. Data is pulled from Yahoo Finance.",
"description": "iOS's Stocks App clone written for MacOS with Touch Bar supported. Data is pulled from Yahoo Finance.",
"private": true,
"scripts": {
"start": "node node_modules/react-native-macos/local-cli/cli.js start",
"postinstall": "find ./node_modules/react-native-macos \\( -name *.h -o -name *.m \\) -print0 | xargs -0 sed -i '' -e 's:<CSSLayout/\\(.*\\)>:\"\\1\":g'"
},
"repository": {
"type": "git",
"url": "git+https://github.com/7kfpun/FinanceMacOSReactNative.git"
},
"keywords": [
"react-native-macos",
"react-native",
"react",
"macos",
"touchbar",
"finance",
"stocks",
"yahoo-finance"
],
"author": "kf <7kfpun@gmail.com> (https://github.com/7kfpun)",
"license": "MIT",
"bugs": {
"url": "https://github.com/7kfpun/FinanceMacOSReactNative/issues"
},
"homepage": "https://github.com/7kfpun/FinanceMacOSReactNative#readme",
"dependencies": {
"mobx": "^2.6.1",
"mobx-react": "^3.5.8",
Expand Down

0 comments on commit 8ae2950

Please sign in to comment.