switch to DropboxSDK 3.0.3 to ensure future compatability
enable proguard on the main app in order not to hit the DEX limit 64k
This commit is contained in:
Binary file not shown.
BIN
src/JavaFileStorageBindings/Jars/dropbox-core-sdk-3.0.3.jar
Normal file
BIN
src/JavaFileStorageBindings/Jars/dropbox-core-sdk-3.0.3.jar
Normal file
Binary file not shown.
@@ -20,7 +20,7 @@
|
|||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>0</WarningLevel>
|
||||||
<AndroidLinkMode>None</AndroidLinkMode>
|
<AndroidLinkMode>None</AndroidLinkMode>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
@@ -95,9 +95,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedReferenceJar Include="Jars\okhttp-digest-1.7.jar" />
|
<EmbeddedReferenceJar Include="Jars\okhttp-digest-1.7.jar" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
|
||||||
<EmbeddedReferenceJar Include="Jars\dropbox-core-sdk-2.1.1.jar" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedReferenceJar Include="Jars\gson-2.3.1.jar" />
|
<EmbeddedReferenceJar Include="Jars\gson-2.3.1.jar" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
@@ -161,4 +158,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<EmbeddedReferenceJar Include="Jars\okio-1.9.0.jar" />
|
<EmbeddedReferenceJar Include="Jars\okio-1.9.0.jar" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedJar Include="Jars\dropbox-core-sdk-3.0.3.jar" />
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@@ -11,6 +11,12 @@
|
|||||||
<remove-node path="/api/package[@name='com.jcraft.jsch.jcraft']" />
|
<remove-node path="/api/package[@name='com.jcraft.jsch.jcraft']" />
|
||||||
<remove-node path="/api/package[@name='com.jcraft.jzlib']" />
|
<remove-node path="/api/package[@name='com.jcraft.jzlib']" />
|
||||||
|
|
||||||
|
<remove-node path="/api/package[@name='com.dropbox.core']" />
|
||||||
|
<remove-node path="/api/package[@name='com.dropbox.core.util']" />
|
||||||
|
<remove-node path="/api/package[@name='com.dropbox.core.http']" />
|
||||||
|
<remove-node path="/api/package[@name='com.dropbox.core.v2.sharing']" />
|
||||||
|
<remove-node path="/api/package[@name='com.dropbox.core.v2.team']" />
|
||||||
|
|
||||||
<remove-node path="/api/package[@name='keepass2android.javafilestorage.webdav']" />
|
<remove-node path="/api/package[@name='keepass2android.javafilestorage.webdav']" />
|
||||||
<remove-node path="/api/package[@name='keepass2android.javafilestorage.onedrive']" />
|
<remove-node path="/api/package[@name='keepass2android.javafilestorage.onedrive']" />
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@@ -44,7 +44,7 @@ dependencies {
|
|||||||
compile 'com.google.apis:google-api-services-drive:v2-rev102-1.16.0-rc'
|
compile 'com.google.apis:google-api-services-drive:v2-rev102-1.16.0-rc'
|
||||||
//compile 'com.dropbox.core:dropbox-core-sdk:2.0.1'
|
//compile 'com.dropbox.core:dropbox-core-sdk:2.0.1'
|
||||||
//compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing: true
|
//compile group: 'com.dropbox.core', name: 'dropbox-core-sdk', version: '0-SNAPSHOT', changing: true
|
||||||
compile 'com.dropbox.core:dropbox-core-sdk:2.1.1'
|
compile 'com.dropbox.core:dropbox-core-sdk:3.0.3'
|
||||||
//onedrive:
|
//onedrive:
|
||||||
compile('com.onedrive.sdk:onedrive-sdk-android:1.2+') {
|
compile('com.onedrive.sdk:onedrive-sdk-android:1.2+') {
|
||||||
transitive = false
|
transitive = false
|
||||||
|
Binary file not shown.
Binary file not shown.
@@ -51,7 +51,7 @@ public class DropboxV2Storage extends JavaFileStorageBase
|
|||||||
|
|
||||||
}
|
}
|
||||||
DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("kp2a")
|
DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("kp2a")
|
||||||
.withHttpRequestor(OkHttp3Requestor.INSTANCE)
|
.withHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.defaultOkHttpClient()))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
final static private String TAG = "KP2AJ";
|
final static private String TAG = "KP2AJ";
|
||||||
|
@@ -29,6 +29,8 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply plugin: 'com.getkeepsafe.dexcount'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':android-filechooser')
|
compile project(':android-filechooser')
|
||||||
compile project(':JavaFileStorage')
|
compile project(':JavaFileStorage')
|
||||||
|
@@ -9,7 +9,9 @@ buildscript {
|
|||||||
|
|
||||||
// NOTE: Do not place your application dependencies here; they belong
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
// in the individual module build.gradle files
|
// in the individual module build.gradle files
|
||||||
|
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.7.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
@@ -35,15 +35,16 @@
|
|||||||
<Command type="BeforeBuild" command="UseManifestDebug.bat" />
|
<Command type="BeforeBuild" command="UseManifestDebug.bat" />
|
||||||
</CustomCommands>
|
</CustomCommands>
|
||||||
</CustomCommands>
|
</CustomCommands>
|
||||||
<EmbedAssembliesIntoApk>False</EmbedAssembliesIntoApk>
|
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
|
||||||
<Debugger>Xamarin</Debugger>
|
<Debugger>Xamarin</Debugger>
|
||||||
<DevInstrumentationEnabled>True</DevInstrumentationEnabled>
|
<DevInstrumentationEnabled>True</DevInstrumentationEnabled>
|
||||||
<AndroidSupportedAbis>armeabi,armeabi-v7a,x86</AndroidSupportedAbis>
|
<AndroidSupportedAbis>armeabi,armeabi-v7a,x86</AndroidSupportedAbis>
|
||||||
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
|
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||||
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
|
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
|
||||||
<BundleAssemblies>False</BundleAssemblies>
|
<BundleAssemblies>False</BundleAssemblies>
|
||||||
<AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi>
|
<AndroidCreatePackagePerAbi>False</AndroidCreatePackagePerAbi>
|
||||||
<AndroidEnableMultiDex>False</AndroidEnableMultiDex>
|
<AndroidEnableMultiDex>False</AndroidEnableMultiDex>
|
||||||
|
<EnableProguard>true</EnableProguard>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
@@ -70,7 +71,7 @@
|
|||||||
<AotAssemblies>False</AotAssemblies>
|
<AotAssemblies>False</AotAssemblies>
|
||||||
<EnableLLVM>False</EnableLLVM>
|
<EnableLLVM>False</EnableLLVM>
|
||||||
<AndroidEnableMultiDex>False</AndroidEnableMultiDex>
|
<AndroidEnableMultiDex>False</AndroidEnableMultiDex>
|
||||||
<EnableProguard>False</EnableProguard>
|
<EnableProguard>true</EnableProguard>
|
||||||
<DevInstrumentationEnabled>False</DevInstrumentationEnabled>
|
<DevInstrumentationEnabled>False</DevInstrumentationEnabled>
|
||||||
<DebugSymbols>False</DebugSymbols>
|
<DebugSymbols>False</DebugSymbols>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -253,6 +254,7 @@
|
|||||||
</AndroidResource>
|
</AndroidResource>
|
||||||
<AndroidAsset Include="Assets\fontawesome-webfont.ttf" />
|
<AndroidAsset Include="Assets\fontawesome-webfont.ttf" />
|
||||||
<AndroidAsset Include="Assets\SourceCodePro-Regular.ttf" />
|
<AndroidAsset Include="Assets\SourceCodePro-Regular.ttf" />
|
||||||
|
<ProguardConfiguration Include="proguard.cfg" />
|
||||||
<None Include="Resources\AboutResources.txt" />
|
<None Include="Resources\AboutResources.txt" />
|
||||||
<None Include="filelist.txt">
|
<None Include="filelist.txt">
|
||||||
<Visible>False</Visible>
|
<Visible>False</Visible>
|
||||||
|
15
src/keepass2android/proguard.cfg
Normal file
15
src/keepass2android/proguard.cfg
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
-dontobfuscate
|
||||||
|
-dontwarn
|
||||||
|
-ignorewarnings
|
||||||
|
|
||||||
|
-keep public class keepass2android.kp2afilechooser.* {*; }
|
||||||
|
|
||||||
|
-keep public class group.pals.android.lib.ui.filechooser.** {*; }
|
||||||
|
-keep public class group.pals.android.lib.ui.filechooser.providers.** {*; }
|
||||||
|
|
||||||
|
|
||||||
|
-keepclassmembers class * extends android.view.View {
|
||||||
|
*** set*(***);
|
||||||
|
}
|
||||||
|
|
||||||
|
-keep class com.squareup.okhttp.**
|
Reference in New Issue
Block a user