Giter Club home page Giter Club logo

yep's Introduction

Yep

A community where geniuses meet

https://soyep.com

Yep: Project Introductory Guide

Please build with the latest CocoaPods v0.39.0 and Xcode 7.2.

Intro

Yep is a nifty and lightweight social networking app, revolving around the theme of "Meeting Genius", enabling users to find experts or other learners of a particular domain.

The project's architecture is easy to understand, following the common software pattern MVC, separating UI, business logic and data model. Now, let's dive into the Yep project!

Model

Realm helps us a lot with data persistence. You can checkout the Realm/Models.swift file to learn how we add, modify, update or delete data in Realm database.

UI(View & ViewController)

We use Storyboard to join different view controllers together. You can take a glance at the Main.storyboard file. Thanks to the Storyboard References feature, we break up storyboards into a set of smaller storyboards. Easy to maintain and handle .storyboard files under source control, right?

At the same time, you should notice that some views are @IBDesignable. You can use Interface Builder, drag the view out and observe changes.

Activity

Without integrating WeChat or Weibo SDK, Yep uses MonkeyKing with the native UIActivityViewController. See Activities/WeChatActivity.swift.

Service

You can find all Services under Services directory. Our services are divided into following parts:

  1. User-related operation service (YepService.swift): Sign-in, phone verification
  2. User operation service (YepServiceSync.swift): Skills, messages
  3. Network requests service (YepNetworking.swift): Network requests, JSON parsing/serialization
  4. Data download service (YepDownloader.swift): Audio, video downloading
  5. Feeds (FayeService.swift)
  6. Cloud storage service (YepStorageService.swift)
  7. Audio and video service (YepAudioService.swift): Based on AVFoundation and AudioToolbox
  8. Location service (YepLocationService.swift)
  9. Social info service (SocialWorkService.swift): Get user's GitHub, Dribbble and Instagram info
  10. Open Graph Service (OpenGraphService.swift): Get iBooks, App and Apple Music info

Performance

In order to improve FPS rate, we do image caching (Caches folder).

Wants to learn more? View this slide.

Development

If you like to join us developing Yep, fork this repo and use git flow on develop branch to create a new branch for your developing. When you finish, send a pull request.

Please ensure each commit is minimized for code review.

Please stop using simulator's waterfall image as your avatar.

You can track our progress at Trello.

License

MIT

yep's People

Contributors

asceticmonk avatar cee avatar chaiyixiao avatar coolzilj avatar joshlewis avatar kevinzhow avatar mariotaku avatar nixzhu avatar prayagverma avatar radarhere avatar rayps avatar readmecritic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yep's Issues

English Readme

Hi,

With all my respect and appreciation, is it possible you can translate the readme to English?

Cheers!

SRWebSocket.h file not found

最新的 develop 分支的代码也一样,出现这个错误,不知道何解?

`/xxx/Yep/Yep/Yep-Bridging-Header.h:7:9: note: in file included from /xxx/Yep/Yep/Yep-Bridging-Header.h:7:

import "MZFayeClient.h"

/xxx/Yep/Yep/Vendors/MZFayeClient/MZFayeClient.h:27:9: error: 'SocketRocket/SRWebSocket.h' file not found

import <SocketRocket/SRWebSocket.h>

:0: error: failed to import bridging header '/xxx/Yep/Yep/Yep-Bridging-Header.h'`

Failed to code sign "Yep".

终端提示,当前是develop分支
git branch -v
*develop 96c111c alertCanNotAccessCameraRoll for check failed of UIImagePickerController.isSourceTypeAvailable(.PhotoLibrary)
master 5345257 [Close #25] Translate Readme into English

Xcode提示:
Failed to code sign "Yep".

None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.associated-domains, com.apple.security.application-groups.

Code Sign error

Code Sign error: Automatic provisioning profile selection unavailable: A bundle identifier is required for automatic provisioning profile selection. Either enter a bundle identifier in the Info.plist, or select a provisioning profile to use in the build settings.

编辑个人资料成功后返回不刷新

修改个人主页的昵称,返回后页面顶部的title昵称刷新了,但中间的昵称不刷新,要手动杀掉应用再开启才刷新,其他个人资料没问题。

No such module 'MZFayeClient'

I've just downloaded this project then pod install. I didn't do anything but just build and run, however, it shows an error:

In FayeService.swift: import MZFayeClient cannot find moudle MZFayeClient.
MZFayeClient is actually added to project under the folder Vendor, and Yep-Bridging-Header.h is set correctly.

In project setting, Objective-C Bridging Header is set to Yep/Yep-Bridging-Header.h which I think is correct.

Yep-Bridging-Header.h

#import <UIKit/UIKit.h>
#import "JPUSHService.h"
#import "MZFayeClient.h"

Everything seems fine but just can't build. The compiler cannot find MZFayeClient, any solution?

Thanks.

提示 APService.h 没找到

提示 APService.h 没找到

已更新如下依赖

Using 1PasswordExtension (1.7)
Using APAddressBook (0.2.3)
Using Alamofire (3.1.5)
Using Base64 (1.0.1)
Using Crashlytics (3.6.0)
Using DeviceGuru (1.3.3)
Using FXBlurView (1.6.4)
Using Fabric (1.6.4)
Using JPush-iOS-SDK (2.1.0)
Using Kanna (1.0.3)
Using KeyboardMan (0.5.2)
Using Kingfisher (2.0.0)
Using MonkeyKing (0.0.2)
Using Navi (0.3.9)
Using Proposer (0.7.1)
Using Realm (0.97.0)
Using RealmSwift (0.97.0)
Using Ruler (0.6)
Using SocketRocket (0.4.2)
Using TPKeyboardAvoiding (1.2.11)
Using pop (1.0.8)

pod update failed

Hi,when i download Yep project. running "pod update",some error shown,
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.96.2
Downloading core failed:
curl: (56) SSLRead() return error -9806

hum.Could you tell me how to fix it ? Thanks:)

