-
-
Save basile-laderchi/d52cf28fe9971a84b2ba5e3b950d1f12 to your computer and use it in GitHub Desktop.
NCalc build files
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
/* | |
* Copyright 2017 Tran Le Duy | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
apply plugin: 'com.android.application' | |
android { | |
compileSdkVersion rootProject.ext.compileSdkVersion | |
buildToolsVersion rootProject.ext.buildToolsVersion | |
defaultConfig { | |
applicationId "com.duy.calculator.free.v2" | |
minSdkVersion rootProject.ext.minSdkVersion | |
targetSdkVersion rootProject.ext.targetSdkVersion | |
versionCode 400 | |
versionName "3.4.0" | |
multiDexEnabled true | |
} | |
signingConfigs { | |
release | |
} | |
//setupSigningConfig() | |
buildTypes { | |
release { | |
minifyEnabled true | |
signingConfig signingConfigs.release | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
lintOptions { | |
abortOnError false | |
disable 'MissingTranslation' | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
} | |
def setupSigningConfig() { | |
Properties props = new Properties() | |
def propFile = new File(rootProject.projectDir, 'signing.properties') | |
if (propFile.canRead()) { | |
props.load(new FileInputStream(propFile)) | |
android.signingConfigs.release.storeFile = file(props['RELEASE_STORE_FILE']) | |
android.signingConfigs.release.storePassword = props['RELEASE_STORE_PASSWORD'] | |
android.signingConfigs.release.keyAlias = props['RELEASE_KEY_ALIAS'] | |
android.signingConfigs.release.keyPassword = props['RELEASE_KEY_PASSWORD'] | |
} else { | |
android.buildTypes.release.signingConfig = null | |
throw new GradleException('signing.properties not found') | |
} | |
} | |
repositories { | |
maven { url "https://oss.sonatype.org/content/repositories/snapshots" } // 2 | |
mavenCentral() | |
} | |
dependencies { | |
api fileTree(include: ['*.jar'], dir: 'libs') | |
testImplementation 'junit:junit:4.12' | |
//api project(':symja_android_library-release') // 1 | |
//api 'com.github.tranleduy2000:symja_android_library:d58c33c' // 3 | |
//api 'com.google.guava:guava:27.0.1-android' // 3 | |
api 'org.matheclipse:matheclipse-core:1.0.0-SNAPSHOT' // 2 | |
annotationProcessor 'org.apache.logging.log4j:log4j-core:2.5' // 2 | |
api "com.android.support:appcompat-v7:$androidSupportVersion" | |
api "com.android.support:support-annotations:$androidSupportVersion" | |
api "com.android.support:support-v4:$androidSupportVersion" | |
api "com.android.support:design:$androidSupportVersion" | |
api "com.android.support:cardview-v7:$androidSupportVersion" | |
api "com.android.support:recyclerview-v7:$androidSupportVersion" | |
api 'com.android.support:multidex:1.0.3' | |
api 'io.github.kexanie.library:MathView:0.0.6' | |
api 'com.github.PhilJay:MPAndroidChart:v3.0.0-beta1' | |
api 'com.getkeepsafe.taptargetview:taptargetview:1.12.0' | |
api 'io.github.kobakei:ratethisapp:1.2.0' | |
api 'com.sothree.slidinguppanel:library:3.4.0' | |
api 'com.github.mukeshsolanki:MarkdownView-Android:1.0.8' | |
api 'com.miguelcatalan:materialsearchview:1.4.0' | |
api 'com.simplecityapps:recyclerview-fastscroll:1.0.20' | |
} |
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
/* | |
* Copyright 2017 Tran Le Duy | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, | |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
* See the License for the specific language governing permissions and | |
* limitations under the License. | |
*/ | |
// Top-level build file where you can add configuration options common to all sub-projects/modules. | |
buildscript { | |
repositories { | |
jcenter() | |
google() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.3.0' | |
} | |
} | |
allprojects { | |
repositories { | |
jcenter() | |
maven { url "https://jitpack.io" } | |
flatDir { | |
dirs '/libs' | |
} | |
google() | |
} | |
gradle.projectsEvaluated { | |
tasks.withType(JavaCompile) { | |
//options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" | |
} | |
} | |
} | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} | |
ext { | |
sdkVersion = 28 | |
compileSdkVersion = 28 | |
minSdkVersion = 15 | |
targetSdkVersion = 28 | |
androidSupportVersion = '28.0.0' | |
buildToolsVersion = "28.0.3" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment