- Export All Collections Data - Added the documentation how to export all environment collections data
See how your Android platform is evolving.
kinvey appenv apply
New in this release:
Enhancements:
Network
. (#288).DataStore.create
. (#285).Bug fixes:
--org <org>
(--app <app>
is no longer valid):flex init
flex create
flex list
service create
website create
app create
flex job
commandNew in this release:
Enhancements:
DataStore.create
multi-insert method with parameters List<T>
and KinveyClientCallback<KinveySaveBatchResponse<T>>
. (#279).New in this release:
Bug fixes:
DataStore.push
incorrectly using the onFailure
handler. (#270).DataStore.push
fails, items without _id
clears the local storage and the syncQueue
. (#271).Auto
store, DataStore.save
failing due to network error incorrectly invoking the onFailure
handler. (#272).New in this release:
Enhancements:
Further migration to a Kotlin
codebase, including file and user classes. (#250) (#254) (#255).
Migrating SDK dependencies to AndroidX
, which is a new set of libraries that should replace many deprecated libraries from the past, like Support Library
, Support Annotations
, Android JUnit Runner
, etc (#248).
Bug fixes:
--app
) matches more than one entityNew in this release:
Enhancements:
push
method. (#238).The beginning of the migration of the library to Kotlin
, including an update to gradle version 5. (#239).
build.gradle
files:Delete old libraries from app/libs
directory:
google-http-client-1.19.0.jar
google-http-client-android-1.19.0.jar
google-http-client-gson-1.19.0.jar
google-http-client-jackson2-1.19.0.jar
guava-18.0.jar
jackson-core-2.1.3.jar
java-api-core-4.2.1.jar
kinvey-android-4.2.1.aar
pubnub-gson-4.18.0-all.jar
realm-android-library-3.2.1.aar
realm-annotations-3.2.1.jar
realm-annotations-processor-3.2.1.jar
realm-transformer-3.2.1.jar
relinker-1.2.2.aar
rxjava-1.1.0.jar
and Add new version of java-api-core-x.x.x.jar
and kinvey-android-x.x.x.aar
.
Remove from build.gradle (app module)
dependencies {
implementation ':realm-android-library:+@aar'
implementation ':relinker:+@aar'
}
Apply Realm plugin to build.gradle (app module)
apply plugin: 'realm-android'
and
add Realm plugin to classpath in build.gradle
(project module)
buildscript {
dependencies {
classpath 'io.realm:realm-gradle-plugin:5.8.0'
}
}
Add third part libraries as dependency
implementation('com.google.api-client:google-api-client-android:1.19.0') {
exclude(module: 'google-play-services')
exclude(module: 'xpp3')
}
implementation 'com.google.http-client:google-http-client-android:1.19.0'
implementation('com.google.http-client:google-http-client-gson:1.19.0') {
exclude(module: 'xpp3')
}
Also if you use LiveService to add:
implementation group: 'com.pubnub', name: 'pubnub-gson', version: '4.18.0'
Add Compatibility with Java 8
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
Bug fixes:
User
object from client.getActiveUser()
method. (#240).New in this release:
Enhancements:
kinvey.api.version
parameter in the kinvey.properties
file in order to use this functionality.
website deploy
command:--force
flagnode12
(Node.js v.12) to flex
commands that support Node.js runtime selectionNew in this release:
Enhancements:
Introduction of Firebase Cloud Messaging (FCM). (#211).
New in this release:
Enhancements:
null
refresh token. (#226).website
command namespaceNew in this release:
Enhancements:
New in this release:
Enhancements:
flex status
command outputs statuses using upper case lettersflex deploy --set-vars <env variables>
--runtime
app create
command now supports the --org
optionkinvey <namespace>
env
namespace to appenv
profile login
if requiredprofile login
if requiredEnhancements:
Bug Fixes:
clientID
. (#181).Flex-sdk 3.x contains several breaking changes as well as new features. To upgrade your service from Flex-sdk 2.x to 3.x:
skipBl
and useMasterSecret
have been removed and no longer function. Use useBl
and useUserContext
instead.Open the Flex SDK GitHub repo for more information and source code.
Enhancements:
pull
and sync
methods now return only count of pulled items from the backend. flex create
.flex delete
. Note that this command name was used to clear Node.js project setting in previous versions.flex delete
command available in previous versions has a new name: flex clear
. It keeps its behavior.--no-prompt
flag (available only for delete commands).kinveyEntity
moduledataStore
entityId
s for dataStore
, groupStore
, and userStore
request
module to 2.85.0code-task-receiver
to 2.2.3 to add response object parsing for FlexFunctionsOpen the Flex SDK GitHub repo for more information and source code.
Enhancements:
isAutoPaginationEnabled
flag was removed from DataStore
. Now pull
methods are available which take page size as a parameter, which will enable auto-pagination. (#159).isAutoPagination
parameter in pull
methods, which defaults the page size used for auto-pagination to 10,000 entities. (#166).KinveyPullResponse
now has count of pulled items instead of list of pulled items. (#161).Bug Fix:
X-Kinvey-Client-App-Version
header before user is authorized, if a value for this has been set in the Client
. (#165).dataStore.isAutopaginationEnabled()
has been deprecated. In order to enable auto-pagination, use pull
methods with page size in the parameter list to specify the page size for auto-pagination, or use pull
methods with the isAutoPagination
flag set to true, which will default the page size to 10,000 entities.
sync
and pull
. KinveySyncCallback
and KinveyPullCallback
have been modified, because KinveyPullResponse
was modified. It has been moved to another package, and has been updated to contain a count of pulled items instead of a list of pulled items. This was done to save on memory consumption in this case, where the goal of pull
is to update the local cache.
KinveyListCallback
has been changed to KinveyReadCallback
, which returns with KinveyReadResponse
in onSuccess
. KinveyReadResponse
contains a list of items and list of exceptions.
profile login
command updates the token only.--2fa
global option.kinvey profile login
.kinvey init
.kinvey profile delete
.Open the Kinvey CLI GitHub repo for full documentation and source code.
Enhancements:
flex deploy
command now accepts --serviceId
flex init
command now requires a profile and ignores the --email
, --password
, and --host
options--no-color
flag for disabling colors in outputOpen the Kinvey CLI GitHub repo for full documentation and source code.
Improvements:
DataStore#clear
and DataStore#purge
methods.Bug Fixes:
gson-2.1.jar
from your project's libs
directory if you are using it.
Bug Fixes:
New in this release:
Enhancements:
Bug Fixes:
targetSdkVersion
of your project should be set to at least API level 27. Also, please change code in your GCMReceiver
from:
ComponentName comp = new ComponentName(context.getPackageName(), com.myPackage.GCMService.class.getName());
startWakefulService(context, (intent.setComponent(comp)));
setResultCode(Activity.RESULT_OK);
to:
ComponentName comp = new ComponentName(context.getPackageName(), GCMService.class.getName());
GCMService.enqueueWork(context, (intent.setComponent(comp)), GCMService.class);
And change declaration of service in your AndroidManifest:
<service android:name=".GCMService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:exported="true" />
Improvement:
setDeltaCache
method from Client
to DataStore
objectsetDeltaCache
is a breaking change. Replace calls to setDeltaCache
on the client object with calls to the individual data store objects.
Improvement:
count
method.Bug Fixes:
hashcode
method.Install the latest beta using npm install -g kinvey-cli@next
.
status
becomes flex status
)init
—Initializes Kinvey CLI by prompting for credentials and configurations optionsflex init
—Configures Kinvey CLI to work with a specific Flex Serviceinit
) can now take credentials as command-line options or ENV variablesconfig
logout
flex
namespaceImprovements:
and
of two equals filtersBug Fix:
Bug Fixes:
DataStore#clear
method.sync/pull
.Improvements:
KinveyPullResponse
object.Bug Fix:
push
method.status
command now reports the email address (plus first/last name, if set) of deployer and the date/time at which service was deployedImprovements:
DataStore
to clear local cache.DataStore
for aggregation.save
methods.Bug Fix:
status
command now reports the version of the most recently-deployed servicelogs
command enhancements--from
and --to
flags-n
(--number
) and --page
flags-n
flag is suppliedImprovements:
DataStore
to save list of entities.Bug Fix:
_acl.creator
field.Improvements:
in
operator for query to а field with а LIST type.Improvements:
Bug Fix:
Bug Fix(es):
setDeltaSetCache
method.Improvements:
DataStore
to get the sync queue item count.clientId
to login with MIC.Bug Fix(es):
_public
value of file offline.update
instance method on User
to be able to update user object.Improvements:
Bug Fix(es):
instance
param was not respected when running config [instance]
in a fresh environmentUpdate realm library to version 3.2.1
Bug Fix(es):
Bug Fix(es):
Allow to add custom User
fields
Bug Fix(es):
config
against the default instance (under certain scenarios)Add new Client.Builder
constructor used for passing a properties file.
Add deltaSetCaching
client parameter to be able to enable/disable Delta Set Caching logic
Bug Fix(es):
Added calculation methods for DataStore
missing from 2.x
Add new Client
constructor to pass custom HttpTransport
Rename Client.activeUser
to Client.getActiveUser
Updated documentation about new features
kinvey config
targets the default Kinvey instance for data link selection if a host is not provided (even if the CLI was previously configured with a custom host)kinvey job
kinvey config [instance]
config
command now prompts for a new service on every run (fixed prior bug where it did nothing if saved data was already present)kinvey-flex-sdk
(instead of kinvey-backend-sdk
)logs
command now takes optional runtime arguments (instead of prompting for log filters)kinvey config acme-us1
)status
command (no arg command) crashed if supplied with an argumentFull support for data synchronization between your app and backend. Refer to the Data Store Guide to learn how to use the new data manipulation APIs.
We've simplified data stores and caching policies, making it easier for you to start building apps with caching and offline built in.
logs
command