运行时报错,求解决

1.-weak_library and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
2.error: cannot parse the debug map for "/Users/apple/Library/Developer/Xcode/DerivedData/Yep-gouotshhrmygmlfbwvfancwfrsyn/Build/Products/Debug-iphoneos/Yep.app/Yep": No such file or directory

Downloading core failed.

执行Pod install 后,Installing Realm 出问题了

.......
Installing Realm (0.97.0)
[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.95.5
Downloading core failed. Please try again once you have an Internet connection.

error about optional value(NSIndexPath) in file:ConversationLayout.swift

File location: Yep -> viewControllers -> conversation -> conversationLayout.swift
Row 30 of ConversationLayout.swift:

if let indexPath = updateItem.indexPathAfterUpdate

error description: Initializer for conditional binding must have Optional type, not 'NSIndexPath'.
Below is the detail, tks.


2016-02-09 3 35 01

Error installing Appsee

[!] Error installing Appsee
[!] /usr/bin/curl -f -L -o /var/folders/7d/jky3kjhx20z4c4h33x7ts_1w0000gn/T/d20160202-63845-1e47b9h/file.zip http://www.appsee.com/sdk/appsee_ios_2.1.5.zip --create-dirs

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 170 100 170 0 0 39 0 0:00:04 0:00:04 --:--:-- 40
0 3718k 0 15651 0 0 50 0 21:09:22 0:05:08 21:04:14 0curl: (56) SSLRead() return error -9806

找了这个http://stackoverflow.com/questions/30385939/git-clone-fails-with-sslread-error-on-os-x-yosemite 没解决

验证码输入 不能跳转

Reason: Other, Error: Optional("Error Domain=NSURLErrorDomain Code=-1002 "不支持的 URL" UserInfo={NSUnderlyingError=0x16a73060 {Error Domain=kCFErrorDomainCFNetwork Code=-1002 "(null)"}, NSLocalizedDescription=不支持的 URL}")
Resource(Method: POST, path: /v1/sms_verification_codes, headers: ["Content-Type": "application/json", "Accept-Language": "zh-US"], requestBody: ["mobile": -----------, "phone_code": 86, "method": sms])

curl -i -X POST -H "Content-Type: application/json" -H "Accept-Language: zh-US" -d "{"mobile":"13682565255","phone_code":"86","method":"sms"}"

Error installing RealmSwift

-> Installing RealmSwift (0.98.1)

Git download
Git download
$ /usr/bin/git clone https://github.com/realm/realm-cocoa.git /var/folders/jk/4v90fkh90b75wtc9sz_p3f4c0000gn/T/d20160217-4825-1oaiiya --single-branch --depth 1 --branch
v0.98.1
Cloning into '/var/folders/jk/4v90fkh90b75wtc9sz_p3f4c0000gn/T/d20160217-4825-1oaiiya'...
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

[!] Error installing RealmSwift
[!] /usr/bin/git clone https://github.com/realm/realm-cocoa.git /var/folders/jk/4v90fkh90b75wtc9sz_p3f4c0000gn/T/d20160217-4825-1oaiiya --single-branch --depth 1 --branch v0.98.1

Cloning into '/var/folders/jk/4v90fkh90b75wtc9sz_p3f4c0000gn/T/d20160217-4825-1oaiiya'...
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

Support CocoaPods 1.0?

I got this error:
screen shot 2016-02-03 at 1 43 05 pm

In develop branch, pulled last code.

I'm using CocoaPods 1.0.0.beta.2.

Installing Realm failed

When i have cloned the repository,it remind me that i need update my cocoapods,so i open my terminal,execute pod update ,everything goes normal,but when installing Realm,fall failed,tips is
“[!] /bin/bash -c
set -e
sh build.sh cocoapods-setup

core is not a symlink. Deleting...
Downloading dependency: core 0.96.1
Downloading core failed:
curl: (56) SSLRead() return error -9806”
As the post realm/realm-swift#2713 describe,it due to china mainland GFW,so i tried VPN and prebulid version,but unfortunate,it take no effect.

编译的时候的错误

image

Yep-develop/Yep/Services/FayeService.swift:84:39: Missing argument for parameter 'success' in call

编译报错 0.0

/Yep/Services/FayeService.swift:10:8: No such module 'MZFayeClient'

Thx周大大

非常感谢,开源的魄力让我震惊,已经成功运行,虽然现在刚开始学Swift,OC一点不懂,能Run起来非常开心,会从这个Project中学到不少东西的,我感觉

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.