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

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwasonga committed Jul 11, 2019
1 parent 84d1a10 commit eadd30d
Show file tree
Hide file tree
Showing 156 changed files with 12,399 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .idea/gradle.xml

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* Automatically generated file. DO NOT MODIFY
*/
package promise.app_base;

public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "promise.app_base";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="promise.app_base"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="28" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"appbase-debug.aar","fullName":"debug","baseName":"debug"},"path":"AndroidManifest.xml","properties":{"packageId":"promise.app_base","split":""}}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="promise.app_base"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="28" />

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"appbase-debug.aar","fullName":"debug","baseName":"debug"},"path":"../../library_manifest/debug/AndroidManifest.xml","properties":{"packageId":"promise.app_base","split":""}}]
37 changes: 37 additions & 0 deletions appbase/build/outputs/logs/manifest-merger-debug-report.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
-- Merging decision tree log ---
manifest
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
package
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:11-37
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
android:versionName
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
xmlns:android
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
android:versionCode
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml:1:1-40
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
uses-sdk
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml reason: use-sdk injection requested
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
android:targetSdkVersion
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
android:minSdkVersion
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
ADDED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
INJECTED from /home/g33k/AndroidStudioProjects/SamplePromiseApp/appbase/src/main/AndroidManifest.xml
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
10 changes: 8 additions & 2 deletions promise/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
*/
buildscript {
ext {
kotlin_version = '1.3.40'
kotlin_version = '1.3.41'
}
repositories {
google()
jcenter()
/*mavenCentral()*/
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.1'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Expand Down Expand Up @@ -97,6 +97,12 @@ android {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}

testOptions {
unitTests {
includeAndroidResources = true
}
}
}
repositories {
mavenCentral()
Expand Down
1 change: 0 additions & 1 deletion promise/src/main/java/promise/data/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import promise.model.List;
import promise.model.ResponseCallBack;


public interface Store<T, K, X extends Throwable> {

void get(K k, ResponseCallBack<Extras<T>, X> callBack);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package promise.data.utils

class AsynchronousChainProcessor : Processor<Any> {
override fun process(): Any {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}

}
6 changes: 6 additions & 0 deletions promise/src/main/java/promise/data/utils/Processor.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package promise.data.utils

interface Processor<T> {
fun process(): T

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package promise.data.utils

import promise.model.List
import java.util.concurrent.Callable

class SynchronousChainProcessor: Processor<Boolean> {

private var callables: List<Callable<Boolean>> = List()

fun registerCallables(vararg callables: Callable<Boolean>) {
this.callables.addAll(callables)
}

override fun process(): Boolean {
var executed = true
callables.forEach {
executed = executed && it.call()
}
return executed
}
}
1 change: 1 addition & 0 deletions promisecommons/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
38 changes: 38 additions & 0 deletions promisecommons/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 28


defaultConfig {
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api 'io.reactivex.rxjava2:rxjava:2.2.7'
api 'androidx.appcompat:appcompat:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
21 changes: 21 additions & 0 deletions promisecommons/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package promise.promise;

import android.content.Context;

import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("promise.promise.test", appContext.getPackageName());
}
}
1 change: 1 addition & 0 deletions promisecommons/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<manifest package="promise" />
Loading

0 comments on commit eadd30d

Please sign in to comment.