-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
99 additions
and
72 deletions.
There are no files selected for viewing
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
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Apr 10 15:27:10 PDT 2013 | ||
#Sat Nov 01 13:49:50 JST 2014 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.12-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-all.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,13 @@ buildscript { | |
} | ||
} | ||
|
||
// local.properties | ||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
def j8Home = properties.getProperty('java8_home') | ||
def j7Home = properties.getProperty('java7_home') | ||
def m2dir = properties.getProperty('upload.dir') | ||
|
||
apply plugin: 'android-sdk-manager' | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'retrolambda' | ||
|
@@ -22,14 +29,14 @@ android { | |
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
compileSdkVersion 20 | ||
buildToolsVersion "20.0.0" | ||
compileSdkVersion 21 | ||
buildToolsVersion "21.1" | ||
|
||
defaultConfig { | ||
// com.exampleはgoogle play に上げられなかった | ||
applicationId "jp.daneko.android.billing" | ||
applicationId "com.github.daneko.android.iab" | ||
minSdkVersion 15 | ||
targetSdkVersion 20 | ||
targetSdkVersion 21 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
|
@@ -60,8 +67,6 @@ dependencies { | |
|
||
provided 'org.projectlombok:lombok:1.14.8' | ||
|
||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
testCompile 'junit:junit:4.10' | ||
testCompile 'org.robolectric:robolectric:2.3' | ||
testCompile 'com.squareup.assertj:assertj-android:1.0.0' | ||
|
@@ -83,18 +88,13 @@ androidUnitTest { | |
} | ||
|
||
retrolambda { | ||
Properties properties = new Properties() | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
def j8Home = properties.getProperty('java8_home') | ||
def j7Home = properties.getProperty('java7_home') | ||
|
||
jdk j8Home ?: System.getenv("JAVA8_HOME") | ||
oldJdk j7Home ?: System.getenv("JAVA7_HOME") | ||
javaVersion JavaVersion.VERSION_1_7 | ||
//jvmArgs '-arg1', '-arg2' | ||
} | ||
|
||
|
||
/** | ||
* android-unit-test と retrolambda はpluginなので、評価後でないとtaskとして取得できない | ||
* また android-unit-test が提供する test / testClasses というコマンドのうちの前者に | ||
|
@@ -111,23 +111,40 @@ afterEvaluate { | |
/** | ||
* archive | ||
*/ | ||
|
||
task androidSourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.sourceFiles | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.sourceFiles | ||
} | ||
|
||
artifacts { | ||
archives androidSourcesJar | ||
archives androidSourcesJar | ||
} | ||
|
||
def repoPath = m2dir ?: "/tmp" | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
repository url: "file://${project.rootDir}/../android_inapp_library_maven/repository" | ||
pom.version = '0.0.1-SNAPSHOT' | ||
pom.groupId = 'jp.daneko' | ||
pom.artifactId = 'android-inapp-library' | ||
repositories { | ||
mavenDeployer { | ||
repository(url: uri("${repoPath}/repository")) | ||
pom.version = '0.0.1-SNAPSHOT' | ||
pom.groupId = 'com.github.daneko' | ||
pom.artifactId = 'android-inapp-library' | ||
pom.project { | ||
inceptionYear '2014' | ||
packaging 'aar' | ||
licenses { | ||
license { | ||
name 'The MIT License' | ||
url 'https://github.com/daneko/android-inapp-library/blob/master/LICENSE.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
scm { | ||
connection 'scm:https://[email protected]/daneko/android-inapp-library' | ||
developerConnection 'scm:[email protected]/daneko/android-inapp-library.git' | ||
url 'https://github.com/daneko/android-inapp-library' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
...p/daneko/android/inappv3/IabConstant.java → ...ithub/daneko/android/iab/IabConstant.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package jp.daneko.android.inappv3; | ||
package com.github.daneko.android.iab; | ||
|
||
import android.os.Bundle; | ||
|
||
|
4 changes: 2 additions & 2 deletions
4
...jp/daneko/android/inappv3/IabContext.java → ...github/daneko/android/iab/IabContext.java
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
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
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
2 changes: 1 addition & 1 deletion
2
...droid/inappv3/exception/IabException.java → ...o/android/iab/exception/IabException.java
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
2 changes: 1 addition & 1 deletion
2
...ndroid/inappv3/model/ActivityResults.java → ...ko/android/iab/model/ActivityResults.java
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
2 changes: 1 addition & 1 deletion
2
...ko/android/inappv3/model/BillingType.java → ...daneko/android/iab/model/BillingType.java
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
2 changes: 1 addition & 1 deletion
2
...ko/android/inappv3/model/IabItemType.java → ...daneko/android/iab/model/IabItemType.java
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
2 changes: 1 addition & 1 deletion
2
...daneko/android/inappv3/model/Product.java → ...hub/daneko/android/iab/model/Product.java
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
2 changes: 1 addition & 1 deletion
2
...ndroid/inappv3/model/ProductBaseInfo.java → ...ko/android/iab/model/ProductBaseInfo.java
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
2 changes: 1 addition & 1 deletion
2
...aneko/android/inappv3/model/Purchase.java → ...ub/daneko/android/iab/model/Purchase.java
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
2 changes: 1 addition & 1 deletion
2
...eko/android/inappv3/model/SkuDetails.java → .../daneko/android/iab/model/SkuDetails.java
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
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
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
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
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
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
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
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