-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure ark-android repository: #55
- Loading branch information
1 parent
2be7202
commit 7b1299a
Showing
142 changed files
with
1,059 additions
and
64 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
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,31 @@ | ||
name: Build the components | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: ['./utils/**'] | ||
pull_request: | ||
branches: [ main ] | ||
paths: ['./utils/**'] | ||
|
||
|
||
jobs: | ||
build: | ||
if: ${{ ! startsWith(github.actor, 'dependabot') }} | ||
environment: Development | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: gradle | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/[email protected] | ||
|
||
- name: Build utils module | ||
run: ./gradlew utils:assembleRelease |
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,28 @@ | ||
name: Release the components | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'utils*' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/[email protected] | ||
|
||
- name: Publish components to Github | ||
uses: gradle/gradle-build-action@v2 | ||
with: | ||
arguments: utils:publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
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,44 @@ | ||
name: Build the components | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
|
||
jobs: | ||
build: | ||
if: ${{ ! startsWith(github.actor, 'dependabot') }} | ||
environment: Development | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
cache: gradle | ||
|
||
- name: Validate Gradle wrapper | ||
uses: gradle/[email protected] | ||
|
||
|
||
- name: Decrypt the keystore for signing | ||
run: | | ||
echo "${{ secrets.KEYSTORE_ENCRYPTED }}" > keystore.asc | ||
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSWORD }}" --batch keystore.asc > keystore.jks | ||
- name: Build components | ||
run: ./gradlew filepicker:assembleRelease | ||
|
||
- name: Build release sample APK | ||
run: ./gradlew sample:assembleRelease | ||
|
||
- name: Upload release APK | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: release-universal-apk | ||
path: ./sample/build/outputs/apk/release/sample-release.apk |
File renamed without changes.
File renamed without changes.
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,100 @@ | ||
import java.net.URI | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.android") | ||
id("pl.allegro.tech.build.axion-release") | ||
`maven-publish` | ||
} | ||
|
||
android { | ||
namespace = "dev.arkbuilders.components.filepicker" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
minSdk = 26 | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles("consumer-rules.pro") | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
publishing { | ||
singleVariant("release") { | ||
withSourcesJar() | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation(libraries.ark.component.utils) | ||
implementation(libraries.ark.component.folderstree) | ||
implementation(libraries.ark.component.tagselector) | ||
implementation(libraries.ark.component.scorewidget) | ||
|
||
implementation(libraries.androidx.core.ktx) | ||
implementation(libraries.androidx.appcompat) | ||
implementation(libraries.android.material) | ||
testImplementation(libraries.junit) | ||
androidTestImplementation(libraries.androidx.test.junit) | ||
androidTestImplementation(libraries.androidx.test.espresso) | ||
|
||
implementation(libraries.coil) | ||
implementation(libraries.coil.gif) | ||
implementation(libraries.coil.svg) | ||
implementation(libraries.coil.video) | ||
|
||
implementation(libraries.androidx.fragment.ktx) | ||
|
||
implementation(libraries.fastadapter) | ||
implementation(libraries.fastadapter.extensions.binding) | ||
implementation(libraries.fastadapter.extensions.diff) | ||
implementation(libraries.arklib) | ||
implementation(libraries.orbit.mvi.viewmodel) | ||
implementation(libraries.viewbinding.property.delegate) | ||
} | ||
|
||
val libVersion: String = scmVersion.version | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("release") { | ||
groupId = "dev.arkbuilders.components" | ||
artifactId = "filepicker" | ||
version = libVersion | ||
afterEvaluate { | ||
from(components["release"]) | ||
} | ||
} | ||
} | ||
repositories { | ||
mavenLocal() | ||
maven { | ||
name = "GithubPackages" | ||
url = URI("https://maven.pkg.github.com/ARK-Builders/ark-components-android") | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions
3
components/src/main/res/values/strings.xml → filepicker/src/main/res/values/strings.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
File renamed without changes.
File renamed without changes.
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,83 @@ | ||
import java.net.URI | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.android") | ||
`maven-publish` | ||
} | ||
|
||
android { | ||
namespace = "dev.arkbuilders.components.folderstree" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
minSdk = 26 | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
consumerProguardFiles("consumer-rules.pro") | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "17" | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
} | ||
|
||
dependencies { | ||
|
||
implementation(project(":utils")) | ||
|
||
implementation("androidx.core:core-ktx:1.9.0") | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("com.google.android.material:material:1.11.0") | ||
implementation("com.mikepenz:fastadapter:5.7.0") | ||
implementation("com.mikepenz:fastadapter-extensions-binding:5.7.0") | ||
implementation("com.mikepenz:fastadapter-extensions-diff:5.7.0") | ||
implementation("com.github.skydoves:balloon:1.6.4") | ||
implementation("dev.arkbuilders:arklib:0.3.5") | ||
testImplementation("junit:junit:4.13.2") | ||
androidTestImplementation("androidx.test.ext:junit:1.1.5") | ||
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") | ||
} | ||
|
||
val libVersion: String = /*scmVersion.version*/"0.0.9-SNAPSHOT-01" | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("release") { | ||
groupId = "dev.arkbuilders.components" | ||
artifactId = "folderstree" | ||
version = libVersion | ||
afterEvaluate { | ||
from(components["release"]) | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name = "GithubPackages" | ||
url = URI("https://maven.pkg.github.com/ARK-Builders/ark-components-android") | ||
credentials { | ||
username = System.getenv("GITHUB_ACTOR") | ||
password = System.getenv("GITHUB_TOKEN") | ||
} | ||
} | ||
mavenLocal() | ||
} | ||
} |
Empty file.
Oops, something went wrong.