Skip to content

Commit

Permalink
Merge pull request #78 from ryanaidilp/release/0.8.1
Browse files Browse the repository at this point in the history
feat(release): prepare release 0.8.1
  • Loading branch information
ryanaidilp authored Nov 3, 2024
2 parents 3d98501 + 8d6658d commit 97a9d83
Show file tree
Hide file tree
Showing 304 changed files with 6,724 additions and 10,302 deletions.
11 changes: 6 additions & 5 deletions .github/cspell.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"version": "0.2",
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"dictionaries": [
"vgv_allowed",
"vgv_forbidden"
],
"dictionaries": ["vgv_allowed", "vgv_forbidden"],
"dictionaryDefinitions": [
{
"name": "vgv_allowed",
Expand Down Expand Up @@ -48,5 +45,9 @@
"kbli",
"KBKI",
"KBLI",
"newscat",
"json_serialilzable",
"dartz",
"unused"
]
}
}
11 changes: 10 additions & 1 deletion .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ jobs:
lcov --remove ./coverage/lcov.info \
"**/*.config.dart" \
"**/base_entity_*.dart" \
"base_entity.dart" \
"**/base_entity.dart" \
"**/network_client.dart" \
"**/request_data.dart" \
"**/response_data.dart" \
"**/*_model.dart" \
"**/base_network_injector.dart" \
"**/result.dart" \
"**/stadata_flutter_sdk.dart" \
"**/register_module.dart" \
"**/http_*.dart" \
Expand All @@ -52,8 +58,11 @@ jobs:
"**/*.g.dart" \
"**/*.freezed.dart" \
"**/*_serializer.dart" \
"**/*_converter.dart" \
"**/service_locator.dart" \
"**/retry_interceptor.dart" \
"**/env.dart" \
"**/api_config.dart" \
"**/usecase.dart" \
"**/injector.dart" \
"**/*_injector.dart" \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
working_directory: packages/stadata_flutter_sdk
flutter_channel: stable
min_coverage: 80
coverage_excludes: "**/*.config.dart **/base_entity_*.dart **/base_entity.dart **/stadata_flutter_sdk.dart **/register_module.dart **/http_*.dart **/*_http_module.dart **/*_log_*.dart **/*.g.dart **/*.freezed.dart **/*_serializer.dart **/service_locator.dart **/env.dart **/usecase.dart **/injector.dart **/*_injector.dart"
coverage_excludes: "**/*.config.dart **/base_entity_*.dart **/base_entity.dart **/stadata_flutter_sdk.dart **/register_module.dart **/http_*.dart **/*_http_module.dart **/*_log_*.dart **/*.g.dart **/*.freezed.dart **/*_serializer.dart **/*_converter.dart **/service_locator.dart **/env.dart **/usecase.dart **/injector.dart **/*_injector.dart **/network_client.dart **/request_data.dart **/response_data.dart **/api_config.dart **/base_network_injector.dart **/result.dart **/*_model.dart **/retry_interceptor.dart"
659 changes: 659 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ For detailed usage instructions and documentation of this package, please refer
- ✅ News Categories
- ✅ Subject Categories
- ✅ Subjects
- 🔄 KBLI
- KBLI
- 🔄 Glosarium
- 🔄 Census Data
- 🔄 SIMDASI
Expand All @@ -83,7 +83,7 @@ For detailed usage instructions and documentation of this package, please refer
- ✅ Press Release
- ✅ News
- ✅ News Category
- 🔄 KBLI
- KBLI

---

Expand Down
26 changes: 26 additions & 0 deletions app/example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## 1.1.0

