-
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.
DramaItalia 1.2 version is now open source under the Apache 2.0 License.
- Loading branch information
0 parents
commit aebb593
Showing
164 changed files
with
8,342 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,83 @@ | ||
# Built application files | ||
*.apk | ||
*.ap_ | ||
*.aab | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
release/ | ||
|
||
# Gradle files | ||
*.gradle | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio captures folder | ||
captures/ | ||
|
||
# IntelliJ | ||
*.iml | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/gradle.xml | ||
.idea/assetWizardSettings.xml | ||
.idea/dictionaries | ||
.idea/libraries | ||
# Android Studio 3 in .gitignore file. | ||
.idea/caches | ||
.idea/modules.xml | ||
# Comment next line if keeping position of elements in Navigation Editor is relevant for you | ||
.idea/navEditor.xml | ||
|
||
# Keystore files | ||
# Uncomment the following lines if you do not want to check your keystore files in. | ||
#*.jks | ||
#*.keystore | ||
|
||
# External native build folder generated in Android Studio 2.2 and later | ||
.externalNativeBuild | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
# google-services.json | ||
|
||
# Freeline | ||
freeline.py | ||
freeline/ | ||
freeline_project_description.json | ||
|
||
# fastlane | ||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
fastlane/test_output | ||
fastlane/readme.md | ||
|
||
# Version control | ||
vcs.xml | ||
|
||
# lint | ||
lint/intermediates/ | ||
lint/generated/ | ||
lint/outputs/ | ||
lint/tmp/ | ||
# lint/reports/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,49 @@ | ||
# Add project specific ProGuard rules here. | ||
# By default, the flags in this file are appended to flags specified | ||
# in C:\Users\Andrei Conache\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt | ||
# You can edit the include path and order by changing the proguardFiles | ||
# directive in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# Add any project specific keep options here: | ||
|
||
# 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 | ||
|
||
# android support | ||
-dontwarn android.support.v7.** | ||
-keep class android.support.v7.** { *; } | ||
-keep interface android.support.v7.** { *; } | ||
|
||
# jsoup | ||
-keeppackagenames org.jsoup.nodes | ||
|
||
# volley | ||
-keepclasseswithmembernames interface com.android.volley.** { *; } | ||
-keep class java.io.**{*;} | ||
-keep class android.net.**{*;} | ||
-keep class org.apache.http.**{*;} | ||
-keep class android.net.http.AndroidHttpClient{*;} | ||
-keep class com.android.volley.** {*;} | ||
-keep class com.android.volley.toolbox.** {*;} | ||
-keep class com.android.volley.Response$* { *; } | ||
-keep class com.android.volley.Request$* { *; } | ||
-keep class com.android.volley.RequestQueue$* { *; } | ||
-keep class com.android.volley.toolbox.HurlStack$* { *; } | ||
-keep class com.android.volley.toolbox.ImageLoader$* { *; } | ||
-keep class org.apache.commons.logging.** | ||
|
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,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="and.conachegroup.dramaitalia"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
|
||
<application | ||
android:name=".DramaItalia" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme" | ||
android:usesCleartextTraffic="true" | ||
android:fullBackupContent="false"> | ||
|
||
<meta-data | ||
android:name="android.max_aspect" | ||
android:value="2.1" /> | ||
|
||
<activity | ||
android:name=".activities.MainActivity" | ||
android:label="@string/app_name" | ||
android:screenOrientation="portrait" | ||
android:configChanges="orientation|screenSize|keyboardHidden" | ||
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=".activities.SettingsActivity" | ||
android:label="@string/action_settings" | ||
android:screenOrientation="portrait" | ||
android:configChanges="keyboardHidden|orientation|screenSize" /> | ||
|
||
<activity | ||
android:name=".activities.LicensesActivity" | ||
android:label="@string/licenses" | ||
android:screenOrientation="portrait" | ||
android:configChanges="keyboardHidden|orientation|screenSize" /> | ||
</application> | ||
</manifest> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions
41
app/src/main/java/and/conachegroup/dramaitalia/DramaItalia.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,41 @@ | ||
package and.conachegroup.dramaitalia; | ||
|
||
import android.annotation.SuppressLint; | ||
import android.app.Application; | ||
import android.content.Context; | ||
import android.content.SharedPreferences; | ||
import android.preference.PreferenceManager; | ||
|
||
public class DramaItalia extends Application { | ||
|
||
@SuppressLint("StaticFieldLeak") | ||
private static Context mContext; | ||
@SuppressLint("StaticFieldLeak") | ||
private static DramaItalia sInstance; | ||
|
||
// global resources | ||
public SharedPreferences prefs; | ||
|
||
public static Context getContext() { | ||
return mContext; | ||
} | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
mContext = this; | ||
sInstance = this; | ||
|
||
prefs = PreferenceManager.getDefaultSharedPreferences(this); | ||
} | ||
|
||
@Override | ||
public void onLowMemory() { | ||
Runtime.getRuntime().gc(); | ||
super.onLowMemory(); | ||
} | ||
|
||
public synchronized static DramaItalia getInstance() { | ||
return sInstance; | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
app/src/main/java/and/conachegroup/dramaitalia/activities/LicensesActivity.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,35 @@ | ||
package and.conachegroup.dramaitalia.activities; | ||
|
||
import android.os.Bundle; | ||
import androidx.appcompat.app.AppCompatActivity; | ||
import android.view.MenuItem; | ||
|
||
import and.conachegroup.dramaitalia.fragments.LicensesFragment; | ||
|
||
public class LicensesActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(and.conachegroup.dramaitalia.R.layout.activity_licenses); | ||
|
||
if (getSupportActionBar() != null) { | ||
getSupportActionBar().setDisplayHomeAsUpEnabled(true); | ||
} | ||
|
||
getFragmentManager().beginTransaction().replace( | ||
and.conachegroup.dramaitalia.R.id.content_frame, new LicensesFragment()).commit(); | ||
} | ||
|
||
@Override | ||
public boolean onOptionsItemSelected(MenuItem item) { | ||
switch (item.getItemId()) { | ||
case android.R.id.home: | ||
finish(); | ||
break; | ||
default: | ||
break; | ||
} | ||
return super.onOptionsItemSelected(item); | ||
} | ||
} |
Oops, something went wrong.