Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-b committed Mar 31, 2024
2 parents 9456bd3 + e81b205 commit fb29a97
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
24 changes: 12 additions & 12 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ android {
}

// remove in dev env
splits {
abi {
enable true
reset()
include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
universalApk false
}
}

kotlinOptions {
jvmTarget = '1.8'
}
// splits {
// abi {
// enable true
// reset()
// include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
// universalApk false
// }
// }
//
// kotlinOptions {
// jvmTarget = '1.8'
// }

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
Expand Down
3 changes: 3 additions & 0 deletions lib/extractor/general/world/theguardian.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ class TheGuardian extends Publisher {
@override
Category get mainCategory => Category.world;

@override
bool get hasSearchSupport => false;

Future<Map<String, String>> extractCategories() async {
Map<String, String> map = {};
var response = await http.get(Uri.parse(homePage));
Expand Down
22 changes: 22 additions & 0 deletions test/extractor/general/world/theguardian_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:raven/extractor/general/world/reuters.dart';
import 'package:raven/extractor/general/world/theguardian.dart';
import 'package:raven/model/publisher.dart';

import '../../common.dart';

void main() {
Publisher publisher = TheGuardian();

test('Extract Categories Test', () async {
await ExtractorTest.categoriesTest(publisher);
});

test('Category Articles Test', () async {
await ExtractorTest.categoryArticlesTest(publisher);
});

test('Search Articles Test', () async {
await ExtractorTest.searchedArticlesTest(publisher, 'world');
});
}

0 comments on commit fb29a97

Please sign in to comment.