(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
import android.app.Activity; | |
import android.app.Application; | |
import android.content.Context; | |
import android.content.ContextWrapper; | |
import android.os.Bundle; | |
import android.os.Looper; | |
import android.os.MessageQueue; | |
import android.util.Log; | |
import android.view.View; | |
import android.view.ViewTreeObserver; |
package com.ecloud.ssldemo; | |
import android.content.Context; | |
import android.util.Log; | |
import com.squareup.okhttp.OkHttpClient; | |
import org.apache.http.client.ClientProtocolException; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.conn.scheme.Scheme; |
def toCamelCase(String string) { | |
String result = "" | |
string.findAll("[^\\W]+") { String word -> | |
result += word.capitalize() | |
} | |
return result | |
} | |
afterEvaluate { project -> | |
Configuration runtimeConfiguration = project.configurations.getByName('compile') |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
-optimizationpasses 5 # 指定代码的压缩级别 | |
-dontusemixedcaseclassnames # 是否使用大小写混合 | |
-dontskipnonpubliclibraryclasses # 是否混淆第三方jar | |
-dontpreverify # 混淆时是否做预校验 | |
-keepattributes SourceFile,LineNumberTable # 混淆号错误信息里带上代码行 | |
-verbose # 混淆时是否记录日志 | |
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* # 混淆时所采用的算法 | |
-libraryjars libs/android_api.jar | |
-libraryjars libs/baidumapapi_v2_2_0.jar |