frankthamel / TaleneCore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TaleneCore

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TaleneCore is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TaleneCore'

Setup TaleneCore

  1. Add pod library
	pod 'TaleneCore', :git => 'https://frankthamel@bitbucket.org/frankthamel/talenecore.git', :tag => '1.0.0'
  1. Call “configureTaleneCore” inside the AppDelegate.
  2. 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)")
		}

	}
  1. Set up a new Firebase project and add the GoogleServiceInfo.plist file to the app root.

  2. Set up a Google AdMob account and link admob to Firebase.

  3. Add AdMob key to info.plist GADApplicationIdentifier = key

  4. Copy color codes from Assets.xcassets to new Asset file

  5. Copy configs files form settings folder.

	Copy: 
	* FirebaseRemoteConfigs
	* Translations
	* Keys.swift
	* Keys.plist
	* Urls.swift
	* Urls.plist
	* LocalConfigs.swift
	* LocalConfigs.plist
  1. Copy REVERSED_CLIENT_ID from googleServiceInfo.plist to url schemes

  2. Copy Facebook scheme as fb32322323 to Url schemes

  3. 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
  1. In app capabilities enable push notifications
  2. In app capabilities - Background modes, enable Background fetch and remote notifications
  3. 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"
  1. Add the created credits.plist file to App.

TaleneCore Architecture Diagram

TaleneCore Architecture Diagram.pdf

Author

w.frankthamel@gmail.com

License

TaleneCore is available under the MIT license. See the LICENSE file for more info.

About

License:MIT License


Languages

Language:Swift 95.9%Language:Python 2.5%Language:Ruby 1.6%