forked from zhaoxianjin/91porn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
techGay
committed
Nov 29, 2017
0 parents
commit 8dff4cd
Showing
125 changed files
with
6,408 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 91Porn | ||
91Porn Android 客户端,突破游客每天观看10次视频的限制,还可以下载视频 | ||
|
||
### 技术概览 | ||
rxjava+retrofit+rxcache+mvp+jsoup | ||
|
||
### 目前具备功能: | ||
1. 浏览首页及各分类页面信息 | ||
2. 播放视频,下载视频(基本上大多数视频需要挂代理才能观看) | ||
3. 收藏视频(仅本地功能,列表左滑可看见收藏按钮,其他功能类似),导出收藏视频链接(视频下载和导出的链接均在存储卡91Porn目录下) | ||
|
||
### 未来 | ||
1. 更换视频播放器 | ||
2. 基于91Porn自身用户系统做更多功能(没账号,遥遥无期...) | ||
3. 更多未及想到的及bug修复 | ||
|
||
### 下载APK(当然你也可以下载源码自己编译) | ||
[release页面会上传最新版本APK](https://github.com/techGay/91Porn/releases) | ||
|
||
|
||
### 声明 | ||
本项目仅做技术交流使用,任何人或组织无论以何种形式将其用在其他任何地方由此引发的各种问题均与本人无关 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'io.objectbox' // after applying Android plugin | ||
android { | ||
compileSdkVersion 26 | ||
defaultConfig { | ||
applicationId "com.u91porn" | ||
minSdkVersion 16 | ||
targetSdkVersion 26 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation fileTree(include: ['*.jar'], dir: 'libs') | ||
implementation 'com.android.support:appcompat-v7:26.1.0' | ||
implementation 'com.android.support.constraint:constraint-layout:1.0.2' | ||
implementation 'com.android.support:support-v4:26.1.0' | ||
testImplementation 'junit:junit:4.12' | ||
androidTestImplementation 'com.android.support.test:runner:1.0.1' | ||
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' | ||
compile 'com.android.support:support-vector-drawable:26.1.0' | ||
implementation 'com.android.support:design:26.1.0' | ||
compile 'com.squareup.retrofit2:retrofit:2.3.0' | ||
compile 'com.squareup.retrofit2:converter-scalars:2.3.0' | ||
compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0' | ||
// jsoup HTML parser library @ https://jsoup.org/ | ||
compile 'org.jsoup:jsoup:1.11.1' | ||
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.33' | ||
// code generator for view | ||
compile "com.jakewharton:butterknife:$rootProject.butterKnifeVersion" | ||
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterKnifeVersion" | ||
compile 'io.reactivex.rxjava2:rxjava:2.1.6' | ||
compile 'io.reactivex.rxjava2:rxandroid:2.0.1' | ||
implementation 'com.android.support:recyclerview-v7:26.1.0' | ||
compile 'com.github.franmontiel:PersistentCookieJar:v1.0.1' | ||
compile 'com.facebook.fresco:fresco:1.5.0' | ||
compile 'com.orhanobut:logger:2.1.1' | ||
compile 'com.squareup.okhttp3:logging-interceptor:3.9.0' | ||
compile 'cn.jzvd:jiaozivideoplayer:6.1.2' | ||
compile 'com.hannesdorfmann.mosby3:mvp:3.0.4' | ||
// Plain MVP' | ||
compile 'com.trello.rxlifecycle2:rxlifecycle:2.2.1' | ||
// If you want to bind to Android-specific lifecycles | ||
compile 'com.trello.rxlifecycle2:rxlifecycle-android:2.2.1' | ||
// If you want pre-written Activities and Fragments you can subclass as providers | ||
compile 'com.trello.rxlifecycle2:rxlifecycle-components:2.2.1' | ||
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.4' | ||
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4' | ||
compile 'com.danikula:videocache:2.7.0' | ||
//rxcache | ||
compile 'com.github.VictorAlbertos.RxCache:runtime:1.8.1-2.x' | ||
// To use Gson | ||
compile 'com.github.VictorAlbertos.Jolyglot:gson:0.0.3' | ||
//compile 'com.yanzhenjie:recyclerview-swipe:1.1.3' | ||
compile 'com.github.AItsuki:SwipeMenuRecyclerView:1.1.1' | ||
compile 'com.liulishuo.filedownloader:library:1.6.8' | ||
compile 'com.ycjiang:loadviewhelper:1.1.0' | ||
compile 'com.liulishuo.filedownloader:library:1.6.8' | ||
compile 'com.yanzhenjie:permission:1.1.2' | ||
implementation 'com.android.support:cardview-v7:26.1.0' | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
26 changes: 26 additions & 0 deletions
26
app/src/androidTest/java/com/u91porn/ExampleInstrumentedTest.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.u91porn; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() throws Exception { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("com.u91porn", appContext.getPackageName()); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.u91porn"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<!--允许读取手机状态 用于创建BmobInstallation--> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<!--获取wifi网络状态的信息 --> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<!--保持CPU 运转,屏幕和键盘灯有可能是关闭的,用于文件上传和下载 --> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
<application | ||
android:name=".MyApplication" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name=".ui.main.MainActivity" | ||
android:theme="@style/AppTheme.NoActionBar"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".ui.play.PlayVideoActivity" | ||
android:configChanges="orientation|screenSize|keyboardHidden" | ||
android:screenOrientation="portrait" /> | ||
<activity android:name=".ui.download.DownloadActivity" /> | ||
<activity android:name=".ui.favorite.FavoriteActivity" /> | ||
<provider | ||
android:authorities="com.u91porn.fileprovider" | ||
android:name="android.support.v4.content.FileProvider" | ||
android:grantUriPermissions="true" | ||
android:exported="false"> | ||
<meta-data | ||
android:name="android.support.FILE_PROVIDER_PATHS" | ||
android:resource="@xml/filepaths"/> | ||
</provider> | ||
</application> | ||
|
||
</manifest> |
Oops, something went wrong.