Merge pull request #20 from russellhancox/master Add bazel build support
Merge pull request #20 from russellhancox/master
Add bazel build support
A client for receiving and acknowledging FCM messages.
#import <MOLFCMClient/MOLFCMClient.h> MOLFCMClient *fcmClient = [[MOLFCMClient alloc] initWithFCMToken:token sessionConfiguration:configuration messagesHandler:^(NSDictionary *message) { NSLog(@"%@", message); [fcmClient acknowledgeMessage:message]; }]; [fcmClient connect];
Add the following line to your Podfile:
pod 'MOLFCMClient'
Add the following to your WORKSPACE:
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") # Needed for MOLFCMClient git_repository( name = "MOLCertificate", remote = "https://github.com/google/macops-molcertificate.git", tag = "v2.0", ) # Needed for MOLFCMClient git_repository( name = "MOLAuthenticatingURLSession", remote = "https://github.com/google/macops-molauthenticatingurlsession.git", tag = "v2.5", ) git_repository( name = "MOLFCMClient", remote = "https://github.com/google/macops-molfmclient.git", tag = "v2.0", )
And in your BUILD file, add MOLFCMClient as a dependency:
objc_library( name = "MyAwesomeApp_lib", srcs = ["src/MyAwesomeApp.m", "src/MyAwesomeApp.h"], deps = ["@MOLFCMClient//:MOLFCMClient"], )
Reference documentation is at CocoaDocs.org:
http://cocoadocs.org/docsets/MOLFCMClient
Patches to this library are very much welcome. Please see the CONTRIBUTING file.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
MOLFCMClient
A client for receiving and acknowledging FCM messages.
Usage
Installation
Using CocoaPods
Add the following line to your Podfile:
Using Bazel
Add the following to your WORKSPACE:
And in your BUILD file, add MOLFCMClient as a dependency:
objc_library( name = "MyAwesomeApp_lib", srcs = ["src/MyAwesomeApp.m", "src/MyAwesomeApp.h"], deps = ["@MOLFCMClient//:MOLFCMClient"], )Documentation
Reference documentation is at CocoaDocs.org:
http://cocoadocs.org/docsets/MOLFCMClient
Contributing
Patches to this library are very much welcome. Please see the CONTRIBUTING file.