diff --git a/CallWithDoxDialer.podspec b/CallWithDoxDialer.podspec index 0e4cff4..438aaab 100644 --- a/CallWithDoxDialer.podspec +++ b/CallWithDoxDialer.podspec @@ -1,16 +1,16 @@ Pod::Spec.new do |s| s.name = "CallWithDoxDialer" - s.version = "1.0.1" - s.summary = "A µLibrary for initiating calls through Doximity's Dialer app." + s.version = "1.0.2" + s.summary = "A µLibrary for initiating calls through the Doximity app." s.description = <<-DESC - Doximity's Dialer app lets healthcare professionals make phone calls + Doximity lets healthcare professionals make phone calls to patients while on the go -- without revealing personal phone numbers. - Calls are routed through Doximity's HIPPA-secure platform and relayed to the patient + Calls are routed through Doximity's HIPAA-secure platform and relayed to the patient who will see the doctor's office number in the Caller ID. - Doximity Dialer is currently available to verified physicians, nurse practitioners, + Doximity is currently available to verified physicians, nurse practitioners, physician assistants and pharmacists in the United States. - This µLibrary lets 3rd-party apps easily initiate calls through the Doximity Dialer app. + This µLibrary lets 3rd-party apps easily initiate calls through the Doximity app. DESC s.homepage = "https://github.com/doximity/CallWithDoxDialer/" s.license = { :type => "Unlicense", :file => "LICENSE.MD" } diff --git a/CallWithDoxDialer/CallWithDoxDialer.bundle/doximity-dialer-icon@2x.png b/CallWithDoxDialer/CallWithDoxDialer.bundle/doximity-dialer-icon@2x.png deleted file mode 100644 index ff02f0a..0000000 Binary files a/CallWithDoxDialer/CallWithDoxDialer.bundle/doximity-dialer-icon@2x.png and /dev/null differ diff --git a/CallWithDoxDialer/CallWithDoxDialer.bundle/doximity-icon-black.png b/CallWithDoxDialer/CallWithDoxDialer.bundle/doximity-icon-black.png new file mode 100644 index 0000000..f92dca0 Binary files /dev/null and b/CallWithDoxDialer/CallWithDoxDialer.bundle/doximity-icon-black.png differ diff --git a/CallWithDoxDialer/DoxDialerCaller.h b/CallWithDoxDialer/DoxDialerCaller.h index cde495a..6a19118 100644 --- a/CallWithDoxDialer/DoxDialerCaller.h +++ b/CallWithDoxDialer/DoxDialerCaller.h @@ -44,14 +44,14 @@ @return The icon as a UIImage. */ --(nonnull UIImage *)dialerIcon; +-(nonnull UIImage *)doximityIcon; /** The Doximity Dialer icon for use in tinted views. @return The icon as a UIImage, with rendering mode `UIImageRenderingModeAlwaysTemplate` */ --(nonnull UIImage *)dialerIconAsTemplate; +-(nonnull UIImage *)doximityIconAsTemplate; @end diff --git a/CallWithDoxDialer/DoxDialerCaller.m b/CallWithDoxDialer/DoxDialerCaller.m index 7296255..2045b99 100644 --- a/CallWithDoxDialer/DoxDialerCaller.m +++ b/CallWithDoxDialer/DoxDialerCaller.m @@ -10,12 +10,12 @@ #import @interface DoxDialerCaller() { - NSURL *_dialerSchemeURL; - NSURL *_openDialerInAppStoreURL; - UIImage *_dialerIcon; - UIImage *_dialerIconAsTemplate; + NSURL *_doximitySchemeURL; + NSURL *_openDoximityInAppStoreURL; + UIImage *_doximityIcon; + UIImage *_doximityIconAsTemplate; } -@property (nonnull, readonly) NSString *dialerScheme; +@property (nonnull, readonly) NSString *doximityScheme; @end @@ -39,75 +39,75 @@ +(instancetype _Nonnull)shared { #pragma mark Methods -(void)dialPhoneNumber:(nonnull NSString *)phoneNumber { - if (self.isDialerInstalled) { + if (self.isDoximityInstalled) { NSURLComponents *launchDialerURLComponents = [[NSURLComponents alloc] init]; - launchDialerURLComponents.scheme = self.dialerScheme; + launchDialerURLComponents.scheme = self.doximityScheme; launchDialerURLComponents.host = @"doximity"; - launchDialerURLComponents.path = @"/call"; + launchDialerURLComponents.path = @"/dialer"; launchDialerURLComponents.queryItems = @[ [[NSURLQueryItem alloc] initWithName:@"target_number" value:phoneNumber] ]; [self openURL:launchDialerURLComponents.URL]; } else { - [self openURL:self.openDialerInAppStoreURL]; + [self openURL:self.openDoximityInAppStoreURL]; } } #pragma mark Icons --(nonnull UIImage *)dialerIcon { - if(!_dialerIcon) { +-(nonnull UIImage *)doximityIcon { + if(!_doximityIcon) { NSBundle *libraryBundle = [NSBundle bundleForClass:[DoxDialerCaller class]]; NSURL *assetsBundleUrl = [libraryBundle URLForResource:@"CallWithDoxDialer" withExtension:@"bundle"]; NSBundle *assetsBundle = [NSBundle bundleWithURL:assetsBundleUrl]; - _dialerIcon = [UIImage imageNamed:@"doximity-dialer-icon" + _doximityIcon = [UIImage imageNamed:@"doximity-icon-black" inBundle:assetsBundle compatibleWithTraitCollection:nil]; } - return _dialerIcon; + return _doximityIcon; } --(nonnull UIImage *)dialerIconAsTemplate { - if(!_dialerIconAsTemplate) { - _dialerIconAsTemplate = [self.dialerIcon imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; +-(nonnull UIImage *)doximityIconAsTemplate { + if(!_doximityIconAsTemplate) { + _doximityIconAsTemplate = [self.doximityIcon imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; } - return _dialerIconAsTemplate; + return _doximityIconAsTemplate; } #pragma mark - Private Internal Properties - #pragma mark Lazy Properties --(nonnull NSString *)dialerScheme { - return @"doximitydialer"; +-(nonnull NSString *)doximityScheme { + return @"doximity"; } --(nonnull NSURL *)dialerSchemeURL { - if(!_dialerSchemeURL) { +-(nonnull NSURL *)doximitySchemeURL { + if(!_doximitySchemeURL) { NSURLComponents *dialerSchemeURLComponents = [[NSURLComponents alloc] init]; - dialerSchemeURLComponents.scheme = self.dialerScheme; + dialerSchemeURLComponents.scheme = self.doximityScheme; dialerSchemeURLComponents.host = @""; - _dialerSchemeURL = dialerSchemeURLComponents.URL; + _doximitySchemeURL = dialerSchemeURLComponents.URL; } - return _dialerSchemeURL; + return _doximitySchemeURL; } --(nonnull NSURL *)openDialerInAppStoreURL { - if(!_openDialerInAppStoreURL) { +-(nonnull NSURL *)openDoximityInAppStoreURL { + if(!_openDoximityInAppStoreURL) { NSString *appIdentifyingName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"] ?: @"Unknown"; - _openDialerInAppStoreURL = [NSURL URLWithString: - [NSString stringWithFormat:@"https://app.appsflyer.com/id1157770564?pid=third_party_app&c=%@", appIdentifyingName]]; + _openDoximityInAppStoreURL = [NSURL URLWithString: + [NSString stringWithFormat:@"https://app.appsflyer.com/id393642611?pid=third_party_app&c=%@", appIdentifyingName]]; } - return _openDialerInAppStoreURL; + return _openDoximityInAppStoreURL; } #pragma mark Private Helpers --(BOOL)isDialerInstalled { - return [UIApplication.sharedApplication canOpenURL:self.dialerSchemeURL]; +-(BOOL)isDoximityInstalled { + return [UIApplication.sharedApplication canOpenURL:self.doximitySchemeURL]; } diff --git a/README.md b/README.md index 3a6ef87..beda49b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@

