Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit c0f5906

Browse files
author
cole stoltzfus
committed
couchbase package to v1
1 parent 8a21c59 commit c0f5906

123 files changed

Lines changed: 800 additions & 750 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitmodules

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
[submodule "libraries/couchbase-lite-java-core"]
22
path = libraries/couchbase-lite-java-core
3-
url = https://github.com/couchbase/couchbase-lite-java-core.git
4-
[submodule "libraries/couchbase-lite-java-forestdb"]
5-
path = libraries/couchbase-lite-java-forestdb
6-
url = https://github.com/couchbaselabs/couchbase-lite-java-forestdb.git
3+
url = https://github.com/hammerheadnav/couchbase-lite-java-core.git
4+
branch = release/1.4.1
75
[submodule "libraries/couchbase-lite-java-native"]
86
path = libraries/couchbase-lite-java-native
9-
url = https://github.com/couchbase/couchbase-lite-java-native
7+
url = https://github.com/hammerheadnav/couchbase-lite-java-native
8+
branch = release/1.4.1

build.gradle

Lines changed: 60 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ version = System.getenv("MAVEN_UPLOAD_VERSION")
99
buildscript {
1010
repositories {
1111
jcenter()
12+
google()
1213
}
1314
dependencies {
14-
classpath 'com.android.tools.build:gradle:2.1.2'
15+
classpath 'com.android.tools.build:gradle:3.6.4'
16+
}
17+
}
18+
19+
allprojects {
20+
repositories {
21+
google() // and here
22+
jcenter()
1523
}
1624
}
1725

@@ -21,13 +29,21 @@ repositories {
2129
mavenCentral()
2230
}
2331

32+
sourceSets {
33+
main {
34+
java.srcDirs = [
35+
'src/main/java'
36+
]
37+
}
38+
}
39+
2440
android {
2541
compileSdkVersion 24
2642
buildToolsVersion "24.0.0"
2743

2844
defaultConfig {
29-
minSdkVersion 9
30-
targetSdkVersion 24
45+
minSdkVersion 23
46+
targetSdkVersion 23
3147
versionCode 1
3248
versionName "1.0"
3349
}
@@ -37,6 +53,10 @@ android {
3753
targetCompatibility JavaVersion.VERSION_1_6
3854
}
3955

56+
sourceSets {
57+
main.java.srcDirs += 'src/main/java'
58+
}
59+
4060
buildTypes {
4161
release {
4262
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
@@ -63,18 +83,14 @@ dependencies {
6383
project(':libraries:couchbase-lite-java-core') :
6484
'com.couchbase.lite:couchbase-lite-java-core:' + version
6585

66-
compile buildAndroidWithArtifacts == null ?
67-
project(':libraries:couchbase-lite-java-native:sqlite-custom') :
68-
'com.couchbase.lite:couchbase-lite-android-sqlite-custom:' + version
86+
compile 'com.couchbase.lite:couchbase-lite-android-sqlite-custom:1.4.1'
6987

7088
// Libraries required for tests only:
71-
androidTestCompile buildAndroidWithArtifacts == null ?
72-
project(':libraries:couchbase-lite-java-native:sqlcipher') :
73-
'com.couchbase.lite:couchbase-lite-android-sqlcipher:' + version
89+
androidTestCompile 'com.couchbase.lite:couchbase-lite-android-sqlcipher:1.4.1'
7490

75-
androidTestCompile buildAndroidWithArtifacts == null ?
76-
project(':libraries:couchbase-lite-java-forestdb') :
77-
'com.couchbase.lite:couchbase-lite-android-forestdb:' + version
91+
// androidTestCompile buildAndroidWithArtifacts == null ?
92+
// project(':libraries:couchbase-lite-java-forestdb') :
93+
// 'com.couchbase.lite:couchbase-lite-android-forestdb:' + version
7894

7995
androidTestCompile 'commons-io:commons-io:2.0.1'
8096
androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.3.1'
@@ -124,38 +140,38 @@ task createMavenDirectory(type: Exec) {
124140
createMavenDirectory.onlyIf { System.getenv("MAVEN_UPLOAD_REPO_URL").contains("files") }
125141

126142
// first create the directory, then do the upload
127-
task uploadArchivesWrapper(dependsOn: createMavenDirectory) << {
128-
uploadArchives.execute()
129-
}
130-
131-
def mavenPath() {
132-
System.getenv("MAVEN_BUILD_LOCAL") == "true" ?
133-
'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath :
134-
System.getenv("MAVEN_UPLOAD_REPO_URL")
135-
}
136-
137-
// this will upload, but will not first create a directory (which is needed on some servers)
138-
uploadArchives {
139-
repositories {
140-
mavenDeployer {
141-
repository(url: mavenPath()) {
142-
authentication(userName: System.getenv("MAVEN_UPLOAD_USERNAME"), password: System.getenv("MAVEN_UPLOAD_PASSWORD"))
143-
}
144-
pom.version = System.getenv("MAVEN_UPLOAD_VERSION") != null ? System.getenv("MAVEN_UPLOAD_VERSION") : ''
145-
pom.groupId = 'com.couchbase.lite'
146-
pom.artifactId = 'couchbase-lite-android'
147-
pom.project {
148-
licenses {
149-
license {
150-
name 'Couchbase Community Edition License Agreement'
151-
url 'http://www.couchbase.com/agreement/community'
152-
distribution 'repo'
153-
}
154-
}
155-
}
156-
}
157-
}
158-
}
143+
//task uploadArchivesWrapper(dependsOn: createMavenDirectory) << {
144+
// uploadArchives.execute()
145+
//}
146+
//
147+
//def mavenPath() {
148+
// System.getenv("MAVEN_BUILD_LOCAL") == "true" ?
149+
// 'file://' + new File(System.getProperty('user.home'), '.m2/repository').absolutePath :
150+
// System.getenv("MAVEN_UPLOAD_REPO_URL")
151+
//}
152+
//
153+
//// this will upload, but will not first create a directory (which is needed on some servers)
154+
//uploadArchives {
155+
// repositories {
156+
// mavenDeployer {
157+
// repository(url: mavenPath()) {
158+
// authentication(userName: System.getenv("MAVEN_UPLOAD_USERNAME"), password: System.getenv("MAVEN_UPLOAD_PASSWORD"))
159+
// }
160+
// pom.version = System.getenv("MAVEN_UPLOAD_VERSION") != null ? System.getenv("MAVEN_UPLOAD_VERSION") : ''
161+
// pom.groupId = 'com.couchbase.lite'
162+
// pom.artifactId = 'couchbase-lite-android'
163+
// pom.project {
164+
// licenses {
165+
// license {
166+
// name 'Couchbase Community Edition License Agreement'
167+
// url 'http://www.couchbase.com/agreement/community'
168+
// distribution 'repo'
169+
// }
170+
// }
171+
// }
172+
// }
173+
// }
174+
//}
159175

160176

161177
task sourcesJar(type: Jar) {

gradle/wrapper/gradle-wrapper.jar

4.94 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Thu Aug 18 12:13:56 PDT 2016
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip

gradlew

Lines changed: 66 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)