- Open https://console.firebase.google.com
- Add new project (If created earlier select existing)
- Fill project name and country and create a project
- Select Dynamic Links from left drawer menu
- Select platform you want to add
- Enter Package Name / Bundle ID
- Enter Nickname (Optional)
- Register your app, Download config file for respective platforms and add these to projects
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
// | |
// GIF2MP4.swift | |
// | |
// Created by PowHu Yang on 2017/1/24. | |
// Copyright © 2017 PowHu Yang. All rights reserved. | |
// | |
/* | |
let data = try! Data(contentsOf: Bundle.main.url(forResource: "gif", withExtension: "gif")!) | |
let tempUrl = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp.mp4") | |
GIF2MP4(data: data)?.convertAndExport(to: tempUrl, completion: { }) |
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
/* | |
* Thanks to icaliman for aws signer | |
* you can download aws signer from https://github.com/icaliman/parse-aws-sign | |
*/ | |
var image = request.object.get('image');//base 64 encoded image | |
Parse.Cloud.run('awsUpload', { image: image }, { | |
success: function(resp) { | |
console.log('aws success url'+resp); | |
request.object.set("snappImageUrl" ,resp);//save image to object |