2015-06-27ï¼åï¼ã¨ãã¹ã¿!!TOKYOã®LTè³æã§ããç ä¿®ãå å®ãããããã«ãã£ã¦ãããã¨ãªã©ãç°¡åã«ç´¹ä»ãããã®ã§ããRead less
以åãã¡ãã®è¨äºã§ãAlamofireãèªãã§ãã¦æ°ã¥ããSwiftã®ä¾¿å©ãªæ¸ãæ¹ã«ã¤ãã¦ãç´¹ä»ãã¾ããã Alamofireããå¦ã¶Swiftå®è·µãã¯ãã㯠ä»åã¯ä»ã®ã©ã¤ãã©ãªãããæ°ã«ãªã£ãæ¸ãæ¹ããç´¹ä»ãããã¨æãã¾ãã 追å å¯è½ãªenumã®ããã«ä½¿ããstaticãããã㣠ã©ã¤ãã©ãªå SwiftyUserDefaults å 容 SwiftyUserDefaultsã¯UserDefaultsã便å©ã«ä½¿ãããã®ã©ã¤ãã©ãªã§ãã ãã¼ã®å®ç¾©ã¨subscriptå¼æ°ã®å ¥ãæ¹ã«ç¹å¾´ãããã¾ãã extension DefaultsKeys { static let username = DefaultsKey<String?>("username") static let launchCount = DefaultsKey<Int>("launchCount") } let usern
fun openMyAppPlayStore() { val id = BuildConfig.applicationIdForStore try { context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + id))) } catch (anfe: android.content.ActivityNotFoundException) { context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=" + id))) } } BuildConfig.applicationIdForStoreã¯è¿½å ã§è¨å®ãããã®ã§è©³ç´°ã¯å¾ã§è¨è¼ãã¾ã
ãã®è¨äºã¯ãæè¡ç¿»è¨³ Advent Calendar 2016 ã®15æ¥ç®ã§ãï¼æ ã空ãã¦ãã®ã§åæã«ãéªéãã¦ã¾ãï¼ãååï¼6æ¥ç®ï¼ã¯ãid:msyksphinz ããã®ãå人ã趣å³ã§æè¡æ¸ã翻訳ããã¨ããæ義ã«ã¤ãã¦ãã§ããã ä»åãç´¹ä»ããã®ã¯ãæ¨å¹´æ«ã«å ¬éããã Kris Jenkins ãã (@krisajenkins) ã® "What Is Functional Programming?" ã§ããæ¥æ¬èªè¨³ã®å ¬éã«ã¤ãã¦ã¯èè ããæ¿è«¾æ¸ã¿ã§ããã¾ããLondon Functional Programmers meetup ã§ã®åã¿ã¤ãã«ã®è¬æ¼åç»ãå ¬éããã¦ãã¾ãã é¢æ°åããã°ã©ãã³ã°ã®èãæ¹ã¯ãä¸éã§ã¯ã©ããå°é£ãã話ã ã¨æããã¦ããç¯ãããã¾ãããã®çç±ã®ä¸ã¤ã«ãè°è«ã®æ½è±¡åº¦ãï¼æ¯è¼çï¼é«ããã¨ãæããããã§ããããä¾ãã°ã以åãã®ããã°ã§ç´¹ä»ããããªãé¢æ°ããã°ã©ãã³ã°
Firebaseã使ãæºå ã¾ãã¯ä¸ãµã¤ãã§æ°ããããã¸ã§ã¯ããä½æãã¾ãã Firebase Console ããã¸ã§ã¯ããä½æããã¨ä»¥ä¸ã®ãããªç»é¢ã«ãªãã®ã§iOS ã¢ããªã« Firebase ã追å ãé¸ã³ã¾ãã æ å ±ãå ¥åãã¦ã¢ããªã追å ãã¾ãã 次ç»é¢ã«ç§»åããã¨GoogleService-Info.plistã¨ãããã¡ã¤ã«ã®ãã¦ã³ãã¼ããéå§ãã¾ãã ãã®ãã¡ã¤ã«ã¯å¾ã§ä½¿ãã¾ãã 次ã¯Xcodeã§ããã¸ã§ã¯ããä½æãã¾ãã SingleViewApplicationãé¸æãã¾ãã 次ã«Firebaseãã¤ã³ã¹ãã¼ã«ãã¾ãã Podsãã¡ã¤ã«ãä½æãã¦ä»¥ä¸ã®ããã«ä¿®æ£ãã¦ä¸ããã platform :ios, â10.0â target 'MyApp' do use_frameworks! pod 'Firebase/Core' pod 'Firebase/RemoteConfig
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}