Skip to content

Commit

Permalink
fixes #6 and quint search issue (#7)
Browse files Browse the repository at this point in the history
* fix quint search

* format / optimize imports

* add 0.8.2

* update gitignore

* fix scroll issue in category popup
  • Loading branch information
ksh-b authored Apr 9, 2024
1 parent 01c395b commit 4e01bed
Show file tree
Hide file tree
Showing 16 changed files with 339 additions and 403 deletions.
125 changes: 15 additions & 110 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Do not remove or rename entries in this file, only add new ones
# See https://github.com/flutter/flutter/issues/128635 for more context.

# Miscellaneous
*.class
*.lock
*.log
*.pyc
*.swp
Expand All @@ -12,127 +8,36 @@
.buildlog/
.history
.svn/
migrate_working_dir/

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# Visual Studio Code related
.classpath
.project
.settings/
.vscode/*

# Flutter repo-specific
/bin/cache/
/bin/internal/bootstrap.bat
/bin/internal/bootstrap.sh
/bin/mingit/
/dev/benchmarks/mega_gallery/
/dev/bots/.recipe_deps
/dev/bots/android_tools/
/dev/devicelab/ABresults*.json
/dev/docs/doc/
/dev/docs/api_docs.zip
/dev/docs/flutter.docs.zip
/dev/docs/lib/
/dev/docs/pubspec.yaml
/dev/integration_tests/**/xcuserdata
/dev/integration_tests/**/Pods
/packages/flutter/coverage/
version
analysis_benchmark.json

# packages file containing multi-root paths
.packages.generated
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
#.vscode/

# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
**/generated_plugin_registrant.dart
.packages
.pub-preload-cache/
.pub-cache/
.pub/
build/
flutter_*.png
linked_*.ds
unlinked.ds
unlinked_spec.ds

# Android related
**/android/**/gradle-wrapper.jar
.gradle/
**/android/captures/
**/android/gradlew
**/android/gradlew.bat
**/android/local.properties
**/android/**/GeneratedPluginRegistrant.java
**/android/key.properties
*.jks

# iOS/XCode related
**/ios/**/*.mode1v3
**/ios/**/*.mode2v3
**/ios/**/*.moved-aside
**/ios/**/*.pbxuser
**/ios/**/*.perspectivev3
**/ios/**/*sync/
**/ios/**/.sconsign.dblite
**/ios/**/.tags*
**/ios/**/.vagrant/
**/ios/**/DerivedData/
**/ios/**/Icon?
**/ios/**/Pods/
**/ios/**/.symlinks/
**/ios/**/profile
**/ios/**/xcuserdata
**/ios/.generated/
**/ios/Flutter/.last_build_id
**/ios/Flutter/App.framework
**/ios/Flutter/Flutter.framework
**/ios/Flutter/Flutter.podspec
**/ios/Flutter/Generated.xcconfig
**/ios/Flutter/ephemeral
**/ios/Flutter/app.flx
**/ios/Flutter/app.zip
**/ios/Flutter/flutter_assets/
**/ios/Flutter/flutter_export_environment.sh
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# macOS
**/Flutter/ephemeral/
**/Pods/
**/macos/Flutter/GeneratedPluginRegistrant.swift
**/macos/Flutter/ephemeral
**/xcuserdata/

# Windows
**/windows/flutter/generated_plugin_registrant.cc
**/windows/flutter/generated_plugin_registrant.h
**/windows/flutter/generated_plugins.cmake
/build/

# Linux
**/linux/flutter/generated_plugin_registrant.cc
**/linux/flutter/generated_plugin_registrant.h
**/linux/flutter/generated_plugins.cmake

# Coverage
coverage/

# Symbols
# Symbolication related
app.*.symbols

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock
!.vscode/settings.json
# Obfuscation related
app.*.map.json

# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
7 changes: 6 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.8.1] - 2024-03-31
## [0.8.2] - 2024-04-07

Fdroid release

## [0.8.1] - 2024-04-07

### Added:
- Source: AP News
Expand Down Expand Up @@ -112,6 +116,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### First Release

[unreleased]: https://github.com/ksh-b/raven/compare/v0.8.1...HEAD
[0.8.2]: https://github.com/ksh-b/raven/compare/v0.8.1...v0.8.2
[0.8.1]: https://github.com/ksh-b/raven/compare/v0.7.1...v0.8.1
[0.7.1]: https://github.com/ksh-b/raven/compare/v0.6.0...v0.7.1
[0.6.0]: https://github.com/ksh-b/raven/compare/v0.5.2...v0.6.0
Expand Down
1 change: 0 additions & 1 deletion lib/brain/article_provider.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:collection';
import 'dart:developer';
import 'package:raven/model/article.dart';
import 'package:raven/model/publisher.dart';
import 'package:raven/model/user_subscription.dart';
Expand Down
6 changes: 1 addition & 5 deletions lib/extractor/general/national/india/thequint.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// ignore_for_file: unused_import

import 'dart:collection';

import 'package:html/dom.dart';
import 'package:raven/model/article.dart';
import 'package:raven/model/publisher.dart';
Expand Down Expand Up @@ -125,7 +121,7 @@ class TheQuint extends Publisher {
"https://images.thequint.com/${element['hero-image-s3-key']}";
var time = element["last-published-at"];
var articleUrl = element["url"];
var sections = element['story']["sections"];
var sections = element["sections"];
for (var section in sections) {
tags.add(section["name"]);
}
Expand Down
4 changes: 0 additions & 4 deletions lib/extractor/general/world/apnews.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// ignore_for_file: unused_import

import 'package:intl/intl.dart';
import 'package:raven/model/article.dart';
import 'package:raven/model/publisher.dart';
import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:html/parser.dart' as html_parser;
import 'package:raven/utils/string.dart';
import 'package:raven/utils/time.dart';

class APNews extends Publisher {
Expand All @@ -29,7 +26,6 @@ class APNews extends Publisher {
var document = html_parser.parse(utf8.decode(response.bodyBytes));
document
.querySelectorAll('.Page-header-navigation .AnClick-MainNav')
.take(5)
.forEach((element) {
map.putIfAbsent(
element.text,
Expand Down
3 changes: 2 additions & 1 deletion lib/extractor/general/world/cnn.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ class CNN extends Publisher {
int convertToUnixTimestamp(String dateString) {
DateFormat dateFormat =
DateFormat("h:mm a 'EDT', EEE MMMM d, yyyy", 'en_US');
DateTime dateTime = dateFormat.parse(dateString.trim());
DateTime dateTime =
dateFormat.tryParse(dateString.trim()) ?? DateTime.timestamp();
return dateTime.millisecondsSinceEpoch ~/ 1000;
}

Expand Down
4 changes: 0 additions & 4 deletions lib/extractor/general/world/theguardian.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// ignore_for_file: unused_import

import 'package:intl/intl.dart';
import 'package:raven/model/article.dart';
import 'package:raven/model/publisher.dart';
import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:html/parser.dart' as html_parser;
import 'package:raven/utils/string.dart';
import 'package:raven/utils/time.dart';

class TheGuardian extends Publisher {
Expand Down
Loading

0 comments on commit 4e01bed

Please sign in to comment.