CallWithDoxDialer

- A µLibrary for making calls using Doximity Dialer.

+ A µLibrary for making calls using Doximity.


@@ -9,9 +9,9 @@ ## What is CallWithDoxDialer? -Doximity's [Dialer][] app lets healthcare professionals make phone calls to patients while on the go -- without revealing personal phone numbers. Calls are routed through Doximity's HIPPA-secure platform and relayed to the patient who will see the doctor's office number in the Caller ID. Doximity Dialer is currently available to verified physicians, nurse practitioners, physician assistants and pharmacists in the United States. +Doximity lets healthcare professionals make phone calls to patients while on the go -- without revealing personal phone numbers. Calls are routed through Doximity's HIPAA-secure platform and relayed to the patient who will see the doctor's office number in the Caller ID. Doximity is currently available to verified physicians, nurse practitioners, physician assistants and pharmacists in the United States. -This µLibrary lets 3rd-party apps easily initiate calls through the Doximity Dialer app. +This µLibrary lets 3rd-party apps easily initiate calls through the Doximity app. ## Other Platforms @@ -20,8 +20,8 @@ This µLibrary lets 3rd-party apps easily initiate calls through the Doximity Di ## Usage ### Core Functionality -To initiate a call using Doximity Dialer, simply call the `dialPhoneNumber` method on the shared `DoxDialerCaller` instance. -If the Doximity Dialer app is not installed, this call will direct the user to Doximity Dialer on the App Store. +To initiate a call using Doximity, simply call the `dialPhoneNumber` method on the shared `DoxDialerCaller` instance. +If the Doximity app is not installed, this call will direct the user to Doximity on the App Store. Most reasonable phone number formats are accepted by the `dialPhoneNumber` method, e.g.: - using numbers only: `6502333444` @@ -47,7 +47,7 @@ DoxDialerCaller.shared().dialPhoneNumber("4254443333") ``` ### Icons -The library also includes a version of the Doximity Dialer icon appropriate for use inside buttons. +The library also includes a version of the Doximity icon appropriate for use inside buttons. It's available through - `DoxDialerCaller.shared().dialerIcon()` - `DoxDialerCaller.shared().dialerIconAsTemplate()` (for use in tinted views) @@ -58,12 +58,12 @@ It's available through CallWithDoxDialer supports iOS 8.0+. -First, you must give your app permission to open the Dialer app. +First, you must give your app permission to open the Doximity app. In your app's `Info.plist`, add a new entry with key `LSApplicationQueriesSchemes` and value type `Array` if one does not already exist. -Then add an element to the array of type `String` and value `doximitydialer`. +Then add an element to the array of type `String` and value `doximity`. #### Carthage diff --git a/ReadmeResources/InfoPlistExample.png b/ReadmeResources/InfoPlistExample.png index 9eac8f6..2aff8e3 100644 Binary files a/ReadmeResources/InfoPlistExample.png and b/ReadmeResources/InfoPlistExample.png differ diff --git a/ReadmeResources/logo.png b/ReadmeResources/logo.png index 23e7357..d2f3992 100644 Binary files a/ReadmeResources/logo.png and b/ReadmeResources/logo.png differ