Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release' of https://github.com/substratum/substratum in…
Browse files Browse the repository at this point in the history
…to release
  • Loading branch information
AsdMonio committed Dec 9, 2018
2 parents a22f74d + 22732c4 commit f5b2e2d
Show file tree
Hide file tree
Showing 40 changed files with 409 additions and 673 deletions.
180 changes: 0 additions & 180 deletions app/build.gradle

This file was deleted.

113 changes: 113 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/*
* Copyright (c) 2016-2018 Projekt Substratum
* This file is part of Substratum.
*
* SPDX-License-Identifier: GPL-3.0-Or-Later
*/

import java.io.FileInputStream
import java.io.IOException
import java.util.Properties

plugins {
id("com.android.application")
}

val keystorePropertiesFile = rootProject.file("keystore.properties")
val buildTypeRelease = "release"

fun gitHash(): String {
try {
return Runtime.getRuntime().exec("git describe --tags").inputStream.reader().use { it.readText() }.trim()
} catch (ignored: IOException) {
}
return ""
}

android {
compileSdkVersion(28)
dataBinding.isEnabled = true
defaultConfig {
applicationId = "projekt.substratum"
minSdkVersion(24)
targetSdkVersion(28)
versionCode = 1013
versionName = "one thousand thirteen"
buildConfigField("java.util.Date", "buildTime", "new java.util.Date(${System.currentTimeMillis()}L)")
buildConfigField("String", "GIT_HASH", "\"${gitHash()}\"")
buildConfigField("boolean", "ENHANCED_LOGGING", "false")
setProperty("archivesBaseName", "substratum_${gitHash()}")
}
compileOptions {
setSourceCompatibility(JavaVersion.VERSION_1_8)
setTargetCompatibility(JavaVersion.VERSION_1_8)
}
if (keystorePropertiesFile.exists()) {
val keystoreProperties = Properties()
keystoreProperties.load(FileInputStream(keystorePropertiesFile))

signingConfigs {
create(buildTypeRelease) {
keyAlias = keystoreProperties["keyAlias"].toString()
keyPassword = keystoreProperties["keyPassword"].toString()
storeFile = rootProject.file(keystoreProperties["storeFile"].toString())
storePassword = keystoreProperties["storePassword"].toString()
}
}
}
buildTypes {
getByName(buildTypeRelease) {
if (keystorePropertiesFile.exists()) signingConfig = signingConfigs.getByName("release")
isMinifyEnabled = false
//proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
dexOptions {
setJavaMaxHeapSize("2048m")
}
lintOptions.isAbortOnError = false
}

dependencies {
val aboutVersion = "6.2.0"
val androidXVersion = "1.0.0"
val apkSigVersion = "3.2.1"
val caocVersion = "2.2.0"
// Apparently v2.6 relies on the framework
// having java.nio.File which Android 7 does not.
val commonsIoVersion = "2.5"
val databindingVersion = "3.2.1"
val expandableLayoutVersion = "2.9.2"
val fabSheetVersion = "1.2.1"
val floatingHeadVersion = "2.4.0"
val gestureRecyclerVersion = "1.7.0"
val glideVersion = "4.8.0"
val imageCropperVersion = "2.8.0"
val svgViewVersion = "1.0.6"
val welcomeVersion = "1.4.1"
val ztZipVersion = "1.13"

annotationProcessor("com.github.bumptech.glide:compiler:$glideVersion")
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
implementation("androidx.appcompat:appcompat:1.0.2")
implementation("androidx.cardview:cardview:$androidXVersion")
implementation("androidx.databinding:databinding-runtime:$databindingVersion")
implementation("androidx.palette:palette:$androidXVersion")
implementation("androidx.recyclerview:recyclerview:$androidXVersion")
implementation("cat.ereza:customactivityoncrash:$caocVersion")
implementation("commons-io:commons-io:$commonsIoVersion")
implementation("com.android.tools.build:apksig:$apkSigVersion")
implementation("com.github.bumptech.glide:glide:$glideVersion")
implementation("com.github.recruit-lifestyle:FloatingView:$floatingHeadVersion")
implementation("com.google.android.material:material:$androidXVersion")
implementation("com.gordonwong:material-sheet-fab:$fabSheetVersion")
implementation("com.jaredrummler:animated-svg-view:$svgViewVersion")
implementation("com.mikepenz:aboutlibraries:$aboutVersion@aar") {
isTransitive = true
}
implementation("com.stephentuso:welcome:$welcomeVersion")
implementation("com.theartofdev.edmodo:android-image-cropper:$imageCropperVersion")
implementation("com.thesurix.gesturerecycler:gesture-recycler:$gestureRecyclerVersion")
implementation("net.cachapa.expandablelayout:expandablelayout:$expandableLayoutVersion")
implementation("org.zeroturnaround:zt-zip:$ztZipVersion")
}
86 changes: 0 additions & 86 deletions app/google-services.json

This file was deleted.

Loading

0 comments on commit f5b2e2d

Please sign in to comment.