To run the example project, clone the repo, and run pod install
from the Example directory first.
TaleneCore is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'TaleneCore'
- Add pod library
pod 'TaleneCore', :git => 'https://frankthamel@bitbucket.org/frankthamel/talenecore.git', :tag => '1.0.0'
- Call “configureTaleneCore” inside the AppDelegate.
- Add AppDelegate extension
extension AppDelegate {
private func configureTaleneCore(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) {
configureTaleneCoreApp(inType: self, application: application, didFinishLaunchingWithOptions: launchOptions)
}
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any]) {
}
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any],
fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
App.managers.notification.remoteNotificationManager.showRemoteMessage(userInfo)
completionHandler(UIBackgroundFetchResult.newData)
}
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
App.managers.notification.remoteNotificationManager.registerForRemoteNotificationsWithDeviceToken(token: deviceToken)
}
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
App.managers.logger.error(message: "Failed to register for notifications: \(error.localizedDescription)")
}
}
-
Set up a new Firebase project and add the GoogleServiceInfo.plist file to the app root.
-
Set up a Google AdMob account and link admob to Firebase.
-
Add AdMob key to info.plist
GADApplicationIdentifier = key
-
Copy color codes from Assets.xcassets to new Asset file
-
Copy configs files form settings folder.
Copy:
* FirebaseRemoteConfigs
* Translations
* Keys.swift
* Keys.plist
* Urls.swift
* Urls.plist
* LocalConfigs.swift
* LocalConfigs.plist
-
Copy REVERSED_CLIENT_ID from googleServiceInfo.plist to url schemes
-
Copy Facebook scheme as fb32322323 to Url schemes
-
Copy these to App info.plist
FacebookAppID: 123456789
FacebookDisplayName: AppName
GADApplicationIdentifier: ca-aasasasas
LSApplicationQueriesSchemes Array
fbapi, fb-messenger-api, fbauth2, fbshareextension, twitter, twitterauth, fb-messenger-share-api
- In app capabilities enable push notifications
- In app capabilities - Background modes, enable Background fetch and remote notifications
- Copy credits.py to App directory and add the run script to generate credits.plist
./credits.py -s "${PODS_ROOT}" -o "$SRCROOT/PPT/Credits.plist"
- Add the created credits.plist file to App.
TaleneCore Architecture Diagram.pdf
TaleneCore is available under the MIT license. See the LICENSE file for more info.