Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
b4b77114
Commit
b4b77114
authored
Apr 12, 2017
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes, version bump..
parent
a2a23c21
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
build.gradle
app/build.gradle
+2
-2
Migration.java
...rc/main/java/chat/rocket/persistence/realm/Migration.java
+1
-4
RocketChatPersistenceRealm.java
.../rocket/persistence/realm/RocketChatPersistenceRealm.java
+1
-9
No files found.
app/build.gradle
View file @
b4b77114
...
@@ -33,8 +33,8 @@ android {
...
@@ -33,8 +33,8 @@ android {
applicationId
"chat.rocket.android"
applicationId
"chat.rocket.android"
minSdkVersion
16
minSdkVersion
16
targetSdkVersion
25
targetSdkVersion
25
versionCode
17
versionCode
20
versionName
"1.0.
8
"
versionName
"1.0.
10
"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
vectorDrawables
.
useSupportLibrary
=
true
vectorDrawables
.
useSupportLibrary
=
true
...
...
persistence-realm/src/main/java/chat/rocket/persistence/realm/Migration.java
View file @
b4b77114
...
@@ -16,10 +16,7 @@ public class Migration implements RealmMigration {
...
@@ -16,10 +16,7 @@ public class Migration implements RealmMigration {
RealmSchema
schema
=
dynamicRealm
.
getSchema
();
RealmSchema
schema
=
dynamicRealm
.
getSchema
();
if
(
oldVersion
==
0
)
{
if
(
oldVersion
==
0
)
{
RealmObjectSchema
roomSchema
=
schema
.
get
(
"RealmRoom"
);
// NOOP
roomSchema
.
addField
(
"f"
,
boolean
.
class
);
oldVersion
++;
oldVersion
++;
}
}
...
...
persistence-realm/src/main/java/chat/rocket/persistence/realm/RocketChatPersistenceRealm.java
View file @
b4b77114
...
@@ -4,19 +4,11 @@ import android.content.Context;
...
@@ -4,19 +4,11 @@ import android.content.Context;
import
io.realm.Realm
;
import
io.realm.Realm
;
import
io.realm.RealmConfiguration
;
import
io.realm.RealmConfiguration
;
import
chat.rocket.persistence.realm.modules.RocketChatLibraryModule
;
public
class
RocketChatPersistenceRealm
{
public
class
RocketChatPersistenceRealm
{
public
static
void
init
(
Context
context
)
{
public
static
void
init
(
Context
context
)
{
Realm
.
init
(
context
);
Realm
.
init
(
context
);
Realm
.
setDefaultConfiguration
(
Realm
.
setDefaultConfiguration
(
new
RealmConfiguration
.
Builder
().
build
());
new
RealmConfiguration
.
Builder
()
.
name
(
"rocket.chat.persistence.realm"
)
.
modules
(
new
RocketChatLibraryModule
())
.
schemaVersion
(
3
)
.
migration
(
new
Migration
())
.
build
());
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment