gradle fixes
This commit is contained in:
parent
13fcd545cb
commit
e372f23ae7
2 changed files with 32 additions and 21 deletions
|
|
@ -8,23 +8,28 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
def properties = new Properties()
|
def properties = new Properties()
|
||||||
try {
|
def propertiesFile = rootProject.file("local.properties")
|
||||||
def propertiesFile = rootProject.file("local.properties")
|
|
||||||
properties.load(new FileInputStream(propertiesFile))
|
|
||||||
}catch(IOException ignored){}
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
namespace 'com.deniscerri.ytdlnis'
|
namespace 'com.deniscerri.ytdlnis'
|
||||||
compileSdk 33
|
compileSdk 33
|
||||||
|
|
||||||
signingConfigs {
|
if(propertiesFile.exists()){
|
||||||
debug {
|
try {
|
||||||
storeFile file(properties["signingConfig.storeFile"])
|
properties.load(new FileInputStream(propertiesFile))
|
||||||
storePassword properties["signingConfig.storePassword"]
|
signingConfigs {
|
||||||
keyAlias properties["signingConfig.keyAlias"]
|
debug {
|
||||||
keyPassword properties["signingConfig.keyPassword"]
|
storeFile file(properties["signingConfig.storeFile"])
|
||||||
}
|
storePassword properties["signingConfig.storePassword"]
|
||||||
|
keyAlias properties["signingConfig.keyAlias"]
|
||||||
|
keyPassword properties["signingConfig.keyPassword"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}catch(IOException ignored){}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.deniscerri.ytdl"
|
applicationId "com.deniscerri.ytdl"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,24 @@
|
||||||
//pluginManagement {
|
pluginManagement {
|
||||||
// repositories {
|
repositories {
|
||||||
//gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
// google()
|
google()
|
||||||
// mavenCentral()
|
jcenter()
|
||||||
// }
|
mavenCentral()
|
||||||
//}
|
maven { url 'https://jitpack.io' }
|
||||||
|
maven { url "https://dl.bintray.com/kodein-framework/Kodein-DI" }
|
||||||
|
}
|
||||||
|
}
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
jcenter()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven { url 'https://jitpack.io' }
|
||||||
|
maven { url "https://dl.bintray.com/kodein-framework/Kodein-DI" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootProject.name = "YTDLnis"
|
rootProject.name = "YTDLnis"
|
||||||
include ':app', ':benchmark'
|
|
||||||
|
include ':common', ':app', ':library', ':ffmpeg'
|
||||||
|
include ':benchmark'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue