Skip to content

Commit

Permalink
use default gradle structure + updated build tools
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamFP committed Jul 5, 2017
1 parent fdfa967 commit b99e0ea
Show file tree
Hide file tree
Showing 42 changed files with 37 additions and 60 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -57,3 +57,5 @@ build/platform-android-template\.xml
sample/out/

build/intermediates/

android/lib/build/
36 changes: 10 additions & 26 deletions android/build.gradle
@@ -1,33 +1,17 @@

apply plugin: 'com.android.library'
buildscript {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.facebook.android:facebook-android-sdk:4.19.0'
}

android {

useLibrary 'org.apache.http.legacy'

compileSdkVersion 25
buildToolsVersion '25.0.2'

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
repositories {
jcenter()
}

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
}
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
allprojects {
repositories {
jcenter()
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions android/lib/build.gradle
@@ -0,0 +1,20 @@

apply plugin: 'com.android.library'

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.facebook.android:facebook-android-sdk:4.19.0'
}

android {

useLibrary 'org.apache.http.legacy'

compileSdkVersion 25
buildToolsVersion '25.0.3'

defaultConfig {
minSdkVersion 16
targetSdkVersion 22
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions android/settings.gradle
@@ -0,0 +1 @@
include ':lib'
17 changes: 0 additions & 17 deletions build.gradle

This file was deleted.

11 changes: 4 additions & 7 deletions build/build.xml
Expand Up @@ -46,7 +46,7 @@
<target name="android" description="Build Android Library">

<!-- paths -->
<property name="build.intermediates" value="../android/build/intermediates"/>
<property name="build.intermediates" value="../android/lib/build/intermediates"/>
<property name="build.release" value="${build.intermediates}/bundles/release"/>
<property name="build.exploded-aar" value="${build.intermediates}/exploded-aar"/>

Expand All @@ -58,16 +58,16 @@
</exec>

<!-- clean the build -->
<exec executable="./gradlew" dir="..">
<exec executable="./gradlew" dir="../android">
<env key="JAVA_HOME" path="${java.home}"/>
<arg line="clean"/>
</exec>

<!-- compile the java code -->
<exec executable="./gradlew" dir="..">
<exec executable="./gradlew" dir="../android">
<env key="JAVA_HOME" path="${java.home}"/>
<env key="ANDROID_HOME" path="${android.sdk.home}"/>
<arg line=":android:assembleRelease"/>
<arg line=":lib:assembleRelease"/>
</exec>

<!-- get the jar -->
Expand All @@ -87,9 +87,6 @@
<exec executable="/bin/bash">
<arg value="extractJars.sh"/>
</exec>

<!-- remove the build classes -->
<delete dir="../android/build"/>
</target>

<!-- Actionscript -->
Expand Down
10 changes: 0 additions & 10 deletions settings.gradle

This file was deleted.

0 comments on commit b99e0ea

Please sign in to comment.