- **REFACTOR**(pages): update pages copy. ([75cfa203](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/75cfa2030cfbbb9af9b65606ad56048c3e37f120))
- **REFACTOR**(page): update copy of strategic indicator page. ([ec56f81c](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/ec56f81c72e5f54c081972cb04e2e06506792a6b))
- **REFACTOR**(copy): update static table copy. ([749da296](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/749da2968a99392caf7ccbfd43255155bd819276))
- **REFACTOR**(page): update copy and pagination of publication. ([d3c31a3a](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/d3c31a3ad6d17b259600b5a0e965f52c87524d7d))
- **REFACTOR**(linter): update linter rule. ([bbde442b](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/bbde442b1abf115fae627ad00233af74aa574bd5))
- **REFACTOR**(copy): update copy of old hardcoded. ([db255ec3](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/db255ec3b5c99230cefcc1631befd3b1931c0a7e))
- **REFACTOR**(example): use new pagination implementation. ([8d2ea0e3](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/8d2ea0e347d8935fb8cfdea1a08e6cb0e912a295))
- **REFACTOR**(widget): add expanded to prevent overflow. ([9e5aa8f3](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/9e5aa8f32f8273804ae610b127786ce95a6979ee))
- **REFACTOR**(news): update copy & pagination implementation of news. ([15fd249b](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/15fd249baf70c3e02b36480f3c6725854433cab8))
- **REFACTOR**(infographic-example): add number paginator. ([3583a216](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/3583a2168eec87fae86a0c4de03e61372bb5f1d3))
- **REFACTOR**(import): remove unused. ([a9666d5a](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/a9666d5a73487062f5760e034cde1c0040aef64e))
- **REFACTOR**(packages): update package version. ([17ce7bed](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/17ce7bed463c9bd6a7e8fb5bdaf4698a594bac9e))
- **REFACTOR**(docs): update documentation url. ([19ee634b](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/19ee634bf0001ec45e9d00781947c388e5ccf252))
- **REFACTOR**(pubspec): update example app description. ([bde9472c](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/bde9472ce951b69dd45c4dbb801e3a2a7810f85a))
- **REFACTOR**(app): re-structuring app code. ([88e30890](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/88e3089028bdece8e052558654a65d3e9c704e4e))
- **FIX**(gradle): update gradle settings. ([5ec68643](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/5ec686434477265252423ea1823d056ad19162e8))
- **FIX**(android): update android example. ([45948616](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/4594861607771bd4fc9d76314e23b88330a1add8))
- **FIX**(packages): remove month_year_picker. ([6f4f963e](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/6f4f963e0bb0b81f9b7f8ab2cd8e502f133d1d55))
- **FIX**(deps): remove month_year_picker. ([e160845e](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/e160845eff9c0fbbdb9c58b73467ece1143ced03))
- **FEAT**(locales): add more copy. ([2f953f78](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/2f953f7856dd9e30b1a8372cb600ac20cbc20bad))
- **FEAT**(locales): add copy for news page. ([c05d2676](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/c05d26764f978e6ed796a02b6ccf2aa7a75c539d))
- **FEAT**(locales): add more copy. ([eae73709](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/eae737094f356192c2170077b6fd979ba330f88b))
- **FEAT**(example): create example for kbki/kbli. ([bc02b75e](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/bc02b75e4c20b3e2a670ed573e652c50e3987246))
- **FEAT**(locale): add kbki & kbli related locale. ([81da46ef](https://github.com/ryanaidilp/stadata_flutter_sdk/commit/81da46ef18823cce0ae006f10215a48adfd68529))
1 change: 1 addition & 0 deletions app/example/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ linter:
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
prefer_const_constructors: true

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
Expand Down
2 changes: 1 addition & 1 deletion app/example/android/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gradle-wrapper.jar
GeneratedPluginRegistrant.java

# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
# See https://flutter.dev/to/reference-keystore
key.properties
**/*.keystore
**/*.jks
54 changes: 14 additions & 40 deletions app/example/android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,70 +1,44 @@
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}

android {
namespace "stadata.example.app.stadata_example"
compileSdkVersion flutter.compileSdkVersion
ndkVersion flutter.ndkVersion
namespace = "stadata.example.app.stadata_example"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
jvmTarget = JavaVersion.VERSION_1_8
}

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "stadata.example.app.stadata_example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}

buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
signingConfig = signingConfigs.debug
}
}
}

flutter {
source '../..'
}

dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
source = "../.."
}
12 changes: 12 additions & 0 deletions app/example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTop"
android:taskAffinity=""
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
Expand All @@ -30,4 +31,15 @@
android:name="flutterEmbedding"
android:value="2" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<data android:mimeType="text/plain"/>
</intent>
</queries>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ package stadata.example.app.stadata_example

import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
}
class MainActivity: FlutterActivity()
17 changes: 2 additions & 15 deletions app/example/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
buildscript {
ext.kotlin_version = '1.7.10'
repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

rootProject.buildDir = '../build'
rootProject.buildDir = "../build"
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
project.evaluationDependsOn(":app")
}

tasks.register("clean", Delete) {
Expand Down
2 changes: 1 addition & 1 deletion app/example/android/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
org.gradle.jvmargs=-Xmx1536M
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
android.useAndroidX=true
android.enableJetifier=true
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
19 changes: 12 additions & 7 deletions app/example/android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,21 @@ pluginManagement {
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}
settings.ext.flutterSdkPath = flutterSdkPath()
}()

includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")

plugins {
id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}

include ":app"
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
}

apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle"
include ":app"
60 changes: 59 additions & 1 deletion app/example/assets/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,22 @@
"domain": "Domain Page",
"units": "Unit Page",
"variables": "Variable Page",
"vertical_variables": "Vertical Variable Page"
"vertical_variables": "Vertical Variable Page",
"news": "News Page",
"news_category": "News Category Page",
"press_release": "Press Release Page",
"detail_news": "News Detail",
"press_release_detail": "Press Release Detail",
"publication": "Publication Page",
"publication_detail": "Publication Detail",
"static_table": "Static Table Page",
"static_table_detail": "Static Table Detail",
"strategic_indicator": "Strategic Indicator Page",
"subject_category": "Subject Category Page",
"subject": "Subject Page"
},
"label": {
"author": "Author",
"empty": "Empty",
"result": "Result",
"custom_param": "Custom Param",
Expand All @@ -34,14 +47,27 @@
"language": "Language (lang) - required",
"domain": "Domain (domain) - required",
"subject_id": "Subject ID (subject) - optional",
"subcat": "Subject Category ID (subcat) - optional",
"year": "Year (year) - optional",
"variable_id": "Variable ID (var) - optional",
"news_category": {
"optional": "News Category (newscat) - optional",
"required": "News Category (newscat) - required"
},
"month_year": {
"optional": "Month & Year (month & year) - optional",
"required": "Month & Year (month & year) - required"
},
"pagination": {
"main": "Pagination",
"page": "Page: @page",
"pages": "Pages: @pages",
"per_page": "Per Page: @per_page",
"total": "Total: @total"
},
"keyword": {
"optional": "Keyword (keyword) - optional",
"required": "Keyword (keyword) - required"
}
},
"button": {
Expand Down Expand Up @@ -86,6 +112,38 @@
"classification": {
"type": "Classification Type",
"category": "Classification Category"
},
"press_release": {
"release_date": "Release Date : ",
"updated_date": "Updated Date : ",
"pdf_url": "PDF Url : ",
"slide_url": "Slide Url : ",
"file_size": "File Size : ",
"no_changes": "No Changes Made"
},
"publication": {
"latest_update": "Latest Update",
"no_update": "No Update",
"publication_number": "Publication Number",
"catalog_number": "Catalog Number",
"issn": "ISSN",
"file_size": "File Size",
"abstract": "Abstract"
},
"static_table": {
"updated_at": "Updated At : "
},
"strategic_indicator": {
"indicator_id": "Indicator ID (indicator_id) : ",
"value": "Value (value) : ",
"unit": "Unit (unit) : ",
"period": "Period (periode) : ",
"data_source": "Data Source (data_source) : ",
"hash_id": "Hash ID (hash_id) : ",
"category_id": "Category ID (category) : ",
"csa_subject_id": "CSA Subject ID (subject_csa) : ",
"name": "Name (name) : ",
"variable_id": "Variable ID (var) : "
}
}
}
Loading

0 comments on commit 97a9d83

Please sign in to comment.