Skip to content
This repository was archived by the owner on Aug 3, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ build/
*.orig

.gradle/
*.iml
.idea/
8 changes: 6 additions & 2 deletions Simple Facebook Sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ dependencies {
compile project(':Simple Facebook')
}

repositories {
mavenCentral()
}

android {
compileSdkVersion 19
buildToolsVersion "19"
buildToolsVersion "19.1.0"

defaultConfig {
minSdkVersion 8
minSdkVersion 9
targetSdkVersion 19
}

Expand Down
86 changes: 82 additions & 4 deletions Simple Facebook/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
apply plugin: 'android-library'
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "2.2" // library version

def siteUrl = 'https://github.com/sromku/android-simple-facebook' // project homepage
def gitUrl = 'https://github.com/sromku/android-simple-facebook.git' // project git
group = "<Your Group ID>"

dependencies {
compile project(':facebook-android-sdk:facebook')
compile 'com.facebook.android:facebook-android-sdk:3.23.1'
}

repositories {
mavenCentral()
}

android {
compileSdkVersion 19
buildToolsVersion "19"
buildToolsVersion "19.1.0"

defaultConfig {
minSdkVersion 8
minSdkVersion 9
targetSdkVersion 19
}

Expand All @@ -29,3 +41,69 @@ android {
}
}
}

install {
repositories.mavenInstaller {
// This generates POM. xml with proper parameters
pom {
project {
packaging 'aar'
name 'Simple to use Facebook SDK For Android'
url siteUrl
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer { // #CONFIG# Change to Your information
id 'takumalee'
name 'takumalee'
email 'vmgsahm1@gmail.com'
}
}
scm { connection gitUrl
developerConnection gitUrl
url siteUrl
}
}
}
}
}

task sourcesJar(type: Jar) {
from android. sourceSets .main.java.srcDirs
classifier = 'sources'
}

task javadoc(type: Javadoc) {
source = android. sourceSets .main.java.srcDirs
classpath += project.files( android.getBootClasspath(). join ( File.pathSeparator))
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives javadocJar
archives sourcesJar
}

Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
bintray {
key = properties.getProperty("bintray.apikey")
user = properties.getProperty("bintray.user")
configurations = ['archives']
pkg {
repo = "maven"
name = "SimpleFacebook" // #CONFIG# project name in jcenter
websiteUrl = siteUrl
vcsUrl = gitUrl
licenses = ["Apache-2.0"]
publish = true
}
}
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.android.tools.build:gradle:1.0.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.0'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
}
}

5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#Mon Jul 28 14:15:41 CST 2014
#Wed Mar 18 20:12:49 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-1.11-bin.zip

distributionUrl=https\://services.gradle.org/distributions/gradle-2.2.1-all.zip
11 changes: 11 additions & 0 deletions local.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## This file is automatically generated by Android Studio.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Wed Mar 18 19:25:08 CST 2015
sdk.dir=/Users/TakumaLee/Documents/Mobile/android/sdk
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ':facebook-android-sdk:facebook'
project(':facebook-android-sdk:facebook').projectDir = new File(settingsDir, '../facebook-android-sdk/facebook')
//include ':facebook-android-sdk:facebook'
//project(':facebook-android-sdk:facebook').projectDir = new File(settingsDir, '../facebook-android-sdk/facebook')
include ':Simple Facebook'
include ':Simple Facebook Sample'