Skip to content

Commit bb98942

Browse files
committed
Initial commit
0 parents  commit bb98942

74 files changed

Lines changed: 1526 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
plugins {
2+
id 'com.android.library'
3+
id 'org.jetbrains.kotlin.android'
4+
id 'maven-publish'
5+
}
6+
7+
// Because the components are created only during the afterEvaluate phase, you must
8+
// configure your publications using the afterEvaluate() lifecycle method.
9+
afterEvaluate {
10+
publishing {
11+
publications {
12+
// Creates a Maven publication called "release".
13+
release(MavenPublication) {
14+
// Applies the component for the release build variant.
15+
from components.release
16+
17+
// You can then customize attributes of the publication as shown below.
18+
groupId = 'com.github.certified84'
19+
artifactId = 'CustomProgressIndicator'
20+
version = '1.0'
21+
}
22+
// Creates a Maven publication called “debug”.
23+
debug(MavenPublication) {
24+
// Applies the component for the debug build variant.
25+
from components.debug
26+
27+
groupId = 'com.github.certified84'
28+
artifactId = 'CustomProgressIndicator'
29+
version = '1.0'
30+
}
31+
}
32+
}
33+
}
34+
35+
android {
36+
compileSdk 31
37+
38+
defaultConfig {
39+
minSdk 21
40+
targetSdk 31
41+
42+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
43+
consumerProguardFiles "consumer-rules.pro"
44+
}
45+
46+
buildTypes {
47+
release {
48+
minifyEnabled false
49+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
50+
}
51+
}
52+
compileOptions {
53+
sourceCompatibility JavaVersion.VERSION_1_8
54+
targetCompatibility JavaVersion.VERSION_1_8
55+
}
56+
kotlinOptions {
57+
jvmTarget = '1.8'
58+
}
59+
buildFeatures{
60+
viewBinding true
61+
}
62+
}
63+
64+
dependencies {
65+
implementation 'androidx.core:core-ktx:1.8.0'
66+
implementation 'androidx.appcompat:appcompat:1.4.2'
67+
implementation 'com.google.android.material:material:1.6.1'
68+
testImplementation 'junit:junit:4.13.2'
69+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
70+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
71+
72+
// intuit ssp/sdp
73+
implementation 'com.intuit.ssp:ssp-android:1.0.6'
74+
implementation 'com.intuit.sdp:sdp-android:1.0.6'
75+
76+
// Coroutines
77+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
78+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0'
79+
}

CustomProgressIndicatorLibrary/consumer-rules.pro

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.certified.customprogressindicatorlibrary
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("com.certified.customprogressindicatorlibrary.test", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)