Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit d436c30

Browse files
Merge pull request #1425 from reicast/ac/dropbox
Update Dropbox API from 1.6 to 3.0
2 parents 84bf6ab + 2a6ef72 commit d436c30

File tree

10 files changed

+577
-402
lines changed

10 files changed

+577
-402
lines changed

shell/android-studio/reicast/build.gradle

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ android {
3939
ndk {
4040
moduleName "dc"
4141
abiFilters 'armeabi-v7a', 'x86'
42-
moduleName "sexplay"
43-
abiFilters 'armeabi-v7a', 'x86'
4442
}
4543
}
4644

@@ -56,11 +54,13 @@ android {
5654
buildTypes {
5755
debug {
5856
debuggable true
57+
minifyEnabled true
5958
zipAlignEnabled true
59+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
6060
}
6161
release {
6262
debuggable false
63-
minifyEnabled false
63+
minifyEnabled true
6464
zipAlignEnabled true
6565
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
6666
signingConfig signingConfigs.release
@@ -101,6 +101,7 @@ dependencies {
101101
implementation 'org.bouncycastle:bcprov-jdk16:1.46'
102102
implementation 'commons-io:commons-io:2.6'
103103
implementation 'org.apache.commons:commons-lang3:3.7'
104+
implementation 'com.dropbox.core:dropbox-core-sdk:3.0.9'
104105
implementation ('com.googlecode.json-simple:json-simple:1.1.1') {
105106
exclude module: 'junit'
106107
}
-159 KB
Binary file not shown.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# This is a configuration file for ProGuard.
2+
# http://proguard.sourceforge.net/index.html#manual/usage.html
3+
# Optimizations: If you don't want to optimize, use the
4+
# proguard-android.txt configuration file instead of this one, which
5+
# turns off the optimization flags. Adding optimization introduces
6+
# certain risks, since for example not all optimizations performed by
7+
# ProGuard works on all versions of Dalvik. The following flags turn
8+
# off various optimizations known to have issues, but the list may not
9+
# be complete or up to date. (The "arithmetic" optimization can be
10+
# used if you are only targeting Android 2.0 or later.) Make sure you
11+
# test thoroughly if you go this route.
12+
-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
13+
-optimizationpasses 5
14+
-allowaccessmodification
15+
-dontpreverify
16+
# The remainder of this file is identical to the non-optimized version
17+
# of the Proguard configuration file (except that the other file has
18+
# flags to turn off optimization).
19+
-dontusemixedcaseclassnames
20+
-dontskipnonpubliclibraryclasses
21+
-verbose
22+
-keepattributes *Annotation*
23+
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
24+
-keepclasseswithmembernames class * {
25+
native <methods>;
26+
}
27+
# keep setters in Views so that animations can still work.
28+
# see http://proguard.sourceforge.net/manual/examples.html#beans
29+
-keepclassmembers public class * extends android.view.View {
30+
void set*(***);
31+
*** get*();
32+
}
33+
# We want to keep methods in Activity that could be used in the XML attribute onClick
34+
-keepclassmembers class * extends android.app.Activity {
35+
public void *(android.view.View);
36+
}
37+
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
38+
-keepclassmembers enum * {
39+
public static **[] values();
40+
public static ** valueOf(java.lang.String);
41+
}
42+
-keepclassmembers class * implements android.os.Parcelable {
43+
public static final android.os.Parcelable$Creator CREATOR;
44+
}
45+
-keepclassmembers class **.R$* {
46+
public static <fields>;
47+
}
48+
49+
-keep class com.reicast.** {*;}
50+
-keepclassmembers class com.reicast.** {*;}
51+
52+
# The support library contains references to newer platform versions.
53+
# Don't warn about those in case this app is linking against an older
54+
# platform version. We know about them, and they are safe.
55+
-dontwarn android.support.**
56+
-dontwarn okio.**
57+
-dontwarn okhttp3.**
58+
-dontwarn com.squareup.okhttp.**
59+
-dontwarn com.google.appengine.**
60+
-dontwarn java.io.**
61+
-dontwarn java.nio.file.**
62+
-dontwarn javax.naming.**
63+
-dontwarn javax.servlet.**
64+
-dontwarn junit.textui.**
65+
66+
-keepattributes Signature
67+
-keepattributes InnerClasses
68+
69+
-keepattributes Exceptions,SourceFile,LineNumberTable

shell/android-studio/reicast/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@
101101
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
102102
</activity>
103103
<activity
104-
android:name="com.dropbox.client2.android.AuthActivity"
104+
android:name="com.dropbox.core.android.AuthActivity"
105105
android:configChanges="orientation|keyboard"
106-
android:launchMode="singleTask" >
106+
android:launchMode="singleTask">
107107
<intent-filter>
108-
<data android:scheme="db-7d7tw1t57sbzrj5" />
108+
<data android:scheme="db-lowa9ps6h5k7zbo" />
109109
<action android:name="android.intent.action.VIEW" />
110110
<category android:name="android.intent.category.BROWSABLE" />
111111
<category android:name="android.intent.category.DEFAULT" />

0 commit comments

Comments
 (0)