Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Room Park Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Vladislav Bogdashkin
Room Park Android
Commits
bff19611
Commit
bff19611
authored
Oct 29, 2019
by
Vladislav Bogdashkin
🎣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include requery into project
parent
9d37b967
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
59 additions
and
1 deletion
+59
-1
build.gradle
app/build.gradle
+6
-0
IDb.kt
...ava/com/biganto/visual/roompark/data/repository/db/IDb.kt
+7
-0
RequeryRepository.kt
.../roompark/data/repository/db/requrey/RequeryRepository.kt
+20
-0
SupportTypes.kt
...isual/roompark/data/repository/db/requrey/SupportTypes.kt
+25
-0
dependencies.gradle
dependencies.gradle
+1
-1
No files found.
app/build.gradle
View file @
bff19611
...
@@ -130,6 +130,12 @@ dependencies {
...
@@ -130,6 +130,12 @@ dependencies {
implementation
'com.squareup.okhttp3:okhttp-urlconnection:3.14.0'
implementation
'com.squareup.okhttp3:okhttp-urlconnection:3.14.0'
//Sql - Requery
implementation
"io.requery:requery:$requeryVersion"
implementation
"io.requery:requery-android:$requeryVersion"
implementation
"io.requery:requery-kotlin:$requeryVersion"
kapt
"io.requery:requery-processor:$requeryVersion"
//Tests
//Tests
testImplementation
'junit:junit:4.12'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'androidx.test:runner:1.2.0'
androidTestImplementation
'androidx.test:runner:1.2.0'
...
...
app/src/main/java/com/biganto/visual/roompark/data/repository/db/IDb.kt
0 → 100644
View file @
bff19611
package
com.biganto.visual.roompark.data.repository.db
/**
* Created by Vladislav Bogdashkin on 29.10.2019.
*/
interface
IDb
{
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/RequeryRepository.kt
0 → 100644
View file @
bff19611
package
com.biganto.visual.roompark.data.repository.db.requrey
import
com.biganto.visual.roompark.data.repository.db.IDb
import
io.requery.Persistable
import
io.requery.reactivex.KotlinReactiveEntityStore
import
timber.log.Timber
import
javax.inject.Inject
import
javax.inject.Singleton
/**
* Created by Vladislav Bogdashkin on 13.06.2018.
*/
@Singleton
class
RequeryRepository
@Inject
constructor
(
private
val
store
:
KotlinReactiveEntityStore
<
Persistable
>
)
:
IDb
{
}
\ No newline at end of file
app/src/main/java/com/biganto/visual/roompark/data/repository/db/requrey/SupportTypes.kt
0 → 100644
View file @
bff19611
package
com.biganto.visual.roompark.data.repository.db.requrey
/**
* Created by Vladislav Bogdashkin on 15.06.2018.
*/
private
fun
revisionStringToString
(
revisionString
:
String
):
String
{
val
ind
=
revisionString
.
indexOf
(
'?'
);
return
if
(
ind
>
0
)
(
revisionString
.
substring
(
0
,
ind
))
else
revisionString
}
//remove revision flag
private
fun
revisionStringToRevision
(
revisionString
:
String
):
String
?
{
val
ind
=
revisionString
.
indexOf
(
'?'
);
return
if
(
ind
>
0
)
(
revisionString
.
substring
(
ind
))
else
null
}
//remove revision flag
class
RevisionString
(
private
val
value
:
String
,
private
val
revision
:
String
?){
constructor
(
revisionString
:
String
)
:
this
(
value
=
revisionStringToString
(
revisionString
),
revision
=
revisionStringToRevision
(
revisionString
)
)
fun
uri
()=
value
/**
* @return full-string with revision
*/
fun
revisionUri
()=
"$value${revision.orEmpty()}"
}
\ No newline at end of file
dependencies.gradle
View file @
bff19611
...
@@ -10,7 +10,7 @@ ext {
...
@@ -10,7 +10,7 @@ ext {
// supportLibraryVersion = '1.1.0-alpha05'
// supportLibraryVersion = '1.1.0-alpha05'
constrainLayoutVersion
=
'1.1.3'
constrainLayoutVersion
=
'1.1.3'
// requeryVersion = '1.5
.1'
requeryVersion
=
'1.6
.1'
rxBindingVersion
=
'3.0.0'
rxBindingVersion
=
'3.0.0'
conductorVersion
=
'3.0.0-rc1'
conductorVersion
=
'3.0.0-rc1'
materialVersion
=
'1.1.0-alpha10'
materialVersion
=
'1.1.0-alpha10'
...
...
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