Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Commit

Permalink
add creds
Browse files Browse the repository at this point in the history
  • Loading branch information
ExploiTR committed Oct 14, 2018
1 parent 5ecf5a3 commit 77f655e
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 60 deletions.
7 changes: 7 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

static int code() {
Expand All @@ -61,4 +65,7 @@ dependencies {
implementation 'com.mindorks.android:prdownloader:0.4.0'
//noinspection GradleDependency
implementation 'com.google.android.exoplayer:exoplayer:r2.5.0'
implementation ('de.psdev.licensesdialog:licensesdialog:1.9.0'){
exclude group: 'com.android.support'
}
}
8 changes: 2 additions & 6 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
<data android:host="za.youtube.com" />
</intent-filter>
</activity>
<activity android:name=".AboutActivity" />
<activity android:name=".AboutActivity" android:theme="@style/Base.Theme.AppCompat.Light.DarkActionBar"/>

<meta-data
android:name="io.fabric.ApiKey"
android:value="###################################" />
android:value="b531c330857e24f378d562b1176ce4574483c2be" />

<activity
android:name=".DownloadsActivity"
Expand All @@ -92,10 +92,6 @@
android:name=".BookMarkActivity"
android:theme="@style/AppTheme.BookmarkActivity" />

<activity
android:name=".MediaPlayer"
android:theme="@style/AppTheme.NoActionBar" />

<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"
Expand Down
101 changes: 54 additions & 47 deletions app/src/main/java/app/exploitr/nsg/youp3/AboutActivity.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package app.exploitr.nsg.youp3;

import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import de.psdev.licensesdialog.LicensesDialog;
import de.psdev.licensesdialog.licenses.ApacheSoftwareLicense20;
import de.psdev.licensesdialog.licenses.MITLicense;
import de.psdev.licensesdialog.model.Notice;
import de.psdev.licensesdialog.model.Notices;

public class AboutActivity extends Activity {

Expand All @@ -17,54 +18,60 @@ protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);

Button ok = (Button) findViewById(R.id.OK);
TextView url = (TextView) findViewById(R.id.url);
TextView giturl = (TextView) findViewById(R.id.giturl);
findViewById(R.id.OK).setOnClickListener(v -> finish());

ok.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
findViewById(R.id.url).setOnClickListener(v -> {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://exploitrme.wordpress.com/"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
});

url.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

Context context = getApplicationContext();
String urlString = "http://exploitrme.wordpress.com/";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(urlString));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setPackage("com.android.chrome");
try {
context.startActivity(intent);
} catch (ActivityNotFoundException ex) {
// Chrome browser presumably not installed so allow user to choose instead
intent.setPackage(null);
context.startActivity(intent);
}

}
findViewById(R.id.giturl).setOnClickListener(v -> {
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://github.com/exploitr/youp3"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
});

giturl.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
findViewById(R.id.osl).setOnClickListener(v -> {
Notices notices = new Notices();
notices.addNotice(new Notice("Apache Commons IO",
"https://commons.apache.org/proper/commons-io/",
"Apache.org",
new ApacheSoftwareLicense20()));
notices.addNotice(new Notice("Android Support Libraries",
"https://developer.android.com/topic/libraries/support-library/packages",
"Google",
new ApacheSoftwareLicense20()));
notices.addNotice(new Notice("OverWatchProgress",
"https://github.com/zjywill/OverwatchProgress",
"Junyi Zhang",
new ApacheSoftwareLicense20()));
notices.addNotice(new Notice("Ion",
"https://github.com/koush/ion/",
"Koushik Dutta",
new ApacheSoftwareLicense20()));
notices.addNotice(new Notice("RapidFloatingActionButton",
"https://github.com/wangjiegulu/RapidFloatingActionButton",
"Wang Jie",
new ApacheSoftwareLicense20()));
notices.addNotice(new Notice("Android-Youtube-Extractor",
"https://github.com/HaarigerHarald/android-youtubeExtractor",
" Benjamin Huber",
new MITLicense()));
notices.addNotice(new Notice("PRDownloader",
"https://github.com/MindorksOpenSource/PRDownloader",
"Mondorks",
new ApacheSoftwareLicense20()));
notices.addNotice(new Notice("Exoplayer",
"https://github.com/google/ExoPlayer",
"Google",
new ApacheSoftwareLicense20()));

Context context = getApplicationContext();
String urlString = "http://github.com/exploitr/youp3";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(urlString));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setPackage("com.android.chrome");
try {
context.startActivity(intent);
} catch (ActivityNotFoundException ex) {
// Chrome browser presumably not installed so allow user to choose instead
intent.setPackage(null);
context.startActivity(intent);
}
}
new LicensesDialog.Builder(AboutActivity.this)
.setNotices(notices)
.setIncludeOwnLicense(true)
.build()
.show();
});

}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/utils/Helper.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class Helper {

private static final String API_KEY = "AIzaSyCcCIKRDOsePYwE88FZC5KNXG8KUpDr3oM"; //certificate restricted key

public static void verb(@NonNull Object what) {
public static void verb(@NonNull String what) {
Log.v("YouP3", what.toString());
}

Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/action_layout_nav_drawer.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Spinner xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/spinner"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical"
Expand Down
12 changes: 10 additions & 2 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,18 @@

</ScrollView>

<Button
android:id="@+id/osl"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.2"
android:text="@string/osl" />

<Button
android:id="@+id/OK"
style="?android:attr/borderlessButtonStyle"
android:layout_width="fill_parent"
style="@style/Widget.AppCompat.Button.Colored"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.2"
android:text="@string/okay" />
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/menu/mux_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/create_book"
android:icon="@drawable/ic_bookmark"
android:orderInCategory="0"
android:title="@string/bookmark"
app:showAsAction="ifRoom" />

<item
android:id="@+id/show_book"
android:icon="@drawable/ic_bookmarks"
android:orderInCategory="1"
android:title="@string/show_bookmarks"
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<string name="dev_mail">By ExploiTR</string>
<string name="dsl">This application is only to be used for personal purposes. Please read the TOS Section.</string>
<string name="lsc">YouP3 is licensed under the terms of Apache 2.0 license.\n</string>
<string name="lsc2">Application logo,status logos and theme logos are copyright of the developer.Additionally, some icons have been distributed under the CC-BY 4.0 license and are copyrighted by Google, Inc.\n\nIon is copyright of Koushik Dutta\n\nOverWatchProgressView is copyright of Junyi Zhang\n\nNavBar Cover Art by Devany Walsh\n</string>
<string name="lsc2">Application logo,status logos and theme logos are copyright of the developer.Additionally, some icons have been distributed under the CC-BY 4.0 license and are copyrighted by Google, Inc.\n\nNavBar Cover Art by Devany Walsh\n</string>
<string name="license">License</string>
<string name="disclaimer">Disclaimer</string>
<string name="http_github_com_exploitr_login">http://github.com/exploitr/youp3</string>
Expand Down Expand Up @@ -37,4 +37,5 @@
<string name="show_bookmarks">Show Bookmarks</string>
<string name="no_bookmarks">No Bookmarks</string>
<string name="go_pages">Go Pages</string>
<string name="osl">Open Source Licenses</string>
</resources>

0 comments on commit 77f655e

Please sign in to comment.