Skip to content

Commit 1372638

Browse files
Merge pull request cropsly#16 from jacobtabak/jt-update-buildscripts
Update project to work with AS 1.X
2 parents 9f4e487 + d093cf8 commit 1372638

File tree

6 files changed

+27
-113
lines changed

6 files changed

+27
-113
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ proguard/
8181
### Intellij ###
8282
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm
8383

84-
/*.iml
84+
*.iml
8585

8686
## Directory-based project format:
8787
.idea/

FFmpegAndroid/build.gradle

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
apply plugin: 'com.android.library'
22

33
android {
4-
compileSdkVersion 16
5-
buildToolsVersion "20.0.0"
4+
compileSdkVersion rootProject.ext.compileSdkVersion as Integer
5+
buildToolsVersion rootProject.ext.buildToolsVersion as String
66

77
defaultConfig {
8-
applicationId "com.github.hiteshsondhi88.libffmpeg"
9-
minSdkVersion 16
10-
targetSdkVersion 16
11-
versionCode 25
12-
versionName "0.2.5"
8+
minSdkVersion rootProject.ext.minSdkVersion as Integer
9+
targetSdkVersion rootProject.ext.targetSdkVersion as Integer
10+
versionCode rootProject.ext.versionCode as Integer
11+
versionName rootProject.ext.versionName as String
1312
}
1413

1514
sourceSets.main {
@@ -20,7 +19,7 @@ android {
2019

2120
buildTypes {
2221
release {
23-
runProguard false
22+
minifyEnabled false
2423
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2524
}
2625
}

app/app.iml

-94
This file was deleted.

app/build.gradle

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 16
5-
buildToolsVersion "20.0.0"
4+
compileSdkVersion rootProject.ext.compileSdkVersion as Integer
5+
buildToolsVersion rootProject.ext.buildToolsVersion as String
66

77
defaultConfig {
88
applicationId "com.github.hiteshsondhi88.sampleffmpeg"
9-
minSdkVersion 16
10-
targetSdkVersion 20
11-
versionCode 25
12-
versionName "0.2.5"
9+
minSdkVersion rootProject.ext.minSdkVersion as Integer
10+
targetSdkVersion rootProject.ext.targetSdkVersion as Integer
11+
versionCode rootProject.ext.versionCode as Integer
12+
versionName rootProject.ext.versionName as String
1313
}
1414

1515
sourceSets.main {
@@ -24,7 +24,7 @@ android {
2424

2525
buildTypes {
2626
release {
27-
runProguard false
27+
minifyEnabled false
2828
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2929
}
3030
}

build.gradle

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:0.13.0'
8+
classpath 'com.android.tools.build:gradle:1.1.0'
99

1010
// NOTE: Do not place your application dependencies here; they belong
1111
// in the individual module build.gradle files
@@ -17,3 +17,12 @@ allprojects {
1717
jcenter()
1818
}
1919
}
20+
21+
ext {
22+
compileSdkVersion = 22
23+
buildToolsVersion = '22'
24+
targetSdkVersion = 22
25+
minSdkVersion = 16
26+
versionCode = 25
27+
versionName = "0.2.5"
28+
}
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Sep 19 11:20:39 GMT+05:30 2014
1+
#Tue Mar 17 16:54:04 CDT 2015
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip

0 commit comments

Comments
 (0)