Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ local.properties
# Gradle files
.gradle/
build/

readme.txt

# Local configuration file (sdk path, etc)
local.properties
Expand All @@ -35,4 +35,4 @@ local.properties
proguard/

# Log Files
*.log
*.log
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## 英文原著阅读器

英文原著阅读器,可以通过单击单词查看释义、发音、例句。

### LICENSE

Copyright (C) 2018 wayne <[email protected]>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
7 changes: 6 additions & 1 deletion ambilWarna/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 19
buildToolsVersion "25.0.1"
buildToolsVersion '27.0.3'

defaultConfig {
minSdkVersion 8
Expand All @@ -14,5 +14,10 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {

}
sourceSets {
}
}
}
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@
buildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
classpath 'com.android.tools.build:gradle:3.1.3'
}
}

allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
7 changes: 6 additions & 1 deletion code/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

android {
compileSdkVersion 19
buildToolsVersion "25.0.1"
buildToolsVersion '27.0.3'

defaultConfig {
minSdkVersion 8
Expand All @@ -14,5 +14,10 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
debug {

}
sourceSets {
}
}
}
5 changes: 5 additions & 0 deletions fBReader/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
1.向上向下滑动出menu按钮,点击返回或者再次点击消失

-ZLTextRegion findRegion 返回字的内容可以利用它来完成后续翻译内容参数。
-2。左侧点击右侧点击翻页取消,
-3。单击换成dialog单词翻译。
37 changes: 25 additions & 12 deletions fBReader/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 19
buildToolsVersion "25.0.1"

compileSdkVersion 25
buildToolsVersion '26.0.2'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "org.geometerplus.zlibrary.ui.android"
minSdkVersion 8
targetSdkVersion 19
minSdkVersion 18
targetSdkVersion 25

ndk {
moduleName "DeflatingDecompressor-v3"
// moduleName "DeflatingDecompressor-v3"
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
// vectorDrawables.useSupportLibrary = true
}

buildTypes {
debug {

}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}

sourceSets {
main {
jni.srcDirs = []
Expand All @@ -28,15 +34,22 @@ android {
}

dependencies {
compile project(':ambilWarna')
compile project(':code')
compile project(':library')
compile project(':superToasts')
compile 'com.android.support:support-v4:19.1.0'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:25.0.1'
compile files('libs/LingvoIntegration_2.5.2.12.jar')
compile files('libs/httpmime-4.2.5.jar')
compile files('libs/json-simple-1.1.1.jar')
compile files('libs/nanohttpd-2.0.5.jar')
compile files('libs/open-dictionary-api-1.2.1.jar')
compile files('libs/pdfparse.jar')
}
implementation project(':ambilWarna')
implementation project(':code')
implementation project(':library')
implementation project(':superToasts')
implementation project(':translate_bd')
// compile 'com.google.code.gson:gson:2.3.0'
compile 'com.squareup.okhttp3:okhttp:3.9.1'
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'
compile 'pub.devrel:easypermissions:0.1.5'
}
2 changes: 2 additions & 0 deletions fBReader/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<data android:scheme="BookReadingException"/>
</intent-filter>
</activity>

<activity android:name="dyg.activity.TransWebViewActivity"></activity>
<activity android:name=".error.BugReportActivity" android:label="FBReader crash" android:theme="@style/FBReader.Activity" android:process=":crash" android:configChanges="orientation|keyboardHidden|screenSize" android:exported="false"/>
<activity android:name="org.geometerplus.android.fbreader.crash.FixBooksDirectoryActivity" android:theme="@style/FBReader.Dialog" android:process=":crash" android:configChanges="orientation|keyboardHidden|screenSize" android:exported="false">
<intent-filter>
Expand Down
27 changes: 27 additions & 0 deletions fBReader/src/main/java/dyg/activity/TransWebViewActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package dyg.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.webkit.WebView;
import android.widget.Toast;

import org.geometerplus.zlibrary.ui.android.R;

public class TransWebViewActivity extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main_tranlate_web);
Intent intent = getIntent();
String string = intent.getStringExtra("key");
if (string == null) {
Toast.makeText(this, "no key word ,can't translate", Toast.LENGTH_SHORT).show();
finish();
}
WebView webView = (WebView) findViewById(R.id.layout_webview);
webView.loadUrl("http://apii.dict.cn/mini.php?q=" + string);

}
}
Loading