Skip to content

Commit

Permalink
Merge pull request #172 from michal-josef-spacek/gh-166
Browse files Browse the repository at this point in the history
Update org.wikipedia.Wiki
  • Loading branch information
michal-josef-spacek authored Oct 27, 2021
2 parents 7f62e97 + 50cd1f8 commit c08de1e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you want to just run local build:
./gradlew run
```

Create org-wikipedia-Wiki.jar file:
Create org-wikipedia-Wiki.jar file (be careful, we need class file in Java 11 version):
```
git clone https://github.com/MER-C/wiki-java.git
cd wiki-java
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies {
implementation 'com.drewnoakes:metadata-extractor:2.6.2'
implementation 'org.swinglabs.swingx:swingx-all:1.6.5-1'
implementation 'org.jxmapviewer:jxmapviewer2:2.6'
implementation files('lib/org-wikipedia-Wiki-59708d.jar')
implementation files('lib/org-wikipedia-Wiki-39f68b.jar')

// Use JUnit test framework
testImplementation 'junit:junit:4.13'
Expand Down
Binary file added lib/org-wikipedia-Wiki-39f68b.jar
Binary file not shown.
Binary file removed lib/org-wikipedia-Wiki-59708d.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/java/cuploader/CategoryHint.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void loadCategories() {

try {
//get list
String[] listPages = wiki.listPages("Category:"+text, null, Wiki.CATEGORY_NAMESPACE).toArray(new String[0]);
String[] listPages = wiki.listPages(text, null, Wiki.CATEGORY_NAMESPACE).toArray(new String[0]);

//remove loading
mCatHint.removeAll();
Expand Down

0 comments on commit c08de1e

Please sign in to comment.