Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.0.0 #126

Merged
merged 244 commits into from
May 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
244 commits
Select commit Hold shift + click to select a range
b87b6ed
Add support for TLS 1.2 on API 16+
farhanjkhan May 8, 2018
2931d51
Add back final keyword
farhanjkhan May 9, 2018
5bab855
Bumping the minSdkVersion from 15 to 16
farhanjkhan May 9, 2018
f853d84
Merge branch 'next-release' into feature/tls_1_2
arun251 Aug 14, 2018
024a75b
Merge pull request #64 from launchdarkly/feature/tls_1_2
arun251 Aug 14, 2018
ff65ca3
Merge branch 'master' into next-release
arun251 Sep 12, 2018
44eed4a
Circle CI 2.0
nejifresh Sep 25, 2018
ba1fe52
Created new branch for multi-environment sdk feature
torchhound Oct 1, 2018
c47d2d5
Stub out new LDConfig and LDConfig.Builder code for multi-environment.
gavwhela Oct 1, 2018
73e4b98
Added overloaded init method in LDClient for creating secondary insta…
torchhound Oct 2, 2018
3962f10
Added getForMobileKey methods
torchhound Oct 2, 2018
c020ff9
Added LDClient init test for secondary environment, added exception t…
torchhound Oct 2, 2018
1956014
Move primary instance into general instances map. Begin on methods ef…
gavwhela Oct 2, 2018
cf10753
Removed incorrect LDClient test
torchhound Oct 2, 2018
a09191d
Fixed 1 failing test in LDClient, added multi-environment test file, …
torchhound Oct 2, 2018
e318b61
Removed unnecessary ListenableFuture in LDClient init, changed identi…
torchhound Oct 2, 2018
0fbe675
Added setOnlineStatus multi-environment changes
torchhound Oct 3, 2018
afe797a
Moved primaryEnvironmentName to LDConfig, simplifying by removing pri…
gavwhela Oct 6, 2018
babd1cd
Add back in constructor without environment to UserManager
gavwhela Oct 6, 2018
33fd8d7
Specialize HttpFeatureFlagFetcher to the environment, looks like User…
gavwhela Oct 6, 2018
eb93b8c
Added SharedPreferences migration strategy
Oct 6, 2018
43ded05
Merged UserManager changes
Oct 6, 2018
b595b6c
All tests pass, fixed migration strategy to conform to spec, fixed pr…
torchhound Oct 8, 2018
e8ac421
Update StreamUpdateProcessor construct to take an environment for the…
gavwhela Oct 9, 2018
441fa93
Fix issue with LDConfig mobileKeys hashmap creation.
gavwhela Oct 9, 2018
f0b68e6
Combine futures so LDClient init future waits on all online instances…
gavwhela Oct 10, 2018
1a039e1
Propagate IOException on closing instances to caller.
gavwhela Oct 10, 2018
baea3ff
Merge futures for identify call.
gavwhela Oct 10, 2018
fc665cf
Some changes from code review.
gavwhela Oct 11, 2018
783375d
Removed static from instanceId and now old SharedPreferences will onl…
Oct 11, 2018
f82c03f
Fixed instanceId
torchhound Oct 11, 2018
be1dd1c
Updates from PR review.
gavwhela Oct 17, 2018
f647f3b
Merge pull request #83 from launchdarkly/circlecimigrate
arun251 Oct 17, 2018
3dbab83
Merge branch 'master' into next-release
arun251 Oct 25, 2018
a8d4b53
Added version and flagVersion, if available
jamesthacker Nov 6, 2018
f2c456e
refactor(LDClient, LDConfig): changes for PR
torchhound Dec 12, 2018
9215b65
refactor(LDClient): changed isInternetConnected behavior for PR
torchhound Dec 12, 2018
5cce5b8
refactor(LDClient): removed async getForMobileKeys and wait seconds v…
torchhound Dec 12, 2018
f2d1343
Bugfix/timber cleanup (#92)
jamesthacker Jan 12, 2019
081ee16
Merge pull request #91 from launchdarkly/bugfix/ping-event-versions
gavwhela Jan 12, 2019
cac1e27
Fix crash when example app is backgrounded twice.
gwhelanLD Jan 14, 2019
ceaa85a
Merge pull request #93 from launchdarkly/bugfix/example-background-crash
torchhound Jan 15, 2019
84569fe
Merge remote-tracking branch 'remotes/origin/multi-environment' into …
gwhelanLD Jan 16, 2019
cd02ea3
Add security provider update mechanism using Google Play Services to
gwhelanLD Jan 22, 2019
6b135f4
Shared Preferences Fix for Multi Environment (#94)
torchhound Jan 22, 2019
55eef13
Fix edge cases in how multi-environment handles connection changes.
gwhelanLD Jan 22, 2019
562fd56
fix(UserManagerTest.java): incorrect number of arguments to UserManag…
Jan 22, 2019
9edb050
Remove line of testing code accidentally left in and refactor shared
gwhelanLD Jan 22, 2019
34c942a
Final fixes to store migration. Should be fairly future proof.
gwhelanLD Jan 22, 2019
fd0560c
Merge branch 'master' into next-release
gwhelanLD Jan 24, 2019
6ca1acd
Merge branch 'master' into next-release
gwhelanLD Jan 24, 2019
3b8faca
Merge branch 'master' into next-release
gwhelanLD Feb 4, 2019
964c5cd
Fix issue with primitive variation calls always returning null if fal…
gwhelanLD Feb 6, 2019
5fcd6b1
Remove CircleCI V1 config file. (#97)
gwhelanLD Feb 6, 2019
1f5eb1f
Remove getting/comparing versions as floats (#99)
gwhelanLD Feb 11, 2019
ae3791a
Include values in unknown summary events and compare values for (#100)
gwhelanLD Feb 11, 2019
a6061cf
simplify flag property deserialization
eli-darkly Feb 12, 2019
21677be
rm debugging
eli-darkly Feb 12, 2019
8d23b67
misc cleanup
eli-darkly Feb 12, 2019
86fb7f9
rm debugging
eli-darkly Feb 12, 2019
dc2d450
add eval reason data model classes
eli-darkly Feb 12, 2019
1b785e9
Merge branch 'next-release' into eb/ch31900/store-query-properties
eli-darkly Feb 12, 2019
2a76698
Merge branch 'eb/ch31900/store-query-properties' into eb/ch31891/eval…
eli-darkly Feb 12, 2019
18a488d
misc fixes
eli-darkly Feb 12, 2019
eb5a98f
serialize reason
eli-darkly Feb 12, 2019
eea98fc
Merge pull request #101 from launchdarkly/eb/ch31900/store-query-prop…
eli-darkly Feb 13, 2019
352eb42
add ability to receive evaluation reasons from LD
eli-darkly Feb 13, 2019
a82e02d
Merge pull request #102 from launchdarkly/eb/ch31891/eval-reasons
eli-darkly Feb 14, 2019
c544f75
Merge pull request #103 from launchdarkly/eb/ch31891/get-reasons
eli-darkly Feb 14, 2019
503cfcb
Changed shared preferences store system to user a single FlagStore
gwhelanLD Feb 14, 2019
213dd47
add methods to get value with explanation; refactor existing variatio…
eli-darkly Feb 15, 2019
bd6ad95
Abstract FlagStoreManager from FlagStore, new FlagStoreFactory class …
gwhelanLD Feb 15, 2019
8460f0c
Handle null case in allFlags, actually commit changes to UserManager.
gwhelanLD Feb 15, 2019
d7e5d64
Merge branch 'gw/ch29266/flagstore' into eb/ch31891/variation-detail
eli-darkly Feb 15, 2019
f565301
Hopefully fix edge cases in summary event reporting to pass testing.
gwhelanLD Feb 15, 2019
0b3d570
Hopefully fix edge cases in summary event reporting to pass testing.
gwhelanLD Feb 16, 2019
709e107
Simplify getFeaturesJsonObject as no longer using -1 as placeholder f…
gwhelanLD Feb 16, 2019
1804437
Make Flag non-mutable. Move GsonCache to gson package, move custom se…
gwhelanLD Feb 19, 2019
261d90c
Send summary event even if stored flag doesn't exist.
gwhelanLD Feb 21, 2019
f4fb467
Move sendSummaryEvent update code to UserSummaryEventSharedPreference…
gwhelanLD Feb 21, 2019
7489890
Update SharedPrefsFlagStore to hold StoreUpdatedListener in weak refe…
gwhelanLD Feb 22, 2019
5766828
Migration code for upcoming flagstore.
gwhelanLD Feb 22, 2019
57f645d
Remove couple of debug messages.
gwhelanLD Feb 22, 2019
aeec638
Handle todos.
gwhelanLD Feb 22, 2019
c654453
Revert to old String behavior for allFlags, initialize WeakReference …
gwhelanLD Feb 22, 2019
19a9401
Merge branch 'gw/ch29266/flagstore' into eb/ch31891/variation-detail
eli-darkly Feb 22, 2019
69c1c9b
Better implementation of EvaluationReason serialization type adapter.
gwhelanLD Feb 26, 2019
23fd36a
Revert "Better implementation of EvaluationReason serialization type
gwhelanLD Feb 26, 2019
becd7e5
Gw/ch29266/flagstore (#105)
gwhelanLD Feb 26, 2019
76f4650
Return json flags as JsonElement in allFlags map. (#106)
gwhelanLD Feb 26, 2019
c246a27
Merge branch 'next-release' into eb/ch31891/variation-detail
eli-darkly Feb 27, 2019
54ac5cf
Bump ok-http version to 3.9.1 (#107)
gwhelanLD Mar 1, 2019
8e36a32
fix annotations so eval reasons are serialized in events
eli-darkly Mar 2, 2019
85a5adf
Merge pull request #104 from launchdarkly/eb/ch31891/variation-detail
eli-darkly Mar 2, 2019
84ecc29
fix/expand doc comments for public methods
eli-darkly Mar 5, 2019
46948c0
typo
eli-darkly Mar 5, 2019
192e4da
typo
eli-darkly Mar 5, 2019
1a7f34b
Merge pull request #108 from launchdarkly/eb/ch33404/doc-comments
eli-darkly Mar 5, 2019
ea73393
add version string getter method
eli-darkly Mar 6, 2019
12fcfe1
Merge pull request #109 from launchdarkly/eb/ch33470/version-getter
eli-darkly Mar 6, 2019
723363d
Check for null key before file comparison check. (#110)
gwhelanLD Mar 8, 2019
2e6a5bf
[ch33658] Add unsafeReset() for LDClient testing re-initialization (#…
gwhelanLD Mar 12, 2019
7ca817e
[ch33846] Rename tests to not start with capitals and general refacto…
gwhelanLD Mar 12, 2019
071bfb5
Add documentation for flagstore implementation (#113)
gwhelanLD Mar 13, 2019
cf593d8
Merge branch 'master' into next-release
eli-darkly Mar 13, 2019
3777e9d
[ch35150] Unit tests and bug fixes (#114)
gwhelanLD Mar 28, 2019
77eff6f
Add compatibility behavior to stringVariation and allFlags methods. (…
gwhelanLD Mar 28, 2019
6606fa9
Merge branch 'master' of github.com:launchdarkly/android-client into …
gwhelanLD Apr 11, 2019
26ac3ee
Update LDUser not to store all fields as Json. (#116)
gwhelanLD Apr 11, 2019
4e76a48
Add metricValue field to CustomEvent, add overloaded track method for…
gwhelanLD Apr 19, 2019
c1e7510
Merge branch 'master' into next-release
gwhelanLD Apr 23, 2019
5cca201
[ch37794] Run connected emulator tests in CircleCI (#120)
gwhelanLD Apr 29, 2019
496fc69
[ch34533] connection status, removing guava, network restructuring. (…
gwhelanLD Apr 29, 2019
2215275
rename repo and package name and apply markdown templates (#121)
bwoskow-ld Apr 30, 2019
fdede38
Fix issue that stream could be started before stopping when calling i…
gwhelanLD May 2, 2019
697d870
Merge branch 'master' into next-release
gwhelanLD May 2, 2019
0849812
Revert "Fix issue that stream could be started before stopping when c…
bwoskow-ld May 3, 2019
bbbeb81
Revert "rename repo and package name and apply markdown templates (#1…
bwoskow-ld May 3, 2019
146ba99
Revert "Revert "Fix issue that stream could be started before stoppin…
bwoskow-ld May 3, 2019
330e2e2
Revert "Revert "rename repo and package name and apply markdown templ…
bwoskow-ld May 3, 2019
f202096
Merge branch 'master' of github.com:launchdarkly/android-client-sdk-p…
bwoskow-ld May 3, 2019
466318b
Merge branch 'master' into next-release
bwoskow-ld May 6, 2019
6f90344
Merge branch 'master' into next-release
bwoskow-ld May 6, 2019
e49b5f8
Fix thread leak on identify call from restarting EventProcessor witho…
gwhelanLD May 14, 2019
2e2e1a1
Merge branch 'master' into next-release
gwhelanLD May 21, 2019
d458246
Add top level try/catch to migration methods. Check flag version Shar…
gwhelanLD May 21, 2019
0f39494
Merge branch 'master' into next-release
gwhelanLD May 22, 2019
b6852af
Update Throttler to call runnable on background thread. (#125)
gwhelanLD Jun 14, 2019
c32e62b
Fix ConcurrentModificationException of instance map (#126)
gwhelanLD Jun 14, 2019
7ea8f8d
Merge branch 'master' into next-release
gwhelanLD Jun 14, 2019
2fb3e78
adding a circleci badge to the readme (#127)
bwoskow-ld Jul 5, 2019
bf50576
Fix bug where `stop` in StreamUpdateProcessor could not call it's lis…
gwhelanLD Jul 29, 2019
75ac7cf
Change LDAwaitFuture to not treat zero timeout as unlimited timeout
gwhelanLD Jul 29, 2019
d26e006
Merge branch 'master' into next-release
gwhelanLD Jul 29, 2019
3ac167f
Merge remote-tracking branch 'remotes/origin/experiment' into next-re…
gwhelanLD Sep 23, 2019
857451d
Revert "Merge remote-tracking branch 'remotes/origin/experiment' into…
gwhelanLD Oct 2, 2019
5088361
CircleCI fixes (#131)
gwhelanLD Oct 3, 2019
de0d059
Better ci fix (#132)
gwhelanLD Oct 7, 2019
56464a1
Speedup tests by building on macOS (#137)
gwhelanLD Oct 16, 2019
b653664
Background identify fixes (#133)
gwhelanLD Oct 16, 2019
6143d48
Experimentation 1.5 updates (#134)
gwhelanLD Oct 25, 2019
c9837e9
add entire compile-time classpath to javadoc classpath
eli-darkly Nov 14, 2019
17aee4a
javadoc fixes: <p/> is not a thing
eli-darkly Nov 14, 2019
05c2bc3
do fail on javadoc errors
eli-darkly Nov 14, 2019
bc68267
add javadoc step, misc CI cleanup
eli-darkly Nov 14, 2019
73e10da
misc javadoc fixes
eli-darkly Nov 14, 2019
8779723
Merge pull request #138 from launchdarkly/eb/ch56106/javadoc
eli-darkly Nov 14, 2019
f90b00d
remove unintentional(?) immediate event flush; clean up event tests
eli-darkly Nov 14, 2019
b1d45b9
remove unreliable test assumption about elapsed time
eli-darkly Nov 14, 2019
d1af310
Merge pull request #139 from launchdarkly/eb/ch56105/event-flush-tests
eli-darkly Nov 14, 2019
c0e71ae
[ch57098] Deprecate LDCountryCode (#141)
gwhelanLD Nov 25, 2019
a06541a
Remove LDCountryCode. (#142)
gwhelanLD Nov 25, 2019
ea19a16
Catch `SecurityException` when setting alarm in case there are alread…
gwhelanLD Dec 9, 2019
23b930f
Revert "[ch57098] Deprecate LDCountryCode (#141)" so we can do a patc…
gwhelanLD Jan 3, 2020
df8c273
Merge branch 'master' of github.com:launchdarkly/android-client-sdk
gwhelanLD Jan 3, 2020
7dd0e39
Revert "Revert "[ch57098] Deprecate LDCountryCode (#141)" so we can d…
gwhelanLD Jan 3, 2020
36888b9
Merge branch 'master' into 3.0.0
gwhelanLD Jan 9, 2020
8519f7b
Deprecate public classes (#145)
gwhelanLD Jan 10, 2020
3ef984d
Merge branch 'master' into 3.0.0
gwhelanLD Jan 10, 2020
4f2233f
(3.0) Delete public classes in non-main packages (#146)
gwhelanLD Jan 10, 2020
b598051
[ch61092] Add event payload ID. (#147)
gwhelanLD Jan 16, 2020
ea01624
Remove compatibility conversions for json values. (#148)
gwhelanLD Jan 22, 2020
8ac37f0
Add event retry. (#149)
gwhelanLD Jan 24, 2020
c6dbf6f
Merge branch 'next-release'
gwhelanLD Jan 30, 2020
89f6e14
Fix javadoc comment for release.
gwhelanLD Jan 30, 2020
59169e1
Fix broken merge.
gwhelanLD Jan 30, 2020
f8d8da9
Merge branch 'master' of github.com:launchdarkly/android-client-sdk
gwhelanLD Jan 30, 2020
4ec2e0f
Merge branch 'master' into 3.0.0
gwhelanLD Jan 30, 2020
86989e9
[ch65133] Deprecate classes (#150)
gwhelanLD Feb 11, 2020
77f5930
Merge branch 'master' into 3.0.0
gwhelanLD Feb 11, 2020
ab1f691
(3.0) [ch65133] Remove deprecated classes (#151)
gwhelanLD Feb 11, 2020
b99a268
Improve Javadoc and reduce interface clutter. (#152)
gwhelanLD Feb 12, 2020
4082207
Save Javadoc artifact and include logcat in circle output with tee. (…
gwhelanLD Feb 12, 2020
8cce4a1
Merge branch 'master' into 3.0.0
gwhelanLD Feb 12, 2020
4f50176
[ch62120] Background during identify callback (#154)
gwhelanLD Feb 18, 2020
eb5a543
[ch65915] (3.0) Non nullable default values (#155)
gwhelanLD Feb 20, 2020
3de7975
[ch65914] Diagnostic events (#156)
gwhelanLD Feb 28, 2020
0744925
Merge remote-tracking branch 'remotes/origin/master' into 3.0.0
gwhelanLD Feb 28, 2020
2323377
[ch66724] (3.0) Events URI consistency (#157)
gwhelanLD Feb 28, 2020
059dd08
Merge branch 'master' of github.com:launchdarkly/android-client-sdk
gwhelanLD Feb 28, 2020
197f542
Merge branch 'master' into 3.0.0
gwhelanLD Feb 28, 2020
1e29a82
[ch65352] Expose LDValue rather than Gson types (#158)
gwhelanLD Mar 13, 2020
7f5e619
Merge branch 'master' into 3.0.0
gwhelanLD Mar 13, 2020
b62a377
Remove SET_ALARM permission. The comment that this was required for b…
gwhelanLD Mar 20, 2020
e97a2d1
Fix minimum diagnostic recording interval comment. (#160)
gwhelanLD Mar 20, 2020
dfb8fed
Data since date was not getting reset after each periodic diagnostic …
gwhelanLD Mar 20, 2020
c06c619
[ch75315] Add maxCachedUsers configuration option (#162)
gwhelanLD May 27, 2020
1a49d7e
Configure okhttp cache for polling requests to be stored in a subdire…
gwhelanLD May 28, 2020
b2583c5
Fixes ch76614 and add test of null fallback unknown flag event genera…
gwhelanLD May 28, 2020
60ba2c3
Removing ldvalue changes before release (#165)
gwhelanLD May 29, 2020
644afee
Merge branch 'master' of github.com:launchdarkly/android-client-sdk
gwhelanLD May 29, 2020
c1106f0
[ch69437] Support for setting additional headers to be included in re…
gwhelanLD Aug 5, 2020
15025f5
Merge remote-tracking branch 'public/master' into master
gwhelanLD Aug 7, 2020
7143459
[ch89933] Improve resiliency of store for summary events. (#167)
gwhelanLD Sep 17, 2020
8f32137
[ch94053] Improve throttler behavior. (#169)
gwhelanLD Nov 14, 2020
eeda14a
Merge branch 'master' into 3.0.0
gwhelanLD Dec 4, 2020
cebcaec
Add doubleVariation, doubleVariationDetail. (#171)
gwhelanLD Dec 4, 2020
6cd5d99
Merge branch 'master' into 3.0.0
gwhelanLD Dec 4, 2020
ba272b1
Fix after merge.
gwhelanLD Dec 4, 2020
325ac9e
Provide pollUri configuration and deprecate baseUri. (#172)
gwhelanLD Dec 4, 2020
2e11708
Merge branch 'master' into 3.0.0
gwhelanLD Dec 4, 2020
86b27ff
[ch94511] Anonymous user correlation (#175)
gwhelanLD Dec 11, 2020
c304546
Update pollUri to clientsdk and remove deprecated APIs. (#173)
gwhelanLD Dec 11, 2020
32c5288
Fix throttler behavior to ensure attempt count resets are not cancell…
gwhelanLD Dec 18, 2020
c9ecc2b
Merge remote-tracking branch 'public/master'
gwhelanLD Dec 18, 2020
381a7bf
bump dependencies and update code to java 8 (#177)
apache-hb Jan 12, 2021
2567262
[ch98336] Broaden catch statement on scheduling polling alarm (#181)
gwhelanLD Jan 13, 2021
f3a2119
Merge remote-tracking branch 'public/master'
gwhelanLD Jan 14, 2021
202ed86
Removed the guides link
bwoskow-ld Feb 3, 2021
b1ef516
java common integration (#180)
apache-hb Feb 22, 2021
5c2da95
add timber tags to all logs inside sdk (#183)
apache-hb Feb 23, 2021
33f56b2
Include flag key in warning message when converting a json flag to a …
apache-hb Feb 23, 2021
68bbc17
Ehaisley/ch101202/double close (#188)
apache-hb Feb 26, 2021
a339f36
update track methods to mirror java sdk track methods (#189)
apache-hb Feb 26, 2021
8812e78
correctly generate updates for all flags listeners (#187)
apache-hb Mar 2, 2021
1ee0d3a
set user key if empty during `LDClient#init` (#186)
apache-hb Mar 2, 2021
25b8aa9
Merge branch 'master' into 3.0.0
gwhelanLD Mar 4, 2021
0a6ee74
Fix the variation index for EvaluationDetail when flag not found. (#190)
gwhelanLD Mar 11, 2021
20fabd2
collect flags to Map<String, LDValue> rather than Map<String, ?> (#192)
apache-hb Mar 11, 2021
0501d00
(3.0) Fix example app (#193)
gwhelanLD Mar 12, 2021
94d558d
(3.0) Allow evaluating arbitrarily typed flags using jsonValueVariati…
gwhelanLD Mar 12, 2021
9ae7422
check for network connection before sending diagnostic events (#184)
apache-hb Mar 15, 2021
94534d9
Test android machine image.
gwhelanLD Mar 21, 2021
12854cc
Remove circle's script for waiting for emulator to start, this is bui…
gwhelanLD Mar 21, 2021
69bacb5
Merge pull request #196 from launchdarkly/gw/circle-android-machine
gwhelanLD Mar 21, 2021
2aa98ac
[ch101106] Use local JVM testing when possible (3.0) (#197)
gwhelanLD Mar 25, 2021
9eb891e
Dynamic HTTP header configuration (#182)
apache-hb Mar 26, 2021
2e4003f
Simplify SharedPrefsSummaryEventStore#addOrUpdateEvent (#191)
apache-hb Mar 29, 2021
8db0846
Update minimum Android SDK API version to 21 (Android 5.0). (#198)
gwhelanLD Mar 29, 2021
1b1233a
Remove Android Gradle plugin android.enableJetifier flag. (#199)
gwhelanLD Apr 2, 2021
7de2051
Format and remove unused imports. (#200)
gwhelanLD Apr 2, 2021
3abcf5f
Rename fallback to default/defaultValue throughout. (#201)
gwhelanLD Apr 15, 2021
9600c29
Retain behavior of marking users with SDK created device keys as anon…
gwhelanLD Apr 15, 2021
03face1
Merge pull request #202 from launchdarkly/gw/empty-user-key-anonymous
gwhelanLD Apr 15, 2021
ae67f20
Remove redundant TLS configuration. (#203)
gwhelanLD Apr 16, 2021
5b552e1
Update SDK package to `com.launchdarkly.sdk.android` (#204)
gwhelanLD Apr 16, 2021
657a203
Restore default user attributes (#205)
gwhelanLD Apr 20, 2021
ea5c330
Embed Javadoc for common SDK library in SDK Javadoc. (#206)
gwhelanLD Apr 21, 2021
efae751
Updating common SDK dependency and fix Javadoc generation. (#207)
gwhelanLD Apr 24, 2021
a1790eb
Fixes to Gradle publishing and other improvements. (#208)
gwhelanLD May 6, 2021
9db7bca
Fixes and improvements to proguard rules. (#209)
gwhelanLD May 7, 2021
5f9057e
Remove outdated todo.
gwhelanLD May 7, 2021
d230bc1
Update version and changelog for 3.0 release.
gwhelanLD May 7, 2021
a97df8a
Typo fix.
gwhelanLD May 7, 2021
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
106 changes: 49 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,62 @@
version: 2
version: 2.1
orbs:
android: circleci/android@1.0
jobs:
build:
working_directory: ~/launchdarkly/android-client-sdk-private
macos:
xcode: "10.3.0"
shell: /bin/bash --login -eo pipefail
environment:
TERM: dumb
QEMU_AUDIO_DRV: none
_JAVA_OPTIONS: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Xms2048m -Xmx4096m"
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
JVM_OPTS: -Xmx3200m
ANDROID_HOME: "/usr/local/share/android-sdk"
ANDROID_SDK_HOME: "/usr/local/share/android-sdk"
ANDROID_SDK_ROOT: "/usr/local/share/android-sdk"
executor:
name: android/android-machine
resource-class: large

steps:
- checkout
- run:
name: Setup env
command: |
echo 'export PATH="$PATH:/usr/local/share/android-sdk/tools/bin"' >> $BASH_ENV
echo 'export PATH="$PATH:/usr/local/share/android-sdk/platform-tools"' >> $BASH_ENV
- run:
name: Install Android sdk
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk
- run: sudo mkdir -p /usr/local/android-sdk-linux/licenses
- run:
name: Install emulator dependencies
command: yes | sdkmanager "platform-tools" "platforms;android-25" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;26.0.2" "system-images;android-25;default;x86" "emulator" | grep -v = || true
- run: |
set +o pipefail
yes | sdkmanager --licenses
- run:
name: Download Dependencies
command: ./gradlew androidDependencies

- run: unset ANDROID_NDK_HOME
# Create and start emulator
- android/create-avd:
avd-name: ci-android-avd
system-image: system-images;android-25;default;x86
install: true

- android/start-emulator:
avd-name: ci-android-avd
wait-for-emulator: false

# Perform tasks we can do while waiting for emulator to start

# Restore caches
- android/restore-gradle-cache
- android/restore-build-cache

- run: echo no | avdmanager create avd -n ci-android-avd -f -k "system-images;android-25;default;x86"
- run:
command: $ANDROID_HOME/emulator/emulator -avd ci-android-avd -netdelay none -netspeed full -no-audio -no-window -no-snapshot -no-boot-anim
background: true
timeout: 1200
no_output_timeout: 2h
name: Build local tests
command: ./gradlew :launchdarkly-android-client-sdk:assembleDebugUnitTest

- run:
name: Compile
command: ./gradlew :launchdarkly-android-client-sdk:assembleDebug --console=plain -PdisablePreDex
name: Build connected tests
command: ./gradlew :launchdarkly-android-client-sdk:assembleDebugAndroidTest

# Save caches
- android/save-build-cache
- android/save-gradle-cache

# Run unit tests that do not require the emulator
- run:
name: Wait for emulator to boot
command: .circleci/scripts/circle-android wait-for-boot
name: Run local tests
command: ./gradlew :launchdarkly-android-client-sdk:testDebugUnitTest

# Now wait for emulator to fully start
- android/wait-for-emulator

# Additional validation that emulator is fully started and will accept adb
# commands
- run:
name: Validate retrieving emulator SDK version
command: |
while ! adb shell getprop ro.build.version.sdk; do
sleep 1
done

# Necessary for test mocking to disable network access through WiFi
# configuration, allowing testing of behavior when device is offline
- run:
name: Disable mobile data for network tests
command: adb shell svc data disable
Expand All @@ -74,15 +69,10 @@ jobs:
adb shell getprop | tee -a ~/artifacts/props.txt
adb logcat | tee -a ~/artifacts/logcat.txt

- run:
name: Run tests
command: ./gradlew :launchdarkly-android-client-sdk:connectedAndroidTest --console=plain -PdisablePreDex
no_output_timeout: 2h
- android/run-tests:
max-tries: 1

- run:
name: Stop emulator
command: adb emu kill || true
when: always
- android/kill-emulators

- run:
name: Validate package creation
Expand All @@ -95,16 +85,18 @@ jobs:
- run:
name: Save test results
command: |
mkdir -p ~/test-results
cp -r ./launchdarkly-android-client-sdk/build/outputs/androidTest-results/* ~/test-results/
mkdir -p ~/test-results
cp -r ./launchdarkly-android-client-sdk/build/test-results/testDebugUnitTest ~/test-results/
cp -r ./launchdarkly-android-client-sdk/build/outputs/androidTest-results/* ~/test-results/
when: always

- run:
name: Save artifacts
command: |
mv ./launchdarkly-android-client-sdk/build/reports ~/artifacts
mv ./launchdarkly-android-client-sdk/build/outputs ~/artifacts
mv ./launchdarkly-android-client-sdk/build/docs ~/artifacts
mv ./launchdarkly-android-client-sdk/build/test-results ~/artifacts
mv ./launchdarkly-android-client-sdk/build/reports ~/artifacts
mv ./launchdarkly-android-client-sdk/build/outputs ~/artifacts
mv ./launchdarkly-android-client-sdk/build/docs ~/artifacts
when: always

- store_test_results:
Expand Down
21 changes: 0 additions & 21 deletions .circleci/scripts/LICENSE

This file was deleted.

88 changes: 0 additions & 88 deletions .circleci/scripts/circle-android

This file was deleted.

8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
.DS_Store
build
/captures

.project

*.iml
.idea
.idea/*
.idea/*
.classpath
.project
.settings/
.vscode/
Loading