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
| import webbrowser | |
| import os | |
| #保存请求的网页,打开浏览器预览访问的网页 | |
| def requests_view(response): | |
| request_url = response.url | |
| base_url = '<head><base href="%s">' %request_url | |
| base_url = base_url.encode() | |
| content = response.content.replace(b'<head>', base_url) | |
| with open('tmp.html', 'wb') as tem_html: |
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
| import android.app.Activity | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Build | |
| import android.os.Bundle | |
| /** | |
| * Extensions for simpler launching of Activities | |
| */ |
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
| apply plugin: 'maven' | |
| task androidJavadocs(type: Javadoc) { | |
| options.encoding = "utf-8" | |
| source = android.sourceSets.main.java.srcDirs | |
| classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | |
| } | |
| task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) { | |
| classifier = 'javadoc' |