#####[1. Enable Deep Links](#1-enable-deep-links) #####[2. Setup Facebook SDK](#2-setup-facebook-sdk-1) #####[3. Deferred Deep Linking](#3-deferred-deep-linking-quan-trọng)
## 1. Enable Deep Links
To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.
- Homebrew
- Mountain Lion -> High Sierra
Based on this blogpost.
Install with Homebrew:
$ brew install postgresql
Run server:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence | |
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd" | |
version="2.1"> | |
<persistence-unit name="persistenceUnitName" transaction-type="RESOURCE_LOCAL"> | |
<properties> | |
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <!-- DB Driver --> |
In your command-line run the following commands:
brew doctor
brew update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For Android < 3.0 | |
@SuppressWarnings("unused") | |
public void openFileChooser(ValueCallback<Uri> uploadMsg) { | |
mUploadMessage = uploadMsg; | |
Intent i = new Intent(Intent.ACTION_GET_CONTENT); | |
i.addCategory(Intent.CATEGORY_OPENABLE); | |
i.setType("*/*"); | |
startActivityForResult(Intent.createChooser(i, getString(R.string.select_file)), REQUEST_SELECT_FILE_LEGACY); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//some time, frc section may be need section offset | |
@objc public protocol MFetchedResultsControllerOffsetSectionDelegate{ | |
func offsetSection() -> Int | |
} | |
class MFetchedResultsController: NSFetchedResultsController, NSFetchedResultsControllerDelegate { | |
weak var viewController: UIViewController? //UITableViewController UICollectionViewController | |
weak var scrollView: UIScrollView? //TableView CollectionView | |
weak var offsetSectionDelegate: MFetchedResultsControllerOffsetSectionDelegate? |