-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to sdk 28, use minSdk=14, remove duplicate tests
- Loading branch information
Showing
33 changed files
with
114 additions
and
1,277 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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
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
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
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
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,84 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
dependencies { | ||
implementation 'com.github.openintents:distribution:1.1.3' | ||
} | ||
|
||
android { | ||
compileSdkVersion 28 | ||
buildToolsVersion '28.0.3' | ||
|
||
defaultConfig { | ||
applicationId "org.openintents.filemanager.demo" | ||
versionCode 40 | ||
versionName "2.2.3" | ||
minSdkVersion 14 | ||
targetSdkVersion 28 | ||
|
||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
sourceSets { | ||
main { | ||
manifest.srcFile 'AndroidManifest.xml' | ||
java.srcDirs = ['src'] | ||
resources.srcDirs = ['src'] | ||
aidl.srcDirs = ['src'] | ||
renderscript.srcDirs = ['src'] | ||
res.srcDirs = ['res'] | ||
assets.srcDirs = ['assets'] | ||
jni.srcDirs = ['jni'] | ||
} | ||
|
||
|
||
// Move the build types to build-types/<type> | ||
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | ||
// This moves them out of them default location under src/<type>/... which would | ||
// conflict with src/ being used by the main source set. | ||
// Adding new build types or product flavors should be accompanied | ||
// by a similar customization. | ||
debug.setRoot('build-types/debug') | ||
release.setRoot('build-types/release') | ||
} | ||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | ||
|
||
applicationVariants.all { variant -> | ||
variant.outputs.each { output -> | ||
def outputFile = output.outputFile | ||
if (outputFile != null && outputFile.name.endsWith('.apk')) { | ||
def fileName = outputFile.name.replace('.apk', "-${versionName}.apk") | ||
output.outputFileName = new File(output.outputFile.parent, fileName).getName() | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
def propertyFile = new File(projectDir, "build-private.properties") | ||
if (propertyFile && propertyFile.exists()) { | ||
signingConfigs { | ||
release { | ||
Properties props = new Properties() | ||
props.load(new FileInputStream(propertyFile)) | ||
|
||
storeFile file(props.getProperty("key.store")) | ||
storePassword props.getProperty("key.store.password") | ||
keyAlias props.getProperty("key.alias") | ||
keyPassword props.getProperty("key.alias.password") | ||
} | ||
} | ||
buildTypes.release.signingConfig signingConfigs.release | ||
println "Release apks will be signed!" | ||
} else { | ||
println "For signed release apks you need to create a build-private.properties file" | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.