-
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
0 parents
commit c7f3936
Showing
228 changed files
with
9,320 additions
and
0 deletions.
There are no files selected for viewing
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,88 @@ | ||
# Built application files | ||
*.apk | ||
*.aar | ||
*.ap_ | ||
*.aab | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
# Uncomment the following line in case you need and you don't have the release build type files in your app | ||
# release/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio captures folder | ||
captures/ | ||
|
||
# IntelliJ | ||
*.iml | ||
.idea/workspace.xml | ||
.idea/tasks.xml | ||
.idea/gradle.xml | ||
.idea/assetWizardSettings.xml | ||
.idea/dictionaries | ||
.idea/libraries | ||
# Android Studio 3 in .gitignore file. | ||
.idea/caches | ||
.idea/modules.xml | ||
# Comment next line if keeping position of elements in Navigation Editor is relevant for you | ||
.idea/navEditor.xml | ||
|
||
# Keystore files | ||
# Uncomment the following lines if you do not want to check your keystore files in. | ||
#*.jks | ||
#*.keystore | ||
|
||
# External native build folder generated in Android Studio 2.2 and later | ||
.externalNativeBuild | ||
.cxx/ | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
# google-services.json | ||
|
||
# Freeline | ||
freeline.py | ||
freeline/ | ||
freeline_project_description.json | ||
|
||
# fastlane | ||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
fastlane/test_output | ||
fastlane/readme.md | ||
|
||
# Version control | ||
vcs.xml | ||
|
||
# lint | ||
lint/intermediates/ | ||
lint/generated/ | ||
lint/outputs/ | ||
lint/tmp/ | ||
# lint/reports/ | ||
app/.DS_Store | ||
.DS_Store | ||
.idea/* |
Large diffs are not rendered by default.
Oops, something went wrong.
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,2 @@ | ||
# WalletAndroid | ||
VCL library consumer app |
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
# VCL Android Library |
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,183 @@ | ||
plugins { | ||
id 'com.android.library' | ||
id 'kotlin-android' | ||
id 'maven-publish' | ||
id 'signing' | ||
} | ||
|
||
android { | ||
compileSdkVersion 32 | ||
buildToolsVersion "30.0.3" | ||
namespace 'io.velocitycareerlabs' | ||
|
||
defaultConfig { | ||
minSdkVersion 21 | ||
targetSdkVersion 32 | ||
versionName "1.0.1" | ||
versionCode 41 | ||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles "consumer-rules.pro" | ||
} | ||
|
||
buildTypes { | ||
// def BOOLEAN = "boolean" | ||
// def TRUE = "true" | ||
// def FALSE = "false" | ||
debug { | ||
buildConfigField "String", "VERSION_NAME", "\"${defaultConfig.versionName}\"" | ||
buildConfigField "int", "VERSION_CODE", "${defaultConfig.versionCode}" | ||
|
||
// useProguard false | ||
minifyEnabled false | ||
shrinkResources false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
release { | ||
buildConfigField "String", "VERSION_NAME", "\"${defaultConfig.versionName}\"" | ||
buildConfigField "int", "VERSION_CODE", "${defaultConfig.versionCode}" | ||
|
||
// useProguard true | ||
minifyEnabled false | ||
shrinkResources false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
|
||
testOptions { | ||
unitTests.includeAndroidResources = true | ||
unitTests.returnDefaultValues = true | ||
} | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
/** | ||
* Publish Android library to GitHub Packages ====================================================== | ||
*/ | ||
def getVersionName = { -> | ||
return android.defaultConfig.versionName | ||
} | ||
def getArtifactId = { -> | ||
return "vcl" // Must be lower case! | ||
} | ||
def getGroupId = { -> | ||
return 'io.velocitycareerlabs' | ||
} | ||
|
||
task androidSourcesJar(type: Jar) { | ||
archiveClassifier.set('sources') | ||
if (project.plugins.findPlugin("com.android.library")) { | ||
// For Android libraries | ||
from android.sourceSets.main.java.srcDirs | ||
from android.sourceSets.main.kotlin.srcDirs | ||
} else { | ||
// For pure Kotlin libraries, in case you have them | ||
from sourceSets.main.java.srcDirs | ||
from sourceSets.main.kotlin.srcDirs | ||
} | ||
} | ||
|
||
artifacts { | ||
archives androidSourcesJar | ||
} | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
groupId getGroupId() | ||
artifactId getArtifactId() | ||
version getVersionName() | ||
|
||
// Two artifacts, the `aar` (or `jar`) and the sources | ||
if (project.plugins.findPlugin("com.android.library")) { | ||
from components.release | ||
} else { | ||
from components.java | ||
} | ||
|
||
artifact androidSourcesJar | ||
|
||
// Mostly self-explanatory metadata | ||
pom { | ||
name = getArtifactId() | ||
// Library description | ||
description = 'Velocity Career Labs Android library' | ||
// Library Github URL | ||
url = 'https://github.com/velocitycareerlabs/WalletAndroid' | ||
licenses { | ||
license { | ||
name = 'Apache License 2.0' | ||
// Library license | ||
url = 'https://github.com/velocitycareerlabs/WalletAndroid/blob/dev/VCL/LICENSE' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'velocitycareerlabs' | ||
name = 'Michael Avoyan' | ||
email = '[email protected]' | ||
} | ||
} | ||
|
||
scm { | ||
// Library info on Github | ||
connection = 'scm:github.com/velocitycareerlabs/WalletAndroid.git' | ||
developerConnection = 'scm:git:ssh://github.com/velocitycareerlabs/WalletAndroid.git' | ||
url = 'https://github.com/velocitycareerlabs/WalletAndroid' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
useInMemoryPgpKeys( | ||
rootProject.ext.signingKeyId, | ||
rootProject.ext.signingPrivateKey, | ||
rootProject.ext.signingPassword, | ||
) | ||
sign publishing.publications | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
/** | ||
* ================================================================================================= | ||
*/ | ||
|
||
dependencies { | ||
implementation 'androidx.core:core-ktx:1.7.0' | ||
|
||
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" | ||
|
||
implementation "com.nimbusds:nimbus-jose-jwt:9.23" | ||
|
||
// Required -- JUnit 4 framework | ||
testImplementation 'junit:junit:4.13.2' | ||
// Optional -- Robolectric environment | ||
testImplementation 'androidx.test:core:1.4.0' | ||
// testImplementation 'org.robolectric:robolectric:4.3.1' | ||
// Optional -- Mockito framework | ||
testImplementation 'org.mockito:mockito-core:4.0.0' | ||
testImplementation 'org.mockito:mockito-inline:4.0.0' | ||
// Required -- JSON framework | ||
testImplementation 'org.json:json:20201115' | ||
|
||
androidTestImplementation 'androidx.test.ext:junit:1.1.3' | ||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | ||
} |
Empty file.
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,23 @@ | ||
# 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 | ||
|
||
-keep class io.velocitycareerlabs.api.** { *; } |
24 changes: 24 additions & 0 deletions
24
VCL/src/androidTest/java/io/velocitycareerlabs/ExampleInstrumentedTest.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,24 @@ | ||
package io.velocitycareerlabs | ||
|
||
import androidx.test.platform.app.InstrumentationRegistry | ||
//import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
|
||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
import org.junit.Assert.* | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
//@RunWith(AndroidJUnit4::class) | ||
//class ExampleInstrumentedTest { | ||
// @Test | ||
// fun useAppContext() { | ||
// // Context of the app under test. | ||
// val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
// assertEquals("io.velocitycareerlabs.test", appContext.packageName) | ||
// } | ||
//} |
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,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
</manifest> |
Oops, something went wrong.