Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add material you #178

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@ apply plugin: 'com.android.application'


android {
compileSdkVersion 29
compileSdkVersion 31//CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142

defaultConfig {
applicationId "io.github.subhamtyagi.lastlauncher"
minSdkVersion 14
targetSdkVersion 29
targetSdkVersion 30//CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142
versionCode 19
versionName "0.19"
//resConfigs "en", "de"
buildConfigField "boolean", "enableColorSniffer", "false"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
buildTypes {
debug {
Expand Down Expand Up @@ -68,6 +69,11 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':flowlayout:layouts')
implementation 'androidx.appcompat:appcompat:1.3.0' //CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142
implementation 'com.google.android.material:material:1.5.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation 'androidx.test:rules:1.4.0'//CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142

debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package io.github.subhamtyagi.lastlauncher;


import static org.junit.Assert.assertEquals;


import androidx.test.filters.LargeTest;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;


import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import io.github.subhamtyagi.lastlauncher.utils.DbUtils;


@LargeTest
@RunWith(AndroidJUnit4.class)
/**
* To test if it starts with default theme
* CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142
*/
public class LauncherActivityTest { //NOPMD - suppressed AtLeastOneConstructor - It is a test file


/**
* Construct LauncherActivity
*/
@Rule
public ActivityTestRule<LauncherActivity> mActivityTestRule = new ActivityTestRule<>(LauncherActivity.class);

/**
* Test
*/
@Test
public void launcherActivityTest() {

assertEquals("Theme is not default",R.style.AppTheme,DbUtils.getTheme());
}


}
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
android:excludeFromRecents="true"
android:label="@string/app_name"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
android:windowSoftInputMode="adjustResize"
android:exported="true"><!--changed-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Binary file modified app/src/main/assets/fonts/raleway_bold.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@
import static io.github.subhamtyagi.lastlauncher.utils.Constants.SORT_BY_SIZE;
import static io.github.subhamtyagi.lastlauncher.utils.Constants.SORT_BY_UPDATE_TIME;

import androidx.appcompat.app.AppCompatActivity;

/**
* --------------------------------------------------------------------------
* People can criticise me all the time they want,
Expand All @@ -124,13 +126,14 @@
* Don’t just think, do it. Now it is you turn, do it now, go fast and open pull request
* -
* ----------------------------------------------------------------------------
* This Activity extends the api 14 Activity Class not latest AppCompatActivity
* Reason: Small apk size
* This Activity extends AppCompatActivity to achieve changing theme with day/Night theme
*
*
*/
@SuppressLint("NonConstantResourceId")
public class LauncherActivity extends Activity implements View.OnClickListener,
public class LauncherActivity extends AppCompatActivity implements View.OnClickListener,
View.OnLongClickListener,
Gestures.OnSwipeListener {
Gestures.OnSwipeListener { //CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142


//region Field declarations
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-nb-rNO/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,5 @@
<string name="rename">Gi nytt navn</string>
<string name="color_for_this_entry">Farger og størrelse</string>
<string name="from_color_sniffer_app">Fra ColorSniffer-program</string>
<string name="restart_launcher">Start oppstarter på ny</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@
<string name="color_for_this_entry">Цвета и размер</string>
<string name="action_settings">Настройки</string>
<string name="from_color_sniffer_app">Из приложения ColorSniffer</string>
<string name="restart_launcher">Перезапустить лаунчер</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values-sk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@
<string name="action_settings">Nastavenia</string>
<string name="recently_first">Nedávneho použitia</string>
<string name="custom">Vlastné</string>
<string name="restart_launcher">Reštartovať spúšťač</string>
</resources>
59 changes: 59 additions & 0 deletions app/src/main/res/values-tr/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="color_for_this_entry">Renkler ve Boyut</string>
<string name="fonts">Yazi Tipleri</string>
<string name="random_colors">Rastgele Renkler</string>
<string name="default_theme">Varsayılan Tema</string>
<string name="action_settings">Ayarlar</string>
<string name="rename">Yeniden Adlandır</string>
<string name="uninstall">Kaldır</string>
<string name="hide">Gizle</string>
<string name="hidden_apps">Gizli Uygulamalar</string>
<string name="frozen_apps">Dondurulmuş Uygulamalar</string>
<string name="background_wallpaper">Arkaplan Resmi</string>
<string name="white_on_black">Siyah üzerinde beyaz</string>
<string name="black_on_white">Beyaz üzerinde siyah</string>
<string name="themes">Temalar</string>
<string name="set_to_primary_colors">Ana Renkleri Ayarla</string>
<string name="backup">Yedekle</string>
<string name="app_info">Uygulama Bilgisi</string>
<string name="reset_to_default">Hepsini Sıfırla</string>
<string name="reset_to_default_settings">Varsayılan ayarlara sıfırla</string>
<string name="freeze_apps_size">Uygulamaların Boyutunu Dondur</string>
<string name="unfreeze_app_size">Uygulamaların Boyutunu Çöz</string>
<string name="freeze_size">Boyutu Dondur</string>
<string name="unfreeze_size">Boyutu çöz</string>
<string name="backup_saved_to_downloads">Yedek İndirilenler klasörüne kaydedildi</string>
<string name="restore">Onar</string>
<string name="fixed_colors">Sabit Renkler</string>
<string name="black_on_grey">Gri üzerinde beyaz</string>
<string name="hacker_red">Hacker Kırmızısı</string>
<string name="padding">Dolgu</string>
<string name="open">Aç</string>
<string name="sort_apps_by">Uygulamaları Sıralama Ölçütü</string>
<string name="start">Başlangıç</string>
<string name="white_on_grey">Beyaz üzerinde gri</string>
<string name="hacker_green">Hacker Yeşili</string>
<string name="choose_old_backup_files">Önceki yedek dosyasını seç</string>
<string name="from_clipboard">Panodan</string>
<string name="from_color_sniffer_app">ColorSniffer Uygulamasından</string>
<string name="some_error_occurred">Bazı hatalar oluştu</string>
<string name="choose_old_backup_file">Eski yedek dosyasını seç</string>
<string name="end">Bitiş</string>
<string name="on">:Aç</string>
<string name="off">:Kapat</string>
<string name="alignment">Hizalama</string>
<string name="center">Orta</string>
<string name="reset_color">Rengi Sıfırla</string>
<string name="remove">Kaldır</string>
<string name="restore_default_fonts">Varsayılan yazı tipine sıfırla</string>
<string name="select_fonts">Yazı tipi seç</string>
<string name="by_opening_counts">Uygulama Kullanımı</string>
<string name="by_name">İsim</string>
<string name="by_color">Renk</string>
<string name="restart_launcher">Başlatıcıyı Yeniden Başlat</string>
<string name="update_time">Güncelleme zamanı</string>
<string name="custom">Özel</string>
<string name="by_size">Boyut</string>
<string name="recently_first">Önce ilk</string>
</resources>
8 changes: 4 additions & 4 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources xmlns:tools="http://schemas.android.com/tools">

<style name="AppBaseTheme" parent="android:Theme.Holo.Light.NoActionBar">
<style name="AppBaseTheme" parent="Theme.MaterialComponents.DayNight"><!--changed to themes in materialComponents-->
<item name="android:popupAnimationStyle">@style/WindowAnimationTransition</item>
<item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
<item name="android:listPreferredItemHeightSmall">40dp</item>
Expand All @@ -19,9 +19,9 @@
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:textColor">#8F8C8C</item>
<!--<item name="android:switchTextAppearance">#FF8F8C8C</item>-->
<item name="android:background">@android:color/black</item>
<item name="android:statusBarColor" tools:targetApi="lollipop">@android:color/black</item>
<item name="android:navigationBarColor" tools:targetApi="21">@android:color/black</item>
<!-- <item name="android:background">@android:color/black</item>-->
<!-- <item name="android:statusBarColor" tools:targetApi="lollipop">@android:color/black</item>-->
<!-- <item name="android:navigationBarColor" tools:targetApi="21">@android:color/black</item>-->

</style>

Expand Down
14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,17 @@ allprojects {
maven { url 'https://jitpack.io' }
}
}

apply plugin: 'checkstyle'
checkstyle{
toolVersion = '10.1'
configFile = rootProject.file('config/checkstyle/checkstyle.xml')
}
task Checkstyle(type:Checkstyle){
source 'src/main/java'
include '**/*.java'
exclude '**/gen/**'
exclude '**/R.java'
exclude '**/BuildConfig.java'
classpath = rootProject.files()
}
2 changes: 1 addition & 1 deletion fastlane/metadata/android/hr/full_description.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Last Launcher je brz, jednostavan, minimalistički, prilagodljiv pokretač za Android. Cilj mu je pružiti najbrže i najjednostavnije korisničko iskustvo ikad.
Last Launcher je brz, jednostavan, minimalistički, prilagodljiv pokretač za Android. Cilj mu je pružiti najbrže i najjednostavnije korisničko iskustvo ikada.

<p>
*************************
Expand Down
10 changes: 10 additions & 0 deletions fastlane/metadata/android/pt-BR/changelogs/18.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
*Lançamento do Beta 8*

* O que há de novo neste lançamento

- Correção de erros para "Crashing o Launcher ao atualizar apps".
- Correção de vazamento de memória

* Mudanças nos códigos fonte do projeto.

- Atualização de tradução.
9 changes: 9 additions & 0 deletions fastlane/metadata/android/pt-BR/changelogs/19.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*Glória à Ucrânia 🇺🇦 *
*StandWithUkraine*

Atualização de tradução para:

Lituano
Romeno
Espanhol
Ucraniano
1 change: 1 addition & 0 deletions fastlane/metadata/android/ru/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Быстрее света
1 change: 1 addition & 0 deletions fastlane/metadata/android/ru/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Last Launcher
1 change: 1 addition & 0 deletions fastlane/metadata/android/ru/video.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.youtube.com/watch?v=SzhJgH4a2cU
1 change: 1 addition & 0 deletions fastlane/metadata/android/tr/changelogs/1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*Önizleme sürümü*
7 changes: 7 additions & 0 deletions fastlane/metadata/android/tr/changelogs/10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*Önizleme sürümü 10*

- Uygulamaları isim, boyut, renk ve kullanıma gore sıralama
- Uygulama, website kısayollarını ve PWA'ları gösterme
- Yedeklemeden sonra temanın doğru olmaması için hata düzeltmesi
- Kırmızı şeylerin düzgün görüntülenmemesi için hata düzeltmesi
- Performans geliştirmeleri.
13 changes: 13 additions & 0 deletions fastlane/metadata/android/tr/changelogs/11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*Beta sürüm 1*

* Çok sayıda önizleme sürümünden sonra Last Launcher beta aşamasına girdi.

* Bu Sürümdeki Yenilikler

- Uygulama arama.
- Performans iyileştirmeleri(başlangıç, sıralama ve rastgele renk).
- APK boyutunda büyük azalma (23%).
- Daha fazla bellek tüketimi azaltma.
- Daha fazla Bellek sızıntısına neden olan Kısayollar ve PWA'larla ilgili hata düzeltmesi

- Bu güncelleme, bu başlatıcıdan eski kısayolları kaldıracak, güncellemeden sonra yeniden eklemeniz gerek.
44 changes: 44 additions & 0 deletions fastlane/metadata/android/tr/full_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Last Launcher hızlı, basit, minimalist ve kişiselleştirilebilir bir Android başlatıcısıdır. En hızlı ve en basit kullanıcı deneyimini sunmayı hedefler.

<p>
*************************
**Bu bir <font color="#FF6E40"><b>Beta sürümüdür***
*************************
</p>

<h4>Bu uygulamayı <a href="https://hosted.weblate.org/projects/last-launcher">Weblate(https://hosted.weblate.org/projects/last-launcher)</a> üzerinden kendi diline çevir.</h4>

<h2>Tasarı</h2>
▶ Her zaman ücretsiz (ücretsiz ve özgür).
▶ F-droid'e özel.

<h2>🚀 Performans</h2>
▶ Hızlıdan daha hızlı :)
▶ 130KB'dan daha düşük hafif ve küçük APK boyutu.
▶ Düşük bellek ve CPU kullanımı.

<h2>💥 Özellikler</h2>
▶ Uygulamalar arasında arama.
▶ Kısayol ve PWA desteği.
▶ Boyutlandırılabilir ve renklendirilebilir uygulama isimleri.
▶ Birçok şekilde uygulamaları sıralama.
▶ Özel yerleşim ve dolgu.
▶ Rastgele renkler.
▶ Çoklu tema.
▶ Uygulamaları gizleme.
▶ Uygulama boyutunu dondurma.
▶ Başlatıcı verisini yedekleme/geri yükleme.
▶ İkon ve widget yok <strike>(dezavantaj olabilir)</strike>.
▶ Dahası için <font color="#FF6E40"><b>başlatıcıyı dene</b></font> ve farkı gör.

<h2> Gizlilik<h2>
▶ İnternet erişimi izni yok.
▶ Depolama erişimi izni yok.
▶ Tüm veriler cihazın özel deposunda saklanır ve hassas veriler basit bir algoritma ile şifrelenir.

<h2>Navigasyon</h2>
▶<font color="#FF6E40"> Başlatıcı ayarlarına erişmek için BOŞ BİR ALANA basılı tut.</font>
▶<font color="#FF6E40"> Arama barına erişmek için SAĞA kaydır.</font>
▶<font color="#FF6E40"> Arama barını gizlemek için Geri/Ev tuşuna basın veya ana ekranda SOLA kaydırın.</font>

<h4>Bu uygulamayı <a href="https://hosted.weblate.org/projects/last-launcher">Weblate(https://hosted.weblate.org/projects/last-launcher)</a> üzerinden kendi diline çevir.</h4>
1 change: 1 addition & 0 deletions fastlane/metadata/android/tr/short_description.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Işıktan daha hızlı
1 change: 1 addition & 0 deletions fastlane/metadata/android/tr/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Last Launcher
1 change: 1 addition & 0 deletions fastlane/metadata/android/tr/video.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://www.youtube.com/watch?v=SzhJgH4a2cU
5 changes: 3 additions & 2 deletions flowlayout/layouts/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 29

compileSdkVersion 31//CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142


defaultConfig {
versionCode 2
versionName "0.2"
minSdkVersion 14
targetSdkVersion 29
targetSdkVersion 30//CS304 Issue Link : https://github.com/SubhamTyagi/Last-Launcher/issue/142
}
buildTypes {
release {
Expand Down
5 changes: 3 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
org.gradle.parallel=true
android.enableR8=true
org.gradle.jvmargs=-Xmx1024m -XX:MaxPermSize=512m -Dfile.encoding=UTF-8
android.useAndroidX=false
android.enableJetifier=false
#changed
android.useAndroidX=true
android.enableJetifier=true
#exerimental
#android.enableR8=true
#deprecated
Expand Down