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

Commit

Permalink
Changes for promisedb
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwasonga committed Aug 8, 2019
1 parent eadd30d commit 35d282e
Show file tree
Hide file tree
Showing 1,719 changed files with 78,145 additions and 138 deletions.
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SamplePromiseApp</name>
<comment>Project SamplePromiseApp created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=
eclipse.preferences.version=1
6 changes: 6 additions & 0 deletions app/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
23 changes: 23 additions & 0 deletions app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment>Project app created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions app/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
6 changes: 6 additions & 0 deletions appbase/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
23 changes: 23 additions & 0 deletions appbase/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>appbase</name>
<comment>Project appbase created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
</projectDescription>
2 changes: 2 additions & 0 deletions appbase/.settings/org.eclipse.buildship.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
package promise.app_base.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckedTextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatCheckBox;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.databinding.Bindable;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import java.lang.Deprecated;
import java.lang.Object;
import promise.app_base.models.Todo;

public abstract class TodoLayoutBinding extends ViewDataBinding {
@NonNull
public final AppCompatCheckBox checked;

@NonNull
public final AppCompatTextView dateTextView;

@NonNull
public final CheckedTextView titleText;

@Bindable
protected Todo mTodo;

protected TodoLayoutBinding(Object _bindingComponent, View _root, int _localFieldCount,
AppCompatCheckBox checked, AppCompatTextView dateTextView, CheckedTextView titleText) {
super(_bindingComponent, _root, _localFieldCount);
this.checked = checked;
this.dateTextView = dateTextView;
this.titleText = titleText;
}

public abstract void setTodo(@Nullable Todo todo);

@Nullable
public Todo getTodo() {
return mTodo;
}

@NonNull
public static TodoLayoutBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup root, boolean attachToRoot) {
return inflate(inflater, root, attachToRoot, DataBindingUtil.getDefaultComponent());
}

/**
* This method receives DataBindingComponent instance as type Object instead of
* type DataBindingComponent to avoid causing too many compilation errors if
* compilation fails for another reason.
* https://issuetracker.google.com/issues/116541301
* @Deprecated Use DataBindingUtil.inflate(inflater, R.layout.todo_layout, root, attachToRoot, component)
*/
@NonNull
@Deprecated
public static TodoLayoutBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup root, boolean attachToRoot, @Nullable Object component) {
return ViewDataBinding.<TodoLayoutBinding>inflateInternal(inflater, promise.app_base.R.layout.todo_layout, root, attachToRoot, component);
}

@NonNull
public static TodoLayoutBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, DataBindingUtil.getDefaultComponent());
}

/**
* This method receives DataBindingComponent instance as type Object instead of
* type DataBindingComponent to avoid causing too many compilation errors if
* compilation fails for another reason.
* https://issuetracker.google.com/issues/116541301
* @Deprecated Use DataBindingUtil.inflate(inflater, R.layout.todo_layout, null, false, component)
*/
@NonNull
@Deprecated
public static TodoLayoutBinding inflate(@NonNull LayoutInflater inflater,
@Nullable Object component) {
return ViewDataBinding.<TodoLayoutBinding>inflateInternal(inflater, promise.app_base.R.layout.todo_layout, null, false, component);
}

public static TodoLayoutBinding bind(@NonNull View view) {
return bind(view, DataBindingUtil.getDefaultComponent());
}

