Skip to content

Commit

Permalink
re-added build gradle file, fixed gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
dandalf committed May 19, 2017
1 parent ea375e4 commit 7ed13a8
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 4 deletions.
56 changes: 52 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
build*
local.properties

# Built application files
*.apk
*.ap_
Expand Down Expand Up @@ -42,6 +39,17 @@ captures/
.idea/gradle.xml
.idea/dictionaries
.idea/libraries
.idea/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# File-based project format:
*.ipr
*.iws

# Keystore files
*.jks
Expand All @@ -55,4 +63,44 @@ google-services.json
# Freeline
freeline.py
freeline/
freeline_project_description.json
freeline_project_description.json

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml


# [Maven] ========================
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties

# [Gradle-Android] ========================

# Ignore Gradle GUI config
gradle-app.setting

# Gradle Signing
signing.properties
trestle.keystore

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

# Misc
.DS_Store
/captures
**/*.iml
*.class

.idea/
53 changes: 53 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import com.android.builder.core.BuilderConstants;

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.2'
}
}

apply plugin: 'com.android.library'
apply from: 'maven-push.gradle'

android {
compileSdkVersion 25
buildToolsVersion '25.0.3'

defaultConfig {
minSdkVersion 14
targetSdkVersion 25
versionCode 3
versionName "${VERSION_NAME}"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}

task jar(type: Jar) {
archiveName "cc-android-sdk-${VERSION_NAME}.jar"
from android.sourceSets.main.java.srcDirs
}

android.libraryVariants.all { variant ->
def name = variant.buildType.name
if (name == BuilderConstants.DEBUG) {
return // Skip debug builds.
}
def task = project.tasks.create "jar${name.capitalize()}", Jar
task.dependsOn variant.javaCompile
task.from variant.javaCompile.destinationDir
artifacts.add('archives', task)
}

dependencies {
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.android.gms:play-services-ads:10.2.6'
}
Empty file added gradle.properties
Empty file.

0 comments on commit 7ed13a8

Please sign in to comment.