Skip to content
This repository has been archived by the owner on Mar 19, 2020. It is now read-only.

Commit

Permalink
initial commit into promise db
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwasonga committed Aug 12, 2019
1 parent c5c0b13 commit 74f30da
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 33 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,15 @@
.externalNativeBuild
/app
/appbase
/commonsapp
/modelapp
/netapp
/promise
/promisecommons
/promisemodel
/promisenet
/promisepref
/promiseui
/uiapp


8 changes: 0 additions & 8 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ allprojects {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
maven { url 'https://jitpack.io' }
}
}

Expand Down
2 changes: 0 additions & 2 deletions dbapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(path: ':promisedb')
implementation project(path: ':promisecommons')
implementation project(path: ':promiseui')
implementation "com.android.support:recyclerview-v7:$supportLibVersion"
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
Expand Down
22 changes: 1 addition & 21 deletions dbapp/src/main/java/promise/dbapp/model/ComplexModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,8 @@ import android.view.View
import promise.dbapp.R
import promise.model.List
import promise.model.SModel
import promise.promiseui.model.Viewable

class ComplexModel constructor() : SModel(), Parcelable, Viewable {
var index: Int = 0

override fun layout(): Int = R.layout.complex_layout

override fun init(view: View?) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}

override fun bind(view: View?) {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}

override fun index(index: Int) {
this.index = index
}

override fun index(): Int {
return this.index
}
class ComplexModel constructor() : SModel(), Parcelable {

var intVariable: Int? = null

Expand Down
2 changes: 1 addition & 1 deletion promisedb/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
compileOnly 'io.reactivex.rxjava2:rxjava:2.2.7'
compileOnly 'androidx.appcompat:appcompat:1.0.2'
compileOnly project(path: ':promisecommons')
api 'com.github.android-promise:promise:commons-1.0-beta'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':promisecommons', ':commonsapp', 'dbapp', 'modelapp', 'netapp', 'promisedb', 'promisemodel', 'promisenet', 'promiseui', 'uiapp'
include 'dbapp', 'promisedb'

0 comments on commit 74f30da

Please sign in to comment.