Giter Site home page Giter Site logo

til's People

Watchers

James Cloos avatar Vien Vu avatar

til's Issues

iOS Universalink firebase

  • If we use firebase dynamic link for universal link. We can use custom domain firebase support , and if we setting "appAssociation": "AUTO" in firebase.json.
  • We just update team ID, appID and google will generate apple-app-site-association for us. But when we update it will need times to hosting refresh.

Custom Pod

  • Release pod with zip. we must set s.source = { :http => 'url to zip file' }
  • custom podspec and zip file: pod "", :podspec => "Url file pod spec".
  • If we take pod spec on github we must get a raw file link
  • Raw file on enterprise github will have token, we can't use this
  • push pod to private, it will build again

Get list devices from Apple portal

  • Open developer portal site
  • Open device list
  • Open console and paste this code
var data = document.querySelectorAll(".infinite-scroll-component .row");

var deviceListString = "Device ID\tDevice Name\tDevice Platform\n"
for (var i = 1; i < data.length; i++) {
  deviceListString += (data[i].childNodes[1].innerText + "\t" + data[i].childNodes[0].innerText + "\t" + (data[i].childNodes[2].innerText == "iPhone" || data[i].childNodes[2].innerText == "iPad" || data[i].childNodes[2].innerText == "Apple Watch" ? "ios" : "mac") + "\n");
}

console.log(deviceListString);

https://stackoverflow.com/questions/16052814/export-devices-added-in-apples-ios-provision-portal

iOS Universal Link

All step to settup and work with universal link:

Fast genrate Array

If I want to create array with a fixed number of default values, we can use Array(repeating:count:).

Example:

var digitCounts = Array(repeating: 0, count: 10)
print(digitCounts)
// Prints "[0, 0, 0, 0, 0, 0, 0, 0, 0, 0]"

Date Formatter

  • Some bug with time, time server in most case we should set calendar to Gregorian
  • Convert Time from current Calendar to Gregorian Calendar:
    NSDate *localDate1 = [NSDate date];
    NSCalendar *calendar = [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
    NSDateComponents *components = [calendar componentsInTimeZone:calendar.timeZone fromDate:localDate1];
    NSDate *localDate = [calendar dateFromComponents:components];

Localization Info.plist

  • Add InfoPlist.strings file.
  • Localization for this file
  • Add corresponding key and text for each file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.