Skip to content

Commit 4816e9c

Browse files
authored
Merge pull request #59 from what3words/staging
1.1.1
2 parents 5e7a1f0 + 404900b commit 4816e9c

File tree

11 files changed

+246
-278
lines changed

11 files changed

+246
-278
lines changed

.circleci/config.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- checkout
1414
- restore_cache:
15-
key: jars2-{{ checksum "build.gradle" }}-{{ checksum "lib/build.gradle" }}
15+
key: jars2-{{ checksum "build.gradle.kts" }}-{{ checksum "lib/build.gradle.kts" }}
1616
- run:
1717
name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
1818
command: sudo chmod +x ./gradlew
@@ -25,7 +25,7 @@ jobs:
2525
- save_cache:
2626
paths:
2727
- ~/.gradle
28-
key: jars2-{{ checksum "build.gradle" }}-{{ checksum "lib/build.gradle" }}
28+
key: jars2-{{ checksum "build.gradle.kts" }}-{{ checksum "lib/build.gradle.kts" }}
2929
- android/create-avd:
3030
avd-name: testDevice
3131
system-image: system-images;android-30;google_apis;x86
@@ -35,21 +35,21 @@ jobs:
3535
no-window: true
3636
restore-gradle-cache-prefix: v2a
3737
- android/run-tests:
38-
test-command: ./gradlew lib:jacocoTestReport
38+
test-command: ./gradlew lib:connectedDebugAndroidTest
3939
max-tries: 3
4040
- android/save-gradle-cache:
4141
cache-prefix: v2a
4242
- store_test_results:
4343
path: lib/build/outputs/androidTest-results
4444
deploy-to-sonatype:
45-
docker:
46-
- image: cimg/android:2023.05-browsers
47-
environment:
48-
JVM_OPTS: -Xmx3200m
45+
executor:
46+
name: android/android-machine
47+
resource-class: large
48+
tag: 2023.05.1
4949
steps:
5050
- checkout
5151
- restore_cache:
52-
key: jars-{{ checksum "build.gradle" }}-{{ checksum "lib/build.gradle" }}
52+
key: jars-{{ checksum "build.gradle.kts" }}-{{ checksum "lib/build.gradle.kts" }}
5353
- run:
5454
name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
5555
command: sudo chmod +x ./gradlew
@@ -62,7 +62,7 @@ jobs:
6262
- save_cache:
6363
paths:
6464
- ~/.gradle
65-
key: jars-{{ checksum "build.gradle" }}-{{ checksum "lib/build.gradle" }}
65+
key: jars-{{ checksum "build.gradle.kts" }}-{{ checksum "lib/build.gradle.kts" }}
6666
- run:
6767
name: Force break line gradle properties
6868
command: echo -e '\n' >> gradle.properties
@@ -72,6 +72,10 @@ jobs:
7272
echo $GPG_SIGNING_KEY \
7373
| awk 'NR == 1 { print "SIGNING_KEY=" } 1' ORS='\\n' \
7474
>> gradle.properties
75+
- run:
76+
name: Snapshot Release Check
77+
command: |
78+
echo -e "\nIS_SNAPSHOT_RELEASE=$( [[ "${CIRCLE_BRANCH}" =~ ^epic.* ]] && echo true || echo false )" >> gradle.properties
7579
- run:
7680
name: Publish to Maven
7781
command: ./gradlew assemble publish
@@ -91,4 +95,6 @@ workflows:
9195
- mobile
9296
filters:
9397
branches:
94-
only: /^(beta)\/.*/
98+
only:
99+
- /^(epic)\/.*/
100+
- staging

build.gradle

Lines changed: 0 additions & 37 deletions
This file was deleted.

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
dependencies {
3+
classpath("org.jacoco:org.jacoco.core:0.8.9")
4+
classpath("com.android.tools.build:gradle:8.5.0")
5+
}
6+
}
7+
plugins {
8+
id("com.android.library") version "8.5.0" apply false
9+
id("org.jetbrains.kotlin.android") version "1.8.20" apply false
10+
id("org.jetbrains.kotlin.plugin.parcelize") version "1.8.20" apply false
11+
id("com.autonomousapps.dependency-analysis") version "1.20.0"
12+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ kotlin.code.style=official
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
2323
android.nonTransitiveRClass=true
24-
android.defaults.buildfeatures.buildconfig=true
2524
android.nonFinalResIds=false
25+
LIBRARY_VERSION = 1.1.1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Feb 14 12:46:52 GMT 2023
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

lib/build.gradle

Lines changed: 0 additions & 158 deletions
This file was deleted.

0 commit comments

Comments
 (0)