Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7705271f authored by Amit Kumar's avatar Amit Kumar
Browse files

Bump version 1.0.2 and Merge branch 'browser-search-engine' with following features/fixes.

1. Use browser search engine settings for launcher suggestions.
parents 56159132 5febf31a
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ apply plugin: 'io.fabric'
// Manifest version information!
def versionMajor = 1
def versionMinor = 0
def versionPatch = 1
def versionPatch = 2

android {
    compileSdkVersion rootProject.ext.compileSdkVersion
+14 −0
Original line number Diff line number Diff line
package foundation.e.blisslauncher.features.suggestions;
package foundation.e.blisslauncher.core.network.duckduckgo;

public class AutoCompleteServiceRawResult {
public class DuckDuckGoResult {

    private String phrase;

    public AutoCompleteServiceRawResult(String phrase){
    public DuckDuckGoResult(String phrase){
        this.phrase = phrase;
    }

+12 −0
Original line number Diff line number Diff line
package foundation.e.blisslauncher.features.suggestions;
package foundation.e.blisslauncher.core.network.duckduckgo;

import java.util.List;

@@ -6,8 +6,7 @@ import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface AutoCompleteService {

public interface DuckDuckGoSuggestionService {
    @GET("/ac/")
    Observable<List<AutoCompleteServiceRawResult>> query(@Query("q") String query);
    Observable<List<DuckDuckGoResult>> query(@Query("q") String query);
}
+20 −0
Original line number Diff line number Diff line
package foundation.e.blisslauncher.core.network.qwant;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class QwantData {
    @SerializedName("items")
    @Expose
    private List<QwantItem> items = null;

    public List<QwantItem> getItems() {
        return items;
    }

    public void setItems(List<QwantItem> items) {
        this.items = items;
    }
}
+29 −0
Original line number Diff line number Diff line
package foundation.e.blisslauncher.core.network.qwant;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class QwantItem {
    @SerializedName("value")
    @Expose
    private String value;
    @SerializedName("suggestType")
    @Expose
    private Integer suggestType;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Integer getSuggestType() {
        return suggestType;
    }

    public void setSuggestType(Integer suggestType) {
        this.suggestType = suggestType;
    }
}
Loading