├── MXMLyricsActionDemo ├── Images.xcassets │ ├── AppIcon.appiconset │ │ ├── 29pt_@1x.png │ │ ├── 29pt_@2x-1.png │ │ ├── 29pt_@3x.png │ │ ├── 40pt_@1x.png │ │ ├── 40pt_@2x-1.png │ │ ├── 40pt_@3x.png │ │ ├── 60pt_@3x-1.png │ │ ├── 60pt_@3x.png │ │ ├── 76pt_@1x.png │ │ ├── 76pt_@2x.png │ │ ├── 29pt_@2x-1-1.png │ │ ├── 40pt_@2x-1-1.png │ │ └── Contents.json │ ├── LaunchImage.launchimage │ │ ├── iphone640x960.png │ │ ├── iphone_640x1136.png │ │ └── Contents.json │ ├── placeholder_album.imageset │ │ ├── placeholder_album.png │ │ └── Contents.json │ ├── player_next_button.imageset │ │ ├── player_next_button.png │ │ ├── player_next_button@2x.png │ │ └── Contents.json │ ├── player_play_button.imageset │ │ ├── player_play_button.png │ │ ├── player_play_button@2x.png │ │ └── Contents.json │ ├── player_prev_button.imageset │ │ ├── player_prev_button.png │ │ ├── player_prev_button@2x.png │ │ └── Contents.json │ ├── player_pause_button.imageset │ │ ├── player_pause_button.png │ │ ├── player_pause_button@2x.png │ │ └── Contents.json │ ├── player_next_button_pressed.imageset │ │ ├── player_next_button_pressed.png │ │ ├── player_next_button_pressed@2x.png │ │ └── Contents.json │ ├── player_pause_button_pressed.imageset │ │ ├── player_pause_button_pressed.png │ │ ├── player_pause_button_pressed@2x.png │ │ └── Contents.json │ ├── player_play_button_pressed.imageset │ │ ├── player_play_button_pressed.png │ │ ├── player_play_button_pressed@2x.png │ │ └── Contents.json │ └── player_prev_button_pressed.imageset │ │ ├── player_prev_button_pressed.png │ │ ├── player_prev_button_pressed@2x.png │ │ └── Contents.json ├── main.m ├── AppDelegate.h ├── ViewController.h ├── Base.lproj │ ├── Launch Screen.xib │ └── MainView.xib ├── Info.plist ├── AppDelegate.m └── ViewController.m ├── MXMLyricsActionDemo.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── .gitignore ├── MusixmatchLyricsAction ├── MusixmatchLyricsAction.h └── Info.plist ├── MXMLyricsActionDemoTests ├── Info.plist └── MXMLyricsActionDemoTests.m ├── MXMLyricsAction ├── MXMLyricsAction.h └── MXMLyricsAction.m ├── README.md └── LICENSE /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@1x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@2x-1.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@3x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@1x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@2x-1.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@3x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/60pt_@3x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/60pt_@3x-1.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/60pt_@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/60pt_@3x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/76pt_@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/76pt_@1x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/76pt_@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/76pt_@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@2x-1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/29pt_@2x-1-1.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@2x-1-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/40pt_@2x-1-1.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/LaunchImage.launchimage/iphone640x960.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/LaunchImage.launchimage/iphone640x960.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/LaunchImage.launchimage/iphone_640x1136.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/LaunchImage.launchimage/iphone_640x1136.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/placeholder_album.imageset/placeholder_album.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/placeholder_album.imageset/placeholder_album.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_next_button.imageset/player_next_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_next_button.imageset/player_next_button.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_play_button.imageset/player_play_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_play_button.imageset/player_play_button.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_prev_button.imageset/player_prev_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_prev_button.imageset/player_prev_button.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_next_button.imageset/player_next_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_next_button.imageset/player_next_button@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_pause_button.imageset/player_pause_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_pause_button.imageset/player_pause_button.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_play_button.imageset/player_play_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_play_button.imageset/player_play_button@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_prev_button.imageset/player_prev_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_prev_button.imageset/player_prev_button@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_pause_button.imageset/player_pause_button@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_pause_button.imageset/player_pause_button@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_next_button_pressed.imageset/player_next_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_next_button_pressed.imageset/player_next_button_pressed.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_pause_button_pressed.imageset/player_pause_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_pause_button_pressed.imageset/player_pause_button_pressed.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_play_button_pressed.imageset/player_play_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_play_button_pressed.imageset/player_play_button_pressed.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_prev_button_pressed.imageset/player_prev_button_pressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_prev_button_pressed.imageset/player_prev_button_pressed.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_next_button_pressed.imageset/player_next_button_pressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_next_button_pressed.imageset/player_next_button_pressed@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_play_button_pressed.imageset/player_play_button_pressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_play_button_pressed.imageset/player_play_button_pressed@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_prev_button_pressed.imageset/player_prev_button_pressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_prev_button_pressed.imageset/player_prev_button_pressed@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_pause_button_pressed.imageset/player_pause_button_pressed@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/musixmatch/ios-musixmatch-app-extension/HEAD/MXMLyricsActionDemo/Images.xcassets/player_pause_button_pressed.imageset/player_pause_button_pressed@2x.png -------------------------------------------------------------------------------- /MXMLyricsActionDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // MXMLyricsActionDemo 4 | // 5 | // Created by Martino Bonfiglioli on 29/10/14. 6 | // Copyright (c) 2014 musixmatch. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/placeholder_album.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "placeholder_album.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Musixmatch iOS Lyrics Extention Demo 4 | * 5 | * About: https://developer.musixmatch.com/documentation/ios-lyrics-extension 6 | * Github: https://github.com/Musixmatchdev/musixmatch-app-extension 7 | * 8 | * Copyright (c) 2014-2015 musixmatch. All rights reserved. 9 | */ 10 | 11 | #import 12 | 13 | @interface AppDelegate : UIResponder 14 | 15 | @property (strong, nonatomic) UIWindow *window; 16 | 17 | 18 | @end 19 | 20 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_next_button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_next_button.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_next_button@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_play_button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_play_button.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_play_button@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_prev_button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_prev_button.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_prev_button@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_pause_button.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_pause_button.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_pause_button@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_next_button_pressed.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_next_button_pressed.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_next_button_pressed@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_pause_button_pressed.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_pause_button_pressed.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_pause_button_pressed@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_play_button_pressed.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_play_button_pressed.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_play_button_pressed@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/player_prev_button_pressed.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x", 6 | "filename" : "player_prev_button_pressed.png" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x", 11 | "filename" : "player_prev_button_pressed@2x.png" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | # Pods/ 27 | -------------------------------------------------------------------------------- /MusixmatchLyricsAction/MusixmatchLyricsAction.h: -------------------------------------------------------------------------------- 1 | // 2 | // MusixmatchLyricsAction.h 3 | // MusixmatchLyricsAction 4 | // 5 | // Created by Loreto Parisi on 08/06/16. 6 | // Copyright © 2016 musixmatch. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for MusixmatchLyricsAction. 12 | FOUNDATION_EXPORT double MusixmatchLyricsActionVersionNumber; 13 | 14 | //! Project version string for MusixmatchLyricsAction. 15 | FOUNDATION_EXPORT const unsigned char MusixmatchLyricsActionVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | #import 20 | -------------------------------------------------------------------------------- /MXMLyricsActionDemoTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | musixmatch.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /MusixmatchLyricsAction/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Musixmatch iOS Lyrics Extention Demo 4 | * 5 | * About: https://developer.musixmatch.com/documentation/ios-lyrics-extension 6 | * Github: https://github.com/Musixmatchdev/musixmatch-app-extension 7 | * 8 | * Copyright (c) 2014-2015 musixmatch. All rights reserved. 9 | */ 10 | 11 | #import 12 | #import 13 | 14 | @interface ViewController : UIViewController { 15 | 16 | IBOutlet UIImageView *artWork; 17 | IBOutlet UILabel *titleTrack; 18 | IBOutlet UILabel *artist; 19 | IBOutlet UILabel *album; 20 | IBOutlet UILabel *style; 21 | IBOutlet UIButton *playPauseButton; 22 | IBOutlet UIButton *nextTrackButton; 23 | IBOutlet UIButton *prevTrackButton; 24 | IBOutlet UISlider *trackProgress; 25 | IBOutlet UILabel *trackElapsedTime; 26 | IBOutlet UILabel *trackRemainingTime; 27 | 28 | } 29 | 30 | @end 31 | 32 | -------------------------------------------------------------------------------- /MXMLyricsActionDemoTests/MXMLyricsActionDemoTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // MXMLyricsActionDemoTests.m 3 | // MXMLyricsActionDemoTests 4 | // 5 | // Created by Martino Bonfiglioli on 29/10/14. 6 | // Copyright (c) 2014 musixmatch. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface MXMLyricsActionDemoTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation MXMLyricsActionDemoTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Base.lproj/Launch Screen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "filename" : "iphone640x960.png", 9 | "scale" : "2x" 10 | }, 11 | { 12 | "extent" : "full-screen", 13 | "idiom" : "iphone", 14 | "subtype" : "retina4", 15 | "filename" : "iphone_640x1136.png", 16 | "minimum-system-version" : "7.0", 17 | "orientation" : "portrait", 18 | "scale" : "2x" 19 | }, 20 | { 21 | "orientation" : "portrait", 22 | "idiom" : "ipad", 23 | "extent" : "full-screen", 24 | "minimum-system-version" : "7.0", 25 | "scale" : "1x" 26 | }, 27 | { 28 | "orientation" : "landscape", 29 | "idiom" : "ipad", 30 | "extent" : "full-screen", 31 | "minimum-system-version" : "7.0", 32 | "scale" : "1x" 33 | }, 34 | { 35 | "orientation" : "portrait", 36 | "idiom" : "ipad", 37 | "extent" : "full-screen", 38 | "minimum-system-version" : "7.0", 39 | "scale" : "2x" 40 | }, 41 | { 42 | "orientation" : "landscape", 43 | "idiom" : "ipad", 44 | "extent" : "full-screen", 45 | "minimum-system-version" : "7.0", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /MXMLyricsAction/MXMLyricsAction.h: -------------------------------------------------------------------------------- 1 | // 2 | // MusixmatchExtension.h 3 | // MXMLyricsActionDemo 4 | // 5 | // Created by Martino Bonfiglioli on 16/10/14. 6 | // Copyright (c) 2014 Musixmatch. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface MXMLyricsAction : NSObject 13 | 14 | /** 15 | * You can chose the way to bring user to download Musixmatch from the AppStore 16 | * 17 | * 1. Open native AppStore view in your app just import StoreKit Framework 18 | * 2. Open AppStore app with an Open URL 19 | * 20 | * The Extension open navite AppStore view by default 21 | **/ 22 | @property (nonatomic, assign) BOOL nativeAppStoreView; // Default YES 23 | 24 | /** 25 | * Before to send the users on the Musixmatch AppStore page 26 | * 27 | * An UIAlertView explain why this is needed 28 | * 29 | * This UIAlertView is enabled by default 30 | **/ 31 | @property (nonatomic, assign) BOOL showAlertBeforeAppStore; // Default YES 32 | 33 | 34 | + (MXMLyricsAction*)sharedExtension; 35 | 36 | 37 | - (BOOL)isSystemAppExtensionAPIAvailable; 38 | 39 | 40 | - (void)findLyricsForSongWithTitle:(NSString*)title 41 | artist:(NSString*)artist 42 | album:(NSString*)album 43 | artWork:(UIImage*)image 44 | currentProgress:(NSTimeInterval)progress 45 | trackDuration:(NSTimeInterval)duration 46 | forViewController:(UIViewController *)viewController 47 | sender:(id)sender 48 | competionHandler:(void (^)(NSError *error))completion; 49 | 50 | @end 51 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(BUILDVERSION) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(BUILDNUMBER) 23 | LSApplicationCategoryType 24 | 25 | LSApplicationQueriesSchemes 26 | 27 | mxm-ext 28 | 29 | LSRequiresIPhoneOS 30 | 31 | UILaunchStoryboardName 32 | Launch Screen 33 | UIRequiredDeviceCapabilities 34 | 35 | armv7 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | UISupportedInterfaceOrientations~ipad 44 | 45 | UIInterfaceOrientationPortrait 46 | UIInterfaceOrientationPortraitUpsideDown 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | NSAppleMusicUsageDescription 51 | Allow access to Media Library 52 | UIViewControllerBasedStatusBarAppearance 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "size" : "29x29", 15 | "idiom" : "iphone", 16 | "filename" : "29pt_@2x-1-1.png", 17 | "scale" : "2x" 18 | }, 19 | { 20 | "size" : "29x29", 21 | "idiom" : "iphone", 22 | "filename" : "29pt_@3x.png", 23 | "scale" : "3x" 24 | }, 25 | { 26 | "size" : "40x40", 27 | "idiom" : "iphone", 28 | "filename" : "40pt_@2x-1-1.png", 29 | "scale" : "2x" 30 | }, 31 | { 32 | "size" : "40x40", 33 | "idiom" : "iphone", 34 | "filename" : "40pt_@3x.png", 35 | "scale" : "3x" 36 | }, 37 | { 38 | "size" : "60x60", 39 | "idiom" : "iphone", 40 | "filename" : "60pt_@3x-1.png", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "size" : "60x60", 45 | "idiom" : "iphone", 46 | "filename" : "60pt_@3x.png", 47 | "scale" : "3x" 48 | }, 49 | { 50 | "idiom" : "ipad", 51 | "size" : "20x20", 52 | "scale" : "1x" 53 | }, 54 | { 55 | "idiom" : "ipad", 56 | "size" : "20x20", 57 | "scale" : "2x" 58 | }, 59 | { 60 | "size" : "29x29", 61 | "idiom" : "ipad", 62 | "filename" : "29pt_@1x.png", 63 | "scale" : "1x" 64 | }, 65 | { 66 | "size" : "29x29", 67 | "idiom" : "ipad", 68 | "filename" : "29pt_@2x-1.png", 69 | "scale" : "2x" 70 | }, 71 | { 72 | "size" : "40x40", 73 | "idiom" : "ipad", 74 | "filename" : "40pt_@1x.png", 75 | "scale" : "1x" 76 | }, 77 | { 78 | "size" : "40x40", 79 | "idiom" : "ipad", 80 | "filename" : "40pt_@2x-1.png", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "size" : "76x76", 85 | "idiom" : "ipad", 86 | "filename" : "76pt_@1x.png", 87 | "scale" : "1x" 88 | }, 89 | { 90 | "size" : "76x76", 91 | "idiom" : "ipad", 92 | "filename" : "76pt_@2x.png", 93 | "scale" : "2x" 94 | }, 95 | { 96 | "idiom" : "ipad", 97 | "size" : "83.5x83.5", 98 | "scale" : "2x" 99 | } 100 | ], 101 | "info" : { 102 | "version" : 1, 103 | "author" : "xcode" 104 | } 105 | } -------------------------------------------------------------------------------- /MXMLyricsActionDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Musixmatch iOS Lyrics Extention Demo 4 | * 5 | * About: https://developer.musixmatch.com/documentation/ios-lyrics-extension 6 | * Github: https://github.com/Musixmatchdev/musixmatch-app-extension 7 | * 8 | * Copyright (c) 2014-2015 musixmatch. All rights reserved. 9 | */ 10 | 11 | #import "AppDelegate.h" 12 | #import "ViewController.h" 13 | 14 | @interface AppDelegate () 15 | 16 | @end 17 | 18 | @implementation AppDelegate 19 | 20 | 21 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 22 | // Override point for customization after application launch. 23 | 24 | ViewController *mainController = [[ViewController alloc] initWithNibName:@"MainView" bundle:nil]; 25 | 26 | self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 27 | self.window.rootViewController = mainController; 28 | [self.window setBackgroundColor:[UIColor whiteColor]]; 29 | [self.window makeKeyAndVisible]; 30 | 31 | return YES; 32 | } 33 | 34 | - (void)applicationWillResignActive:(UIApplication *)application { 35 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 36 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 37 | } 38 | 39 | - (void)applicationDidEnterBackground:(UIApplication *)application { 40 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 41 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 42 | } 43 | 44 | - (void)applicationWillEnterForeground:(UIApplication *)application { 45 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 46 | } 47 | 48 | - (void)applicationDidBecomeActive:(UIApplication *)application { 49 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 50 | } 51 | 52 | - (void)applicationWillTerminate:(UIApplication *)application { 53 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 54 | } 55 | 56 | @end 57 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Musixmatch iOS Lyrics Extension 2 | 3 | With just a few lines of code your app can access the world's largest lyrics catalog to provide a better experience to your users. 4 | 5 | With the Musixmatch extension you can: 6 | 7 | 1. See the synced lyrics for the now playing song in your app 8 | 2. Read the lyrics for any song directly from your app. 9 | 10 | Please refer to the official documentation on [Musixmatch.com](https://developer.musixmatch.com/documentation/ios-lyrics-extension) 11 | 12 | ## App Extension in Action 13 | 14 | 1. Open the Sample Player App 15 | 16 | 17 | 18 | 2. Tap the LYRICS button 19 | 20 | 21 | 22 | 3. Get the Lyrics 23 | 24 | 25 | 26 | ## Just Give Me the Code 27 | 28 | Integrating the Musixmatch extension is very easy, just include the following files in your project. 29 | 30 | * [MXMLyricsAction.h](https://github.com/Musixmatchdev/musixmatch-app-extension/blob/master/MXMLyricsAction/MXMLyricsAction.h) 31 | * [MXMLyricsAction.m](https://github.com/Musixmatchdev/musixmatch-app-extension/blob/master/MXMLyricsAction/MXMLyricsAction.m) 32 | 33 | ## Running the Demo App 34 | 35 | Adding Musixmatch support to your app is easy. To demonstrate how it works, we have demo sample app for iOS that showcase all of the Musixmatch features. 36 | 37 | 38 | ### Step 1: Download the Source Code and Demo Apps 39 | 40 | To get started, download the Musixmatch Extension project from https://github.com/Musixmatchdev/musixmatch-app-extension/archive/master.zip, or [clone it from GitHub](https://github.com/Musixmatchdev/musixmatch-app-extension). 41 | 42 | Inside the downloaded folder, you'll find the resources needed to integrate with Musixmatch. 43 | 44 | ### Step 2: Chose a song 45 | 46 | Tap on 'Add Music' button to reproduce a song 47 | 48 | ### Step 3: Open Musixmatch Extension 49 | 50 | Tap on 'Lyrics' button and choose Musixmatch (the fist time you ave to enable if from 'More'). 51 | 52 | ## Integrating Musixmatch With Your App 53 | 54 | You can open Musixmatch whenever you want to show lyrics on time for your nowplaying track. 55 | Just give to Musixmatch extension these datas: 56 | 57 | 1. Title 58 | 2. Artist 59 | 3. Album 60 | 4. Artwork 61 | 5. Current seek time 62 | 6. Track duration 63 | 64 | You can open Musixmatch Extension from your app without any specific UI, it could be standard "Lyircs button" or if you need a specific Musixmatch logo contact us, infos are below. 65 | 66 | ### Add Musixmatch Files to Your Project 67 | 68 | Add the `MXMLyricsAction.h` and `MXMLyricsAction.m` to your project and import `MXMLyricsAction.h` in your view contoller that implements the action for the lyrics button. 69 | 70 | ### How to Open Musixmatch Extension 71 | 72 | Add lyrics button on your view, you can enable it by check `isSystemAppExtensionAPIAvailable`, 73 | Musixmatch Extension is available for every iOS8 devices. 74 | 75 | Note that if users doesn't have Musixmatch installed or old version installed without **Lyrics Extension** 76 | the Extension open the AppStore on Musixmatch app page to download/update. 77 | 78 | Next we need to wire up the action for this button to this method in your UIViewController: 79 | 80 | ```objective-c 81 | - (IBAction)lyrics:(id)sender { 82 | 83 | MPMediaItem *item = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem]; 84 | 85 | if (item) { 86 | [[MXMLyricsAction sharedExtension] findLyricsForSongWithTitle:item.title 87 | artist:item.artist 88 | album:item.albumTitle 89 | artWork:[item.artwork imageWithSize:artWork.frame.size] 90 | currentProgress:[[MPMusicPlayerController iPodMusicPlayer] currentPlaybackTime] 91 | trackDuration:item.playbackDuration 92 | forViewController:self 93 | sender:sender 94 | competionHandler:^(NSError *error) { 95 | 96 | }]; 97 | } 98 | 99 | } 100 | 101 | ``` 102 | 103 | Data needed in deep: 104 | 105 | 1. Provide a `NSString` for song title. 106 | 2. Provide a `NSString` for song artist name. 107 | 3. Pass a `NSString` for song album name. 108 | 4. Pass an `UIImage` for the view's background (artwork). 109 | 5. Provide a `NSTimeInterval` for the current seek time. 110 | 6. Provide a `NSTimeInterval` for the song duration. 111 | 7. Provide a `UIViewController` from the Extesion can appear. 112 | 8. Provide a completion block that will be called when the user finishes their selection. 113 | 114 | ### Customize Extension 115 | 116 | As the Extension can't change the **Status Bar**, there are two possible view styles 117 | 118 | 1. StatusBar White 119 | 2. StatusBar Black 120 | 121 | You can try the two different style by change the 'UISwitch' in the Demo App. 122 | Here an example: 123 | 124 | **StatusBar White** 125 | 126 | StatusBar White 127 | 128 | **StatusBar Black** 129 | 130 | StatusBar Black 131 | 132 | ## References 133 | 134 | If you open up MXMLyricsAction.m and start poking around, you'll be interested in these references. 135 | 136 | * [Apple Extension Guide](https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/index.html#//apple_ref/doc/uid/TP40014214) 137 | * [NSItemProvider](https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSItemProvider_Class/index.html#//apple_ref/doc/uid/TP40014351), [NSExtensionItem](https://developer.apple.com/library/prerelease/ios/documentation/Foundation/Reference/NSExtensionItem_Class/index.html#//apple_ref/doc/uid/TP40014375), and [UIActivityViewController](https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIActivityViewController_Class/index.html#//apple_ref/doc/uid/TP40011976) class references. 138 | 139 | ## Contact Us 140 | 141 | You can reach us at ios@musixmatch.com, or if you prefer, [@musixmatch_api](https://twitter.com/musixmatch_api) on Twitter. 142 | -------------------------------------------------------------------------------- /MXMLyricsAction/MXMLyricsAction.m: -------------------------------------------------------------------------------- 1 | // 2 | // MusixmatchExtension.m 3 | // MXMLyricsActionDemo 4 | // 5 | // Created by Martino Bonfiglioli on 16/10/14. 6 | // Copyright (c) 2014 Musixmatch. All rights reserved. 7 | // 8 | 9 | #import "MXMLyricsAction.h" 10 | #import 11 | 12 | // Empty string check macro 13 | #ifndef StringOrEmpty 14 | #define StringOrEmpty(A) ({ __typeof__(A) __a = (A); __a ? __a : @""; }) 15 | #endif 16 | 17 | // Available App Extension Actions 18 | NSString *const kUTTypeAppExtensionFindSongLyric = @"org.appextension.find-song-lyric"; 19 | 20 | // Song Dictionary keys 21 | NSString *const MusixmatchExtensionTitle = @"title"; 22 | NSString *const MusixmatchExtensionArtist = @"artist"; 23 | NSString *const MusixmatchExtensionAlbum = @"album"; 24 | NSString *const MusixmatchExtensionCoverArt = @"coverArt"; 25 | NSString *const MusixmatchExtensionDuration = @"duration"; 26 | NSString *const MusixmatchExtensionProgress = @"progress"; 27 | NSString *const MusixmatchExtensionStartDate = @"startDate"; 28 | 29 | // View Style 30 | NSString *const MusixmatchExtensionStatusBarStyle = @"statusBar"; 31 | 32 | // Additional Infos 33 | NSString *const MusixmatchExtensionHostBundleID = @"hostBundle"; 34 | 35 | NSString *musixmatchAppStoreURL = @"itms-apps://itunes.apple.com/app/id448278467"; 36 | NSString *musixmatchAppStoreAppID = @"448278467"; 37 | 38 | @interface MXMLyricsAction () < SKStoreProductViewControllerDelegate, UIAlertViewDelegate > 39 | @property (nonatomic, strong) UIViewController *hostViewController; 40 | @end 41 | 42 | @implementation MXMLyricsAction 43 | @synthesize hostViewController; 44 | @synthesize nativeAppStoreView; 45 | @synthesize showAlertBeforeAppStore; 46 | 47 | #pragma mark - Singleton 48 | 49 | + (MXMLyricsAction*)sharedExtension { 50 | static dispatch_once_t onceToken; 51 | static MXMLyricsAction *__sharedExtension; 52 | 53 | dispatch_once(&onceToken, ^{ 54 | __sharedExtension = [MXMLyricsAction new]; 55 | }); 56 | 57 | return __sharedExtension; 58 | } 59 | 60 | #pragma mark - Init 61 | 62 | - (id)init { 63 | self = [super init]; 64 | if (self) { 65 | nativeAppStoreView = YES; 66 | showAlertBeforeAppStore = YES; 67 | } 68 | return self; 69 | } 70 | 71 | #pragma mark - Util 72 | 73 | - (BOOL)isSystemAppExtensionAPIAvailable { 74 | 75 | #ifdef __IPHONE_8_0 76 | return NSClassFromString(@"NSExtensionItem") != nil; 77 | #else 78 | return NO; 79 | #endif 80 | 81 | } 82 | 83 | - (BOOL)isMusixmatchExtensionAvailable { 84 | 85 | #ifdef __IPHONE_8_0 86 | return [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"mxm-ext:"]]; 87 | #else 88 | return NO; 89 | #endif 90 | 91 | } 92 | 93 | - (void)openAppStore { 94 | if (nativeAppStoreView && self.hostViewController) { 95 | [self showAppStoreForMusixmatchFromViewController:self.hostViewController]; 96 | }else { 97 | [self openStoreWithOpenURL]; 98 | } 99 | } 100 | 101 | - (void)openStoreWithOpenURL { 102 | 103 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:musixmatchAppStoreURL]]; 104 | 105 | } 106 | 107 | - (void)showAppStoreForMusixmatchFromViewController:(UIViewController*)controller { 108 | 109 | //Use the in-app StoreKit view if available (iOS 6) and imported. This works in the simulator. 110 | if (NSStringFromClass([SKStoreProductViewController class]) != nil) { 111 | 112 | SKStoreProductViewController *storeViewController = [[SKStoreProductViewController alloc] init]; 113 | NSNumber *appId = [NSNumber numberWithInteger:musixmatchAppStoreAppID.integerValue]; 114 | [storeViewController loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier:appId} completionBlock:nil]; 115 | storeViewController.delegate = self; 116 | 117 | [controller presentViewController:storeViewController animated:YES completion:nil]; 118 | 119 | } 120 | } 121 | 122 | #pragma mark - Lyrics action 123 | 124 | - (void)findLyricsForSongWithTitle:(NSString*)title 125 | artist:(NSString*)artist 126 | album:(NSString*)album 127 | artWork:(UIImage*)image 128 | currentProgress:(NSTimeInterval)progress 129 | trackDuration:(NSTimeInterval)duration 130 | forViewController:(UIViewController *)viewController 131 | sender:(id)sender 132 | competionHandler:(void (^)(NSError *error))completion { 133 | 134 | NSMutableDictionary *dict = [NSMutableDictionary new]; 135 | 136 | [dict setObject:StringOrEmpty(title) 137 | forKey:MusixmatchExtensionTitle]; 138 | [dict setObject:StringOrEmpty(artist) 139 | forKey:MusixmatchExtensionArtist]; 140 | [dict setObject:StringOrEmpty(album) 141 | forKey:MusixmatchExtensionAlbum]; 142 | if (image) { 143 | [dict setObject:image 144 | forKey:MusixmatchExtensionCoverArt]; 145 | } 146 | [dict setObject:[NSString stringWithFormat:@"%f", progress] 147 | forKey:MusixmatchExtensionProgress]; 148 | [dict setObject:[NSString stringWithFormat:@"%f", duration] 149 | forKey:MusixmatchExtensionDuration]; 150 | [dict setObject:[NSDate date] 151 | forKey:MusixmatchExtensionStartDate]; 152 | [dict setObject:[NSNumber numberWithInt:[[UIApplication sharedApplication] statusBarStyle]] 153 | forKey:MusixmatchExtensionStatusBarStyle]; 154 | [dict setObject:[[NSBundle mainBundle] bundleIdentifier] 155 | forKey:MusixmatchExtensionHostBundleID]; 156 | 157 | [self findLyricsForSong:dict 158 | forViewController:viewController 159 | sender:sender 160 | competionHandler:completion]; 161 | } 162 | 163 | - (void)findLyricsForSong:(NSDictionary*)dict 164 | forViewController:(UIViewController *)viewController 165 | sender:(id)sender 166 | competionHandler:(void (^)(NSError *error))completion 167 | { 168 | NSAssert(dict != nil, @"dict must not be nil"); 169 | NSAssert(viewController != nil, @"viewController must not be nil"); 170 | 171 | if (![self isSystemAppExtensionAPIAvailable]) { 172 | 173 | NSLog(@"Failed to findLoginForURLString, system API is not available"); 174 | 175 | if (completion) { 176 | completion(nil); 177 | } 178 | 179 | return; 180 | } 181 | 182 | if (![self isMusixmatchExtensionAvailable]) { 183 | 184 | if (completion) { 185 | completion(nil); 186 | } 187 | 188 | [self setHostViewController:viewController]; 189 | 190 | if (showAlertBeforeAppStore) { 191 | UIAlertView *storeAlert = [[UIAlertView alloc] initWithTitle:@"Musixmatch app is required" 192 | message:@"To read the lyrics you need to install Musixmatch from the AppStore." 193 | delegate:self 194 | cancelButtonTitle:@"No, thanks" 195 | otherButtonTitles:@"Get the app", nil]; 196 | [storeAlert show]; 197 | }else { 198 | [self openAppStore]; 199 | } 200 | 201 | return; 202 | } 203 | 204 | #ifdef __IPHONE_8_0 205 | 206 | UIActivityViewController *activityViewController = [self activityViewControllerForItem:dict viewController:viewController sender:sender typeIdentifier:kUTTypeAppExtensionFindSongLyric]; 207 | activityViewController.completionWithItemsHandler = ^(NSString *activityType, BOOL completed, NSArray *returnedItems, NSError *activityError) { 208 | 209 | if (completion) { 210 | completion(nil); 211 | } 212 | 213 | [self setHostViewController:nil]; 214 | 215 | }; 216 | 217 | [viewController presentViewController:activityViewController animated:YES completion:^{ 218 | 219 | }]; 220 | 221 | #endif 222 | } 223 | 224 | - (UIActivityViewController *)activityViewControllerForItem:(NSDictionary *)item viewController:(UIViewController*)viewController sender:(id)sender typeIdentifier:(NSString *)typeIdentifier { 225 | #ifdef __IPHONE_8_0 226 | 227 | NSItemProvider *itemProvider = [[NSItemProvider alloc] initWithItem:item typeIdentifier:typeIdentifier]; 228 | 229 | NSExtensionItem *extensionItem = [[NSExtensionItem alloc] init]; 230 | extensionItem.attachments = @[ itemProvider ]; 231 | 232 | UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[ extensionItem ] applicationActivities:nil]; 233 | 234 | if ([sender isKindOfClass:[UIBarButtonItem class]]) { 235 | controller.popoverPresentationController.barButtonItem = sender; 236 | } 237 | else if ([sender isKindOfClass:[UIView class]]) { 238 | controller.popoverPresentationController.sourceView = [sender superview]; 239 | controller.popoverPresentationController.sourceRect = [sender frame]; 240 | } 241 | else { 242 | NSLog(@"sender can be nil on iPhone"); 243 | } 244 | 245 | return controller; 246 | #else 247 | return nil; 248 | #endif 249 | } 250 | 251 | #pragma mark - SKStoreProductViewController Delegate 252 | 253 | - (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController { 254 | [viewController dismissViewControllerAnimated:YES completion:nil]; 255 | } 256 | 257 | #pragma mark - UIAlertView Delegate 258 | 259 | - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex { 260 | 261 | if (buttonIndex==1) { 262 | [self openAppStore]; 263 | } 264 | 265 | } 266 | 267 | @end 268 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/ViewController.m: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * Musixmatch iOS Lyrics Extention Demo 4 | * 5 | * About: https://developer.musixmatch.com/documentation/ios-lyrics-extension 6 | * Github: https://github.com/Musixmatchdev/musixmatch-app-extension 7 | * 8 | * Copyright (c) 2014-2015 musixmatch. All rights reserved. 9 | */ 10 | 11 | #import "ViewController.h" 12 | #import 13 | 14 | @interface ViewController () < MPMediaPickerControllerDelegate > { 15 | 16 | NSTimer *progressUpdateTimer; 17 | 18 | 19 | } 20 | 21 | @property(nonatomic,strong) MPMediaPickerController *pickerController; 22 | 23 | @end 24 | 25 | @implementation ViewController 26 | 27 | - (void)viewDidLoad { 28 | [super viewDidLoad]; 29 | 30 | [[MPMusicPlayerController systemMusicPlayer] beginGeneratingPlaybackNotifications]; 31 | [[NSNotificationCenter defaultCenter] addObserver:self 32 | selector:@selector(nowPlayingItmeChanged:) 33 | name:MPMusicPlayerControllerNowPlayingItemDidChangeNotification 34 | object:nil]; 35 | 36 | [[NSNotificationCenter defaultCenter] addObserver:self 37 | selector:@selector(playbackStateDidChange:) 38 | name:MPMusicPlayerControllerPlaybackStateDidChangeNotification 39 | object:nil]; 40 | 41 | 42 | // create a simple media query of all music library 43 | MPMediaQuery *mediaQuery = [[MPMediaQuery alloc] init]; 44 | MPMediaPropertyPredicate *IsMusicMediaTypePredicate = [MPMediaPropertyPredicate predicateWithValue:[NSNumber numberWithInteger:MPMediaTypeMusic] forProperty:MPMediaItemPropertyMediaType]; 45 | [mediaQuery addFilterPredicate:IsMusicMediaTypePredicate]; 46 | [[MPMusicPlayerController systemMusicPlayer] setQueueWithQuery:mediaQuery]; 47 | } 48 | 49 | - (void)didReceiveMemoryWarning { 50 | [super didReceiveMemoryWarning]; 51 | // Dispose of any resources that can be recreated. 52 | } 53 | 54 | - (void)updateView { 55 | 56 | MPMediaItem *item = [[MPMusicPlayerController systemMusicPlayer] nowPlayingItem]; 57 | 58 | if (item) { 59 | titleTrack.text = item.title; 60 | artist.text = item.artist; 61 | album.text = item.albumTitle; 62 | artWork.image = [item.artwork imageWithSize:artWork.frame.size]; 63 | }else { 64 | titleTrack.text = artist.text = album.text = @""; 65 | artWork.image = nil; 66 | } 67 | 68 | } 69 | 70 | #pragma mark - Buttons 71 | 72 | - (IBAction)addMusic:(id)sender { 73 | 74 | self.pickerController = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeAnyAudio]; 75 | [self.pickerController setDelegate:self]; 76 | [self presentViewController:self.pickerController 77 | animated:YES 78 | completion:nil]; 79 | } 80 | 81 | - (IBAction)lyrics:(id)sender { 82 | 83 | MPMediaItem *item = [[MPMusicPlayerController systemMusicPlayer] nowPlayingItem]; 84 | 85 | if (item) { 86 | [[MXMLyricsAction sharedExtension] findLyricsForSongWithTitle:item.title 87 | artist:item.artist 88 | album:item.albumTitle 89 | artWork:[item.artwork imageWithSize:artWork.frame.size] 90 | currentProgress:[[MPMusicPlayerController systemMusicPlayer] currentPlaybackTime] 91 | trackDuration:item.playbackDuration 92 | forViewController:self 93 | sender:sender 94 | competionHandler:^(NSError *error) { 95 | 96 | }]; 97 | } 98 | 99 | } 100 | 101 | - (IBAction)switchStyleChanged:(id)sender { 102 | 103 | UISwitch *swtch = sender; 104 | 105 | [UIView animateWithDuration:0.4f 106 | animations:^{ 107 | 108 | if (!swtch.isOn) { 109 | 110 | [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; 111 | titleTrack.textColor = artist.textColor = album.textColor = style.textColor = [UIColor blackColor]; 112 | 113 | [self.view setBackgroundColor:[UIColor whiteColor]]; 114 | 115 | }else { 116 | 117 | [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; 118 | titleTrack.textColor = artist.textColor = album.textColor = style.textColor = [UIColor whiteColor]; 119 | 120 | [self.view setBackgroundColor:[UIColor colorWithWhite:0.1f alpha:1.0f]]; 121 | 122 | } 123 | 124 | }]; 125 | 126 | } 127 | 128 | -(IBAction)nextTrack:(id)sender { 129 | [[MPMusicPlayerController systemMusicPlayer] skipToNextItem]; 130 | } 131 | 132 | -(IBAction)prevTrack:(id)sender { 133 | if ([[MPMusicPlayerController systemMusicPlayer] currentPlaybackTime] < 2.0f) { 134 | [[MPMusicPlayerController systemMusicPlayer] skipToPreviousItem]; 135 | } else { 136 | [[MPMusicPlayerController systemMusicPlayer] skipToBeginning]; 137 | } 138 | } 139 | 140 | -(IBAction)playPause:(id)sender { 141 | 142 | MPMusicPlaybackState playbackState = [[MPMusicPlayerController systemMusicPlayer] playbackState]; 143 | if( playbackState == MPMoviePlaybackStatePlaying ) { // playing, pause 144 | [[MPMusicPlayerController systemMusicPlayer] pause]; 145 | } else { // paused or stopped, play 146 | [[MPMusicPlayerController systemMusicPlayer] play]; 147 | } 148 | 149 | } 150 | 151 | - (IBAction)seek:(UISlider*)sender { 152 | 153 | // total time 154 | NSTimeInterval duration = [[MPMusicPlayerController systemMusicPlayer] nowPlayingItem].playbackDuration; 155 | float seekTime = sender.value * duration; 156 | [[MPMusicPlayerController systemMusicPlayer] setCurrentPlaybackTime:seekTime]; 157 | } 158 | 159 | #pragma mark - Notifications 160 | 161 | - (void)playbackStateDidChange:(id)sender { 162 | 163 | MPMusicPlaybackState playbackState = [[MPMusicPlayerController systemMusicPlayer] playbackState]; 164 | if( playbackState == MPMoviePlaybackStatePlaying ) { // play 165 | 166 | [playPauseButton setImage:[UIImage imageNamed:@"player_pause_button"] forState:UIControlStateNormal]; 167 | progressUpdateTimer = [NSTimer scheduledTimerWithTimeInterval:1.0f 168 | target:self 169 | selector:@selector(updateProgress:) 170 | userInfo:nil 171 | repeats:YES]; 172 | } else { // pause 173 | [playPauseButton setImage:[UIImage imageNamed:@"player_play_button"] forState:UIControlStateNormal]; 174 | if(progressUpdateTimer != nil) { 175 | [progressUpdateTimer invalidate]; 176 | progressUpdateTimer = nil; 177 | } 178 | } 179 | } 180 | 181 | - (void)nowPlayingItmeChanged:(id)sender { 182 | [self updateView]; 183 | } 184 | 185 | #pragma mark - MPMediaPickerControllerDelegate 186 | 187 | - (void)mediaPicker:(MPMediaPickerController *)mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection { 188 | 189 | [[MPMusicPlayerController systemMusicPlayer] setQueueWithItemCollection:mediaItemCollection]; 190 | [mediaPicker dismissViewControllerAnimated:YES 191 | completion:^{ 192 | [[MPMusicPlayerController systemMusicPlayer] play]; 193 | }]; 194 | 195 | } 196 | 197 | - (void)mediaPickerDidCancel:(MPMediaPickerController *)mediaPicker { 198 | [mediaPicker dismissViewControllerAnimated:YES 199 | completion:nil]; 200 | } 201 | 202 | #pragma mark - Player Control 203 | 204 | -(void) playerUpdateInfo { 205 | 206 | // total time 207 | long duration = [[MPMusicPlayerController systemMusicPlayer] nowPlayingItem].playbackDuration; 208 | // elapsed time 209 | long currentPlaybackTime = [[MPMusicPlayerController systemMusicPlayer] currentPlaybackTime]; 210 | // remaining time 211 | long remainingPlaybackTime = duration - currentPlaybackTime; 212 | 213 | // elapsed minutes and seconds 214 | int currentMinutes = (int)((currentPlaybackTime / 60) - (currentPlaybackTime / 3600)*60); 215 | int currentSeconds = (currentPlaybackTime % 60); 216 | 217 | // remaining minutes and seconds 218 | int remainingMinutes = (int)((remainingPlaybackTime / 60) - (remainingPlaybackTime / 3600)*60); 219 | int remainingSeconds = ( remainingPlaybackTime % 60 ); 220 | 221 | trackElapsedTime.text = [NSString stringWithFormat:@"%02d:%02d", currentMinutes, currentSeconds]; 222 | trackRemainingTime.text = [NSString stringWithFormat:@"-%02d:%02d",remainingMinutes,remainingSeconds]; 223 | 224 | } 225 | 226 | - (void)updateProgress:(NSTimer *)_timer { 227 | dispatch_async(dispatch_get_main_queue(), ^{ 228 | NSTimeInterval progress = [[MPMusicPlayerController systemMusicPlayer] currentPlaybackTime]; 229 | NSTimeInterval duration = [[MPMusicPlayerController systemMusicPlayer] nowPlayingItem].playbackDuration; 230 | if ( progress >=0.0 && duration>0.0) { 231 | [trackProgress setValue: progress / duration animated:YES]; 232 | [self playerUpdateInfo]; 233 | } 234 | }); 235 | } 236 | 237 | @end 238 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo/Base.lproj/MainView.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 48 | 59 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 84 | 91 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 129 | 140 | 147 | 154 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | -------------------------------------------------------------------------------- /MXMLyricsActionDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 61B704A81A252DCA009E709E /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B704A71A252DCA009E709E /* StoreKit.framework */; }; 11 | 61BD2FB01B064E6B00964CD1 /* Launch Screen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 61BD2FAE1B064E6B00964CD1 /* Launch Screen.xib */; }; 12 | 61FAAD941A0108E10063206F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 61FAAD931A0108E10063206F /* main.m */; }; 13 | 61FAAD971A0108E10063206F /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 61FAAD961A0108E10063206F /* AppDelegate.m */; }; 14 | 61FAAD9F1A0108E10063206F /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 61FAAD9E1A0108E10063206F /* Images.xcassets */; }; 15 | 61FAADB81A010EFB0063206F /* MediaPlayer.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61FAADB71A010EFB0063206F /* MediaPlayer.framework */; }; 16 | 8427B4401AD6B36C009DB474 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8427B43F1AD6B36C009DB474 /* ViewController.m */; }; 17 | 8427B4431AD6B38F009DB474 /* MainView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 8427B4411AD6B38F009DB474 /* MainView.xib */; }; 18 | 84E3A87E1D0883870065FD5A /* MusixmatchLyricsAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 84E3A87D1D0883870065FD5A /* MusixmatchLyricsAction.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | 84E3A8821D0883870065FD5A /* MusixmatchLyricsAction.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 84E3A87B1D0883870065FD5A /* MusixmatchLyricsAction.framework */; }; 20 | 84E3A8831D0883870065FD5A /* MusixmatchLyricsAction.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 84E3A87B1D0883870065FD5A /* MusixmatchLyricsAction.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 21 | 84E3A8881D0883A40065FD5A /* MXMLyricsAction.m in Sources */ = {isa = PBXBuildFile; fileRef = 61FAADBE1A011EA50063206F /* MXMLyricsAction.m */; }; 22 | 84E3A8891D08844A0065FD5A /* MXMLyricsAction.h in Headers */ = {isa = PBXBuildFile; fileRef = 61FAADBD1A011EA50063206F /* MXMLyricsAction.h */; settings = {ATTRIBUTES = (Public, ); }; }; 23 | 84E3A88A1D0885200065FD5A /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B704A71A252DCA009E709E /* StoreKit.framework */; }; 24 | 84E3A88C1D08853B0065FD5A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 84E3A88B1D08853B0065FD5A /* UIKit.framework */; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 84E3A8801D0883870065FD5A /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 61FAAD861A0108E10063206F /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 84E3A87A1D0883870065FD5A; 33 | remoteInfo = MusixmatchLyricsAction; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXCopyFilesBuildPhase section */ 38 | 84E3A8871D0883870065FD5A /* Embed Frameworks */ = { 39 | isa = PBXCopyFilesBuildPhase; 40 | buildActionMask = 2147483647; 41 | dstPath = ""; 42 | dstSubfolderSpec = 10; 43 | files = ( 44 | 84E3A8831D0883870065FD5A /* MusixmatchLyricsAction.framework in Embed Frameworks */, 45 | ); 46 | name = "Embed Frameworks"; 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | /* End PBXCopyFilesBuildPhase section */ 50 | 51 | /* Begin PBXFileReference section */ 52 | 61B704A71A252DCA009E709E /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; }; 53 | 61BD2FAF1B064E6B00964CD1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = "Base.lproj/Launch Screen.xib"; sourceTree = ""; }; 54 | 61FAAD8E1A0108E10063206F /* Lyrics Extension.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Lyrics Extension.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 61FAAD921A0108E10063206F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 56 | 61FAAD931A0108E10063206F /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 57 | 61FAAD951A0108E10063206F /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 58 | 61FAAD961A0108E10063206F /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 59 | 61FAAD9E1A0108E10063206F /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 60 | 61FAADB71A010EFB0063206F /* MediaPlayer.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MediaPlayer.framework; path = System/Library/Frameworks/MediaPlayer.framework; sourceTree = SDKROOT; }; 61 | 61FAADBD1A011EA50063206F /* MXMLyricsAction.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MXMLyricsAction.h; sourceTree = ""; }; 62 | 61FAADBE1A011EA50063206F /* MXMLyricsAction.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MXMLyricsAction.m; sourceTree = ""; }; 63 | 8427B43E1AD6B36C009DB474 /* ViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 64 | 8427B43F1AD6B36C009DB474 /* ViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 65 | 8427B4421AD6B38F009DB474 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainView.xib; sourceTree = ""; }; 66 | 84E3A87B1D0883870065FD5A /* MusixmatchLyricsAction.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MusixmatchLyricsAction.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | 84E3A87D1D0883870065FD5A /* MusixmatchLyricsAction.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MusixmatchLyricsAction.h; sourceTree = ""; }; 68 | 84E3A87F1D0883870065FD5A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 69 | 84E3A88B1D08853B0065FD5A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 61FAAD8B1A0108E10063206F /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | 61B704A81A252DCA009E709E /* StoreKit.framework in Frameworks */, 78 | 61FAADB81A010EFB0063206F /* MediaPlayer.framework in Frameworks */, 79 | 84E3A8821D0883870065FD5A /* MusixmatchLyricsAction.framework in Frameworks */, 80 | ); 81 | runOnlyForDeploymentPostprocessing = 0; 82 | }; 83 | 84E3A8771D0883870065FD5A /* Frameworks */ = { 84 | isa = PBXFrameworksBuildPhase; 85 | buildActionMask = 2147483647; 86 | files = ( 87 | 84E3A88C1D08853B0065FD5A /* UIKit.framework in Frameworks */, 88 | 84E3A88A1D0885200065FD5A /* StoreKit.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 61FAAD851A0108E10063206F = { 96 | isa = PBXGroup; 97 | children = ( 98 | 61FAAD901A0108E10063206F /* MXMLyricsActionDemo */, 99 | 61FAADB91A011E270063206F /* Classes */, 100 | 84E3A87C1D0883870065FD5A /* MusixmatchLyricsAction */, 101 | 8427B4301AD6944E009DB474 /* Frameworks */, 102 | 61FAAD8F1A0108E10063206F /* Products */, 103 | ); 104 | sourceTree = ""; 105 | }; 106 | 61FAAD8F1A0108E10063206F /* Products */ = { 107 | isa = PBXGroup; 108 | children = ( 109 | 61FAAD8E1A0108E10063206F /* Lyrics Extension.app */, 110 | 84E3A87B1D0883870065FD5A /* MusixmatchLyricsAction.framework */, 111 | ); 112 | name = Products; 113 | sourceTree = ""; 114 | }; 115 | 61FAAD901A0108E10063206F /* MXMLyricsActionDemo */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 8427B43E1AD6B36C009DB474 /* ViewController.h */, 119 | 8427B43F1AD6B36C009DB474 /* ViewController.m */, 120 | 61FAAD951A0108E10063206F /* AppDelegate.h */, 121 | 61FAAD961A0108E10063206F /* AppDelegate.m */, 122 | 61FAAD9E1A0108E10063206F /* Images.xcassets */, 123 | 61FAAD911A0108E10063206F /* Supporting Files */, 124 | ); 125 | path = MXMLyricsActionDemo; 126 | sourceTree = ""; 127 | }; 128 | 61FAAD911A0108E10063206F /* Supporting Files */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 8427B4411AD6B38F009DB474 /* MainView.xib */, 132 | 61FAAD921A0108E10063206F /* Info.plist */, 133 | 61FAAD931A0108E10063206F /* main.m */, 134 | 61BD2FAE1B064E6B00964CD1 /* Launch Screen.xib */, 135 | ); 136 | name = "Supporting Files"; 137 | sourceTree = ""; 138 | }; 139 | 61FAADB91A011E270063206F /* Classes */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | 61FAADBD1A011EA50063206F /* MXMLyricsAction.h */, 143 | 61FAADBE1A011EA50063206F /* MXMLyricsAction.m */, 144 | ); 145 | name = Classes; 146 | path = MXMLyricsAction; 147 | sourceTree = ""; 148 | }; 149 | 8427B4301AD6944E009DB474 /* Frameworks */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 84E3A88B1D08853B0065FD5A /* UIKit.framework */, 153 | 61FAADB71A010EFB0063206F /* MediaPlayer.framework */, 154 | 61B704A71A252DCA009E709E /* StoreKit.framework */, 155 | ); 156 | name = Frameworks; 157 | sourceTree = ""; 158 | }; 159 | 84E3A87C1D0883870065FD5A /* MusixmatchLyricsAction */ = { 160 | isa = PBXGroup; 161 | children = ( 162 | 84E3A87D1D0883870065FD5A /* MusixmatchLyricsAction.h */, 163 | 84E3A87F1D0883870065FD5A /* Info.plist */, 164 | ); 165 | path = MusixmatchLyricsAction; 166 | sourceTree = ""; 167 | }; 168 | /* End PBXGroup section */ 169 | 170 | /* Begin PBXHeadersBuildPhase section */ 171 | 84E3A8781D0883870065FD5A /* Headers */ = { 172 | isa = PBXHeadersBuildPhase; 173 | buildActionMask = 2147483647; 174 | files = ( 175 | 84E3A87E1D0883870065FD5A /* MusixmatchLyricsAction.h in Headers */, 176 | 84E3A8891D08844A0065FD5A /* MXMLyricsAction.h in Headers */, 177 | ); 178 | runOnlyForDeploymentPostprocessing = 0; 179 | }; 180 | /* End PBXHeadersBuildPhase section */ 181 | 182 | /* Begin PBXNativeTarget section */ 183 | 61FAAD8D1A0108E10063206F /* MXMLyricsActionDemo */ = { 184 | isa = PBXNativeTarget; 185 | buildConfigurationList = 61FAADB11A0108E10063206F /* Build configuration list for PBXNativeTarget "MXMLyricsActionDemo" */; 186 | buildPhases = ( 187 | 61FAAD8A1A0108E10063206F /* Sources */, 188 | 61FAAD8B1A0108E10063206F /* Frameworks */, 189 | 61FAAD8C1A0108E10063206F /* Resources */, 190 | 84E3A8871D0883870065FD5A /* Embed Frameworks */, 191 | ); 192 | buildRules = ( 193 | ); 194 | dependencies = ( 195 | 84E3A8811D0883870065FD5A /* PBXTargetDependency */, 196 | ); 197 | name = MXMLyricsActionDemo; 198 | productName = MXMLyricsActionDemo; 199 | productReference = 61FAAD8E1A0108E10063206F /* Lyrics Extension.app */; 200 | productType = "com.apple.product-type.application"; 201 | }; 202 | 84E3A87A1D0883870065FD5A /* MusixmatchLyricsAction */ = { 203 | isa = PBXNativeTarget; 204 | buildConfigurationList = 84E3A8861D0883870065FD5A /* Build configuration list for PBXNativeTarget "MusixmatchLyricsAction" */; 205 | buildPhases = ( 206 | 84E3A8761D0883870065FD5A /* Sources */, 207 | 84E3A8771D0883870065FD5A /* Frameworks */, 208 | 84E3A8781D0883870065FD5A /* Headers */, 209 | 84E3A8791D0883870065FD5A /* Resources */, 210 | ); 211 | buildRules = ( 212 | ); 213 | dependencies = ( 214 | ); 215 | name = MusixmatchLyricsAction; 216 | productName = MusixmatchLyricsAction; 217 | productReference = 84E3A87B1D0883870065FD5A /* MusixmatchLyricsAction.framework */; 218 | productType = "com.apple.product-type.framework"; 219 | }; 220 | /* End PBXNativeTarget section */ 221 | 222 | /* Begin PBXProject section */ 223 | 61FAAD861A0108E10063206F /* Project object */ = { 224 | isa = PBXProject; 225 | attributes = { 226 | LastUpgradeCheck = 0800; 227 | ORGANIZATIONNAME = musixmatch; 228 | TargetAttributes = { 229 | 61FAAD8D1A0108E10063206F = { 230 | CreatedOnToolsVersion = 6.1; 231 | DevelopmentTeam = DL6BZH9493; 232 | ProvisioningStyle = Automatic; 233 | }; 234 | 84E3A87A1D0883870065FD5A = { 235 | CreatedOnToolsVersion = 7.2; 236 | DevelopmentTeam = DL6BZH9493; 237 | ProvisioningStyle = Automatic; 238 | }; 239 | }; 240 | }; 241 | buildConfigurationList = 61FAAD891A0108E10063206F /* Build configuration list for PBXProject "MXMLyricsActionDemo" */; 242 | compatibilityVersion = "Xcode 3.2"; 243 | developmentRegion = English; 244 | hasScannedForEncodings = 0; 245 | knownRegions = ( 246 | en, 247 | Base, 248 | ); 249 | mainGroup = 61FAAD851A0108E10063206F; 250 | productRefGroup = 61FAAD8F1A0108E10063206F /* Products */; 251 | projectDirPath = ""; 252 | projectRoot = ""; 253 | targets = ( 254 | 61FAAD8D1A0108E10063206F /* MXMLyricsActionDemo */, 255 | 84E3A87A1D0883870065FD5A /* MusixmatchLyricsAction */, 256 | ); 257 | }; 258 | /* End PBXProject section */ 259 | 260 | /* Begin PBXResourcesBuildPhase section */ 261 | 61FAAD8C1A0108E10063206F /* Resources */ = { 262 | isa = PBXResourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 61FAAD9F1A0108E10063206F /* Images.xcassets in Resources */, 266 | 8427B4431AD6B38F009DB474 /* MainView.xib in Resources */, 267 | 61BD2FB01B064E6B00964CD1 /* Launch Screen.xib in Resources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 84E3A8791D0883870065FD5A /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | /* End PBXResourcesBuildPhase section */ 279 | 280 | /* Begin PBXSourcesBuildPhase section */ 281 | 61FAAD8A1A0108E10063206F /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 61FAAD971A0108E10063206F /* AppDelegate.m in Sources */, 286 | 8427B4401AD6B36C009DB474 /* ViewController.m in Sources */, 287 | 61FAAD941A0108E10063206F /* main.m in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | 84E3A8761D0883870065FD5A /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 84E3A8881D0883A40065FD5A /* MXMLyricsAction.m in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | /* End PBXSourcesBuildPhase section */ 300 | 301 | /* Begin PBXTargetDependency section */ 302 | 84E3A8811D0883870065FD5A /* PBXTargetDependency */ = { 303 | isa = PBXTargetDependency; 304 | target = 84E3A87A1D0883870065FD5A /* MusixmatchLyricsAction */; 305 | targetProxy = 84E3A8801D0883870065FD5A /* PBXContainerItemProxy */; 306 | }; 307 | /* End PBXTargetDependency section */ 308 | 309 | /* Begin PBXVariantGroup section */ 310 | 61BD2FAE1B064E6B00964CD1 /* Launch Screen.xib */ = { 311 | isa = PBXVariantGroup; 312 | children = ( 313 | 61BD2FAF1B064E6B00964CD1 /* Base */, 314 | ); 315 | name = "Launch Screen.xib"; 316 | sourceTree = ""; 317 | }; 318 | 8427B4411AD6B38F009DB474 /* MainView.xib */ = { 319 | isa = PBXVariantGroup; 320 | children = ( 321 | 8427B4421AD6B38F009DB474 /* Base */, 322 | ); 323 | name = MainView.xib; 324 | sourceTree = ""; 325 | }; 326 | /* End PBXVariantGroup section */ 327 | 328 | /* Begin XCBuildConfiguration section */ 329 | 61FAADAF1A0108E10063206F /* Debug */ = { 330 | isa = XCBuildConfiguration; 331 | buildSettings = { 332 | ALWAYS_SEARCH_USER_PATHS = NO; 333 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 334 | CLANG_CXX_LIBRARY = "libc++"; 335 | CLANG_ENABLE_MODULES = YES; 336 | CLANG_ENABLE_OBJC_ARC = YES; 337 | CLANG_WARN_BOOL_CONVERSION = YES; 338 | CLANG_WARN_CONSTANT_CONVERSION = YES; 339 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 340 | CLANG_WARN_EMPTY_BODY = YES; 341 | CLANG_WARN_ENUM_CONVERSION = YES; 342 | CLANG_WARN_INFINITE_RECURSION = YES; 343 | CLANG_WARN_INT_CONVERSION = YES; 344 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 346 | CLANG_WARN_UNREACHABLE_CODE = YES; 347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 349 | COPY_PHASE_STRIP = NO; 350 | ENABLE_STRICT_OBJC_MSGSEND = YES; 351 | ENABLE_TESTABILITY = YES; 352 | GCC_C_LANGUAGE_STANDARD = gnu99; 353 | GCC_DYNAMIC_NO_PIC = NO; 354 | GCC_NO_COMMON_BLOCKS = YES; 355 | GCC_OPTIMIZATION_LEVEL = 0; 356 | GCC_PREPROCESSOR_DEFINITIONS = ( 357 | "DEBUG=1", 358 | "$(inherited)", 359 | ); 360 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 361 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 362 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 363 | GCC_WARN_UNDECLARED_SELECTOR = YES; 364 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 365 | GCC_WARN_UNUSED_FUNCTION = YES; 366 | GCC_WARN_UNUSED_VARIABLE = YES; 367 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 368 | MTL_ENABLE_DEBUG_INFO = YES; 369 | ONLY_ACTIVE_ARCH = YES; 370 | SDKROOT = iphoneos; 371 | TARGETED_DEVICE_FAMILY = "1,2"; 372 | }; 373 | name = Debug; 374 | }; 375 | 61FAADB01A0108E10063206F /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | buildSettings = { 378 | ALWAYS_SEARCH_USER_PATHS = NO; 379 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 380 | CLANG_CXX_LIBRARY = "libc++"; 381 | CLANG_ENABLE_MODULES = YES; 382 | CLANG_ENABLE_OBJC_ARC = YES; 383 | CLANG_WARN_BOOL_CONVERSION = YES; 384 | CLANG_WARN_CONSTANT_CONVERSION = YES; 385 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 386 | CLANG_WARN_EMPTY_BODY = YES; 387 | CLANG_WARN_ENUM_CONVERSION = YES; 388 | CLANG_WARN_INFINITE_RECURSION = YES; 389 | CLANG_WARN_INT_CONVERSION = YES; 390 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 391 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 392 | CLANG_WARN_UNREACHABLE_CODE = YES; 393 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 394 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 395 | COPY_PHASE_STRIP = YES; 396 | ENABLE_NS_ASSERTIONS = NO; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_C_LANGUAGE_STANDARD = gnu99; 399 | GCC_NO_COMMON_BLOCKS = YES; 400 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 401 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 402 | GCC_WARN_UNDECLARED_SELECTOR = YES; 403 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 404 | GCC_WARN_UNUSED_FUNCTION = YES; 405 | GCC_WARN_UNUSED_VARIABLE = YES; 406 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 407 | MTL_ENABLE_DEBUG_INFO = NO; 408 | SDKROOT = iphoneos; 409 | TARGETED_DEVICE_FAMILY = "1,2"; 410 | VALIDATE_PRODUCT = YES; 411 | }; 412 | name = Release; 413 | }; 414 | 61FAADB21A0108E10063206F /* Debug */ = { 415 | isa = XCBuildConfiguration; 416 | buildSettings = { 417 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 418 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 419 | BUILDNUMBER = 2016060800; 420 | BUILDVERSION = 1.1.3; 421 | BUNDLEID = com.musixmatch.samples.extension; 422 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 423 | CODE_SIGN_IDENTITY = "iPhone Developer: Loreto Parisi (HFX54548Y7)"; 424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 425 | INFOPLIST_FILE = MXMLyricsActionDemo/Info.plist; 426 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 427 | ONLY_ACTIVE_ARCH = NO; 428 | PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLEID)"; 429 | PRODUCT_NAME = "Lyrics Extension"; 430 | PROVISIONING_PROFILE = ""; 431 | TARGETED_DEVICE_FAMILY = 1; 432 | VALID_ARCHS = "arm64 armv7 armv7s x86_64 i386"; 433 | }; 434 | name = Debug; 435 | }; 436 | 61FAADB31A0108E10063206F /* Release */ = { 437 | isa = XCBuildConfiguration; 438 | buildSettings = { 439 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 440 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 441 | BUILDNUMBER = 2016060800; 442 | BUILDVERSION = 1.1.3; 443 | BUNDLEID = com.musixmatch.samples.extension.enterprise; 444 | CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = YES; 445 | CODE_SIGN_IDENTITY = "iPhone Distribution: MUSIXMATCH SPA"; 446 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 447 | INFOPLIST_FILE = MXMLyricsActionDemo/Info.plist; 448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 449 | ONLY_ACTIVE_ARCH = NO; 450 | PRODUCT_BUNDLE_IDENTIFIER = "$(BUNDLEID)"; 451 | PRODUCT_NAME = "Lyrics Extension"; 452 | PROVISIONING_PROFILE = ""; 453 | TARGETED_DEVICE_FAMILY = 1; 454 | VALID_ARCHS = "arm64 armv7 armv7s x86_64 i386"; 455 | }; 456 | name = Release; 457 | }; 458 | 84E3A8841D0883870065FD5A /* Debug */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | CLANG_ENABLE_MODULES = NO; 462 | CODE_SIGN_IDENTITY = "iPhone Developer: Loreto Parisi (HFX54548Y7)"; 463 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 464 | CURRENT_PROJECT_VERSION = 1; 465 | DEBUG_INFORMATION_FORMAT = dwarf; 466 | DEFINES_MODULE = YES; 467 | DYLIB_COMPATIBILITY_VERSION = 1; 468 | DYLIB_CURRENT_VERSION = 1; 469 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 470 | ENABLE_TESTABILITY = YES; 471 | GCC_NO_COMMON_BLOCKS = YES; 472 | INFOPLIST_FILE = MusixmatchLyricsAction/Info.plist; 473 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 474 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 475 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 476 | ONLY_ACTIVE_ARCH = NO; 477 | PRODUCT_BUNDLE_IDENTIFIER = com.musixmatch.MusixmatchLyricsAction; 478 | PRODUCT_NAME = "$(TARGET_NAME)"; 479 | SKIP_INSTALL = YES; 480 | VALID_ARCHS = "arm64 armv7 armv7s i386 x86_64"; 481 | VERSIONING_SYSTEM = "apple-generic"; 482 | VERSION_INFO_PREFIX = ""; 483 | }; 484 | name = Debug; 485 | }; 486 | 84E3A8851D0883870065FD5A /* Release */ = { 487 | isa = XCBuildConfiguration; 488 | buildSettings = { 489 | CLANG_ENABLE_MODULES = NO; 490 | CODE_SIGN_IDENTITY = "iPhone Distribution: MUSIXMATCH SPA"; 491 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 492 | COPY_PHASE_STRIP = NO; 493 | CURRENT_PROJECT_VERSION = 1; 494 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 495 | DEFINES_MODULE = YES; 496 | DYLIB_COMPATIBILITY_VERSION = 1; 497 | DYLIB_CURRENT_VERSION = 1; 498 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 499 | GCC_NO_COMMON_BLOCKS = YES; 500 | INFOPLIST_FILE = MusixmatchLyricsAction/Info.plist; 501 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 502 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 503 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 504 | ONLY_ACTIVE_ARCH = NO; 505 | PRODUCT_BUNDLE_IDENTIFIER = com.musixmatch.MusixmatchLyricsAction; 506 | PRODUCT_NAME = "$(TARGET_NAME)"; 507 | SKIP_INSTALL = YES; 508 | VALID_ARCHS = "arm64 armv7 armv7s i386 x86_64"; 509 | VERSIONING_SYSTEM = "apple-generic"; 510 | VERSION_INFO_PREFIX = ""; 511 | }; 512 | name = Release; 513 | }; 514 | /* End XCBuildConfiguration section */ 515 | 516 | /* Begin XCConfigurationList section */ 517 | 61FAAD891A0108E10063206F /* Build configuration list for PBXProject "MXMLyricsActionDemo" */ = { 518 | isa = XCConfigurationList; 519 | buildConfigurations = ( 520 | 61FAADAF1A0108E10063206F /* Debug */, 521 | 61FAADB01A0108E10063206F /* Release */, 522 | ); 523 | defaultConfigurationIsVisible = 0; 524 | defaultConfigurationName = Release; 525 | }; 526 | 61FAADB11A0108E10063206F /* Build configuration list for PBXNativeTarget "MXMLyricsActionDemo" */ = { 527 | isa = XCConfigurationList; 528 | buildConfigurations = ( 529 | 61FAADB21A0108E10063206F /* Debug */, 530 | 61FAADB31A0108E10063206F /* Release */, 531 | ); 532 | defaultConfigurationIsVisible = 0; 533 | defaultConfigurationName = Release; 534 | }; 535 | 84E3A8861D0883870065FD5A /* Build configuration list for PBXNativeTarget "MusixmatchLyricsAction" */ = { 536 | isa = XCConfigurationList; 537 | buildConfigurations = ( 538 | 84E3A8841D0883870065FD5A /* Debug */, 539 | 84E3A8851D0883870065FD5A /* Release */, 540 | ); 541 | defaultConfigurationIsVisible = 0; 542 | defaultConfigurationName = Release; 543 | }; 544 | /* End XCConfigurationList section */ 545 | }; 546 | rootObject = 61FAAD861A0108E10063206F /* Project object */; 547 | } 548 | --------------------------------------------------------------------------------