Latest 0.0.9
Homepage https://github.com/SongtreeSDK/Songtree
License Apache License, Version 2.0
Platforms ios 7.0
Dependencies NXOAuth2Client, FBSDKCoreKit, FBSDKLoginKit, FBSDKShareKit, Google/SignIn
Frameworks AssetsLibrary, MessageUI, Social, SystemConfiguration, CFNetwork, CoreData, CoreMedia, AVFoundation, CoreLocation, AddressBook, CoreMotion, Twitter, MediaPlayer

Songtree SDK

Songtree is an online community for collaborative music-making.
Each time a user adds to a track, another branch gets added to the song’s “tree”, allowing users to create different versions of the same track within the same project.
With Songtree SDK you can simply import into your music app a backing track created from any user and overdub it; then you can upload the mixdown back to Songtree community and watch the song grows.

Setup

1)Include Framework Header

#import <SongtreeSDK/SongtreeController.h>

2)Instantiate the SongtreeController in your main UIViewController

SongtreeController  *controller=[SongtreeController instance];
controller.delegate=yourViewController;
[email protected]"your app name";

3)Implement the mandatory delegate method

-(bool)importAudioFile:songID:fromViewController:
-(NSString *)getParentId
-(void)OnSongUploadRequested:fromView:parameters:

4)Use the SongtreeController method to show the Community, open the Share View and upload your audio file:

-(void)openSongtreeCommunity:
-(void)OpenUploadPage:
-(void)uploadToSongtree:parameters:parentViewController:

External dependencies (Not needed if you use CocoaPods)

Download OAuth2Client framework and add it to your project
https://github.com/nxtbgthng/OAuth2Client

CocoaPods

pod 'SongtreeSDK', '~> 0.0'

LOGIN WITH SOCIAL ACCOUNTS

Download Facebook SDK v4.6.0 and Google+ iOS SDK and add them to your project.(Not needed if you use CocoaPods)

Login with Facebook

To enable FACEBOOK login follow this guide https://developers.facebook.com/docs/ios/getting-started

  • Create a Facebook App
  • Configure Facebook App Settings for iOS
  • Configure Xcode Project
       [SongtreeController instance].facebookClientID = @"YOUR_FAEBOOK_APP_ID”;

Login with Google Plus

To enable GOOGLE Plus Login follow this guide https://developers.google.com/identity/sign-in/ios/sdk/

  • Add to your XCode project Google Plus frameworks and in your main UIViewController set
       [SongtreeController instance].googlePlusClientID = @"YOUR_GOOGLE_APP_ID”;
  • Get a configuration file on Google Developers Console
  • In the Project > Target > Info > URL Types panel, create a new item and paste your REVERSED_CLIENT_ID into the URL Schemes field. You can find your REVERSED_CLIENT_ID in the GoogleService-Info.plist file.
    Also in the Project > Target > Info > URL Types panel, create a new item and type your bundle identifier in the URL Schemes field.

iOS9 App Transport Security

Add to your plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>songtr.ee</key>
        <dict>
            <key>NSIncludesSubdomains</key>
            <true/>
            <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSTemporaryExceptionMinimumTLSVersion</key>
            <string>TLSv1.1</string>
        </dict>
    </dict>
</dict>

Latest podspec

{
    "name": "SongtreeSDK",
    "version": "0.0.9",
    "summary": "Songtree SDK for iOS",
    "description": "Songtree is an online community for collaborative music making",
    "homepage": "https://github.com/SongtreeSDK/Songtree",
    "license": {
        "type": "Apache License, Version 2.0",
        "file": "License"
    },
    "authors": "Songtree",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/SongtreeSDK/Songtree.git",
        "tag": "0.0.9"
    },
    "resources": "SongtreeBundle.bundle",
    "vendored_frameworks": "SongtreeSDK.framework",
    "libraries": "c++",
    "frameworks": [
        "AssetsLibrary",
        "MessageUI",
        "Social",
        "SystemConfiguration",
        "CFNetwork",
        "CoreData",
        "CoreMedia",
        "AVFoundation",
        "CoreLocation",
        "AddressBook",
        "CoreMotion",
        "Twitter",
        "MediaPlayer"
    ],
    "dependencies": {
        "NXOAuth2Client": [
            "~> 1.2.0"
        ],
        "FBSDKCoreKit": [
            "~> 4.6"
        ],
        "FBSDKLoginKit": [
            "~> 4.6"
        ],
        "FBSDKShareKit": [
            "~> 4.6"
        ],
        "Google/SignIn": []
    }
}

Pin It on Pinterest

Share This