-
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.
**What** - Adding the language example app **Why** - ASDK-2382 Signed-off-by: Mohsen Mirhoseini <[email protected]>
- Loading branch information
Mohsen Mirhoseini
committed
Feb 15, 2024
1 parent
f201564
commit 9397acb
Showing
39 changed files
with
1,069 additions
and
26 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,32 @@ | ||
name: Language CI | ||
|
||
concurrency: | ||
group: language:${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
paths: [ "language/**" ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
cache: gradle | ||
|
||
- name: Build with Gradle | ||
run: | | ||
cd language | ||
chmod +x ./gradlew | ||
./gradlew 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
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,25 @@ | ||
# SOURCE: https://github.com/JetBrains/kotlin-playground/blob/master/.editorconfig | ||
root = true | ||
|
||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
max_line_length = 150 | ||
|
||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
ij_continuation_indent_size = 4 | ||
ij_kotlin_allow_trailing_comma = true | ||
ij_kotlin_allow_trailing_comma_on_call_site = true | ||
ij_kotlin_spaces_around_equality_operators = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 |
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,46 @@ | ||
# SOURCE: https://github.com/github/gitignore/blob/master/Android.gitignore | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Log/OS Files | ||
*.log | ||
|
||
# Android Studio generated files and folders | ||
captures/ | ||
.externalNativeBuild/ | ||
.cxx/ | ||
*.apk | ||
*.ap_ | ||
*.aab | ||
*.aar | ||
output.json | ||
|
||
# IntelliJ | ||
*.iml | ||
.idea/* | ||
!.idea/codeStyles/ | ||
!.idea/detekt.xml | ||
misc.xml | ||
deploymentTargetDropDown.xml | ||
render.experimental.xml | ||
|
||
# Keystore files | ||
# *.jks | ||
# *.keystore | ||
|
||
# Google Services (e.g. APIs or Firebase) | ||
# google-services.json | ||
|
||
# Android Profiling | ||
*.hprof | ||
|
||
# Windows thumbnail db | ||
Thumbs.db | ||
|
||
# OSX files | ||
.DS_Store |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
id("org.jlleitschuh.gradle.ktlint") | ||
id("io.gitlab.arturbosch.detekt") | ||
} | ||
|
||
android { | ||
namespace = "com.firework.example.language" | ||
|
||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.firework.example.language" | ||
|
||
minSdk = 21 | ||
targetSdk = 34 | ||
|
||
versionCode = 1 | ||
versionName = "1.0.0" | ||
} | ||
|
||
buildTypes { | ||
defaultConfig { | ||
buildConfigField("String", "FW_CLIENT_ID", "\"f6d6ec1275217f178cdff91363825cb390e038c1168f64f6efa23cb95ec6b325\"") | ||
buildConfigField("String", "FW_CHANNEL_ID", "\"o8l83w\"") | ||
buildConfigField("String", "FW_PLAYLIST_ID", "\"g4lA0g\"") | ||
} | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
kotlinOptions { | ||
allWarningsAsErrors = true | ||
jvmTarget = JavaVersion.VERSION_17.toString() | ||
} | ||
|
||
lint { | ||
abortOnError = true | ||
ignoreWarnings = false | ||
warningsAsErrors = true | ||
|
||
disable.apply { | ||
add("AppBundleLocaleChanges") | ||
} | ||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
} | ||
|
||
detekt { | ||
allRules = true | ||
config = files("$rootDir/config/detekt/detekt-config.yml") | ||
baseline = file("detekt-baseline.xml") | ||
buildUponDefaultConfig = true | ||
} | ||
|
||
dependencies { | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("androidx.constraintlayout:constraintlayout:2.1.4") | ||
|
||
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.6.10")) | ||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8") | ||
|
||
// Glide | ||
implementation("com.github.bumptech.glide:glide:4.16.0") | ||
|
||
// Firework SDK | ||
val fireworkBomVersion = "2024.02.07" | ||
implementation(platform("com.firework:firework-bom:$fireworkBomVersion")) | ||
implementation("com.firework:sdk") | ||
implementation("com.firework.external.imageloading:glide") // Glide (optional image loader) | ||
// implementation("com.firework.external.imageloading:picasso") // Picasso (optional image loader) | ||
} |
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.kts. | ||
# | ||
# 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 |
Oops, something went wrong.