This repository has been archived by the owner on Mar 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84d1a10
commit eadd30d
Showing
156 changed files
with
12,399 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
appbase/build/generated/source/buildConfig/debug/promise/app_base/BuildConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |
11 changes: 11 additions & 0 deletions
11
appbase/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
1 change: 1 addition & 0 deletions
1
appbase/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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":""}}] |
11 changes: 11 additions & 0 deletions
11
appbase/build/intermediates/library_manifest/debug/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
37
appbase/build/outputs/logs/manifest-merger-debug-report.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
promise/src/main/java/promise/data/utils/AsynchronousChainProcessor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package promise.data.utils | ||
|
||
interface Processor<T> { | ||
fun process(): T | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
promise/src/main/java/promise/data/utils/SynchronousChainProcessor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
27 changes: 27 additions & 0 deletions
27
promisecommons/src/androidTest/java/promise/promise/ExampleInstrumentedTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<manifest package="promise" /> |
Oops, something went wrong.