Skip to content

Commit be3821d

Browse files
[Networking] provide android networking
1 parent bf04b37 commit be3821d

File tree

26 files changed

+808
-0
lines changed

26 files changed

+808
-0
lines changed

.github/workflows/notifier.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Notifier
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
name: Sent telegram message
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: send telegram message on push
15+
uses: appleboy/telegram-action@master
16+
with:
17+
to: ${{ secrets.TELEGRAM_TO }}
18+
token: ${{ secrets.TELEGRAM_TOKEN }}
19+
message: |
20+
${{ github.actor }} created commit:
21+
Branch: ${{github.head_ref}}
22+
Commit message: ${{ github.event.commits[0].message }}
23+
Repository: ${{ github.repository }}
24+
See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
env:
11+
GH_USERNAME: ${{ secrets.GH_USERNAME }}
12+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up JDK 21
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '21'
19+
distribution: 'temurin'
20+
cache: gradle
21+
22+
- name: Grant execute permission for gradlew
23+
run: chmod +x gradlew
24+
25+
- name: Publish Artifact Finance Networking
26+
run: ./gradlew :provider:finance:publish
27+
continue-on-error: true
28+
29+
- name: Sending report to Telegram
30+
uses: appleboy/telegram-action@master
31+
with:
32+
to: ${{ secrets.TELEGRAM_TO }}
33+
token: ${{ secrets.TELEGRAM_TOKEN }}
34+
message: 🚀 Group vn.finance.libs new release published on Github Packages!

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
plugins {
3+
alias(libs.plugins.androidApplication) apply false
4+
alias(libs.plugins.kotlinAndroid) apply false
5+
alias(libs.plugins.jetbrainsKotlinJvm) apply false
6+
alias(libs.plugins.androidLibrary) apply false
7+
alias(libs.plugins.androidHilt) apply false
8+
}

buildSrc/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

buildSrc/build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
google()
7+
mavenCentral()
8+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import org.gradle.api.JavaVersion
2+
3+
object Configs {
4+
const val minSdk = 24
5+
const val targetSdk = 34
6+
const val compileSdk = 34
7+
const val kotlinCompilerExtensionVersion = "1.5.14"
8+
val javaVersion = JavaVersion.VERSION_21
9+
val jvmTarget = JavaVersion.VERSION_21.toString()
10+
const val mavenDomain = "https://maven.pkg.github.com"
11+
12+
object Finance {
13+
const val namespace = "vn.core.provider.finance"
14+
const val groupId = "vn.finance.libs"
15+
const val artifactId = "networking"
16+
const val version = "1.0.0"
17+
}
18+
}
19+
20+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package vn.core.buildSrc
2+
3+
class MyClass {
4+
}

gradle.properties

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Project-wide Gradle settings.
2+
# IDE (e.g. Android Studio) users:
3+
# Gradle settings configured through the IDE *will override*
4+
# any settings specified in this file.
5+
# For more details on how to configure your build environment visit
6+
# http://www.gradle.org/docs/current/userguide/build_environment.html
7+
# Specifies the JVM arguments used for the daemon process.
8+
# The setting is particularly useful for tweaking memory settings.
9+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
10+
# When configured, Gradle will run in incubating parallel mode.
11+
# This option should only be used with decoupled projects. For more details, visit
12+
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
13+
# org.gradle.parallel=true
14+
# AndroidX package structure to make it clearer which packages are bundled with the
15+
# Android operating system, and which are packaged with your app's APK
16+
# https://developer.android.com/topic/libraries/support-library/androidx-rn
17+
android.useAndroidX=true
18+
# Kotlin code style for this project: "official" or "obsolete":
19+
kotlin.code.style=official
20+
# Enables namespacing of each library's R class so that its R class includes only the
21+
# resources declared in the library itself and none from the library's dependencies,
22+
# thereby reducing the size of the R class for that library
23+
android.nonTransitiveRClass=true

gradle/custom.versions.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[versions]
2+
3+
[libraries]
4+
5+
[plugins]

gradle/wrapper/gradle-wrapper.jar

57.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)