/**
* This method receives DataBindingComponent instance as type Object instead of
* type DataBindingComponent to avoid causing too many compilation errors if
* compilation fails for another reason.
* https://issuetracker.google.com/issues/116541301
* @Deprecated Use DataBindingUtil.bind(view, component)
*/
@Deprecated
public static TodoLayoutBinding bind(@NonNull View view, @Nullable Object component) {
return (TodoLayoutBinding)bind(component, view, promise.app_base.R.layout.todo_layout);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="default_web_client_id" translatable="false">939477234378-78vth92kupfkcglnod2mu7343c1fs85j.apps.googleusercontent.com</string>
<string name="firebase_database_url" translatable="false">https://promiseapp.firebaseio.com</string>
<string name="gcm_defaultSenderId" translatable="false">939477234378</string>
<string name="google_api_key" translatable="false">AIzaSyBN75XAdEpkwik5UITl1TO4DjPOle5Ccd8</string>
<string name="google_app_id" translatable="false">1:939477234378:android:b86cbd5d9bbc478f</string>
<string name="google_crash_reporting_api_key" translatable="false">AIzaSyBN75XAdEpkwik5UITl1TO4DjPOle5Ccd8</string>
<string name="google_storage_bucket" translatable="false">promiseapp.appspot.com</string>
<string name="project_id" translatable="false">promiseapp</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package promise.app_base;

import androidx.databinding.BindingBuildInfo;

@BindingBuildInfo
public class DataBindingInfo {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package androidx.databinding;

public interface DataBindingComponent {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package androidx.databinding.library.baseAdapters;

public class BR {
public static int _all = 0;

public static int todo = 1;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package eu.davidea.flexibleadapter.databinding;

public class BR {
public static int _all = 0;

public static int todo = 1;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package promise.app_base;

public class BR {
public static int _all = 0;

public static int todo = 1;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
package promise.app_base;

import android.util.SparseArray;
import android.util.SparseIntArray;
import android.view.View;
import androidx.databinding.DataBinderMapper;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import java.lang.IllegalArgumentException;
import java.lang.Integer;
import java.lang.Object;
import java.lang.Override;
import java.lang.RuntimeException;
import java.lang.String;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import promise.app_base.databinding.TodoLayoutBindingImpl;

public class DataBinderMapperImpl extends DataBinderMapper {
private static final int LAYOUT_TODOLAYOUT = 1;

private static final SparseIntArray INTERNAL_LAYOUT_ID_LOOKUP = new SparseIntArray(1);

static {
INTERNAL_LAYOUT_ID_LOOKUP.put(promise.app_base.R.layout.todo_layout, LAYOUT_TODOLAYOUT);
}

@Override
public ViewDataBinding getDataBinder(DataBindingComponent component, View view, int layoutId) {
int localizedLayoutId = INTERNAL_LAYOUT_ID_LOOKUP.get(layoutId);
if(localizedLayoutId > 0) {
final Object tag = view.getTag();
if(tag == null) {
throw new RuntimeException("view must have a tag");
}
switch(localizedLayoutId) {
case LAYOUT_TODOLAYOUT: {
if ("layout/todo_layout_0".equals(tag)) {
return new TodoLayoutBindingImpl(component, view);
}
throw new IllegalArgumentException("The tag for todo_layout is invalid. Received: " + tag);
}
}
}
return null;
}

@Override
public ViewDataBinding getDataBinder(DataBindingComponent component, View[] views, int layoutId) {
if(views == null || views.length == 0) {
return null;
}
int localizedLayoutId = INTERNAL_LAYOUT_ID_LOOKUP.get(layoutId);
if(localizedLayoutId > 0) {
final Object tag = views[0].getTag();
if(tag == null) {
throw new RuntimeException("view must have a tag");
}
switch(localizedLayoutId) {
}
}
return null;
}

@Override
public int getLayoutId(String tag) {
if (tag == null) {
return 0;
}
Integer tmpVal = InnerLayoutIdLookup.sKeys.get(tag);
return tmpVal == null ? 0 : tmpVal;
}

@Override
public String convertBrIdToString(int localId) {
String tmpVal = InnerBrLookup.sKeys.get(localId);
return tmpVal;
}

@Override
public List<DataBinderMapper> collectDependencies() {
ArrayList<DataBinderMapper> result = new ArrayList<DataBinderMapper>(1);
result.add(new androidx.databinding.library.baseAdapters.DataBinderMapperImpl());
return result;
}

private static class InnerBrLookup {
static final SparseArray<String> sKeys = new SparseArray<String>(3);

static {
sKeys.put(0, "_all");
sKeys.put(1, "todo");
}
}

private static class InnerLayoutIdLookup {
static final HashMap<String, Integer> sKeys = new HashMap<String, Integer>(1);

static {
sKeys.put("layout/todo_layout_0", promise.app_base.R.layout.todo_layout);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Generated by Dagger (https://google.github.io/dagger).
package promise.app_base;

import dagger.internal.Factory;
import dagger.internal.Preconditions;
import promise.Promise;

public final class DependenciesModule_ProvidePromiseFactory implements Factory<Promise> {
private static final DependenciesModule_ProvidePromiseFactory INSTANCE = new DependenciesModule_ProvidePromiseFactory();

@Override
public Promise get() {
return providePromise();
}

public static DependenciesModule_ProvidePromiseFactory create() {
return INSTANCE;
}

public static Promise providePromise() {
return Preconditions.checkNotNull(DependenciesModule.providePromise(), "Cannot return null from a non-@Nullable @Provides method");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Generated by Dagger (https://google.github.io/dagger).
package promise.app_base.data.db;

import dagger.internal.Factory;

public final class AppDatabase_Factory implements Factory<AppDatabase> {
private static final AppDatabase_Factory INSTANCE = new AppDatabase_Factory();

@Override
public AppDatabase get() {
return new AppDatabase();
}

public static AppDatabase_Factory create() {
return INSTANCE;
}

public static AppDatabase newInstance() {
return new AppDatabase();
}
}
Loading

0 comments on commit 35d282e

Please sign in to comment.