Skip to content

Commit ce42cd5

Browse files
Update 1.3_r1.
1 parent 0e308c5 commit ce42cd5

File tree

78 files changed

+426
-629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+426
-629
lines changed

.idea/misc.xml

Lines changed: 18 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# Version 1.3_r1:
2+
- Target SDK now is 26;
3+
- Removed unused resources;
4+
- Added mail to dev;
5+
- Changed themes;
6+
- Changed colors;
7+
- Added launcher shortcuts;
8+
- Added license in more menu;
9+
- Maybe is more but I forget.
10+
111
# Version 1.2_r1:
212
- Fixed theme settings;
313
- Reduced app size;

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,43 @@
99
![GitHub Pull Requests](https://img.shields.io/github/issues-pr/D4rK7355608/com.d4rk.englishwithlidia.plus?style=for-the-badge&logo=github)
1010
![GitHub License](https://img.shields.io/github/license/D4rK7355608/com.d4rk.englishwithlidia.plus?style=for-the-badge&logo=github)
1111

12-
## English with Lidia Plus
12+
## 📚 English with Lidia Plus 📚
1313

1414
- ╔╦╦╦═╦╗╔═╦═╦══╦═╗
1515
- ║║║║╩╣╚╣═╣║║║║║╩╣
1616
- ╚══╩═╩═╩═╩═╩╩╩╩═╝
1717

18-
## Learn english and relax in the same time!
18+
## Learn english and relax in the same time! 📚
1919

2020
Learn English by reading our blog. 📗 Or, instead you can listen to us. 📻 This is the official app developed by D4rK for Lidia, our English teacher who want to give us best lessons. 📖
2121
This app is made with love and passion for everyone! 💖
2222

2323
🌐 Official website/blog is [here](https://sites.google.com/view/englishwithlidia/home).
2424

25-
Bugs can be reported here.
25+
## ⚠ Opening Issues ⚠
2626

27-
## Opening Issues :warning:
27+
Bugs can be reported [here](https://github.com/D4rK7355608/com.d4rk.englishwithlidia.plus/issues).
2828

2929
> Only use the GitHub Issues section if you discovered issues with the code itself. Do not mistake the Issues page as a help desk.
3030
> For support, informations and requests, please contact <d4rk7355608@gmail.com>.
3131
3232
- Create an audio/text/general bug. 🐞
3333

34-
__English with Lidia Plus is 100% free, open source, ad free, and have a clean design!__
34+
__🖤 English with Lidia Plus is 100% free, open source, ad free, and have a clean design! 🖤__
3535

36-
## 💿 Features!
36+
## 🛠️ Features!
3737
- ⭐️ No internet required.
38+
- ⭐️ Play audio instead of reading.
3839
- ⭐️ Adaptive themes + Material-You.
3940
- ⭐️ Simple and easy to use.
4041
- ⭐️ Fast and lightweight.
41-
- ⭐️ Play audio instead of reading.
4242
- ⭐️ Free Open source & secure.
4343

4444
__❗️Note❗️__ Some features are still in progress or needs more improvements and investigations.
4545

4646
## Changelog [here](https://raw.githubusercontent.com/D4rK7355608/com.d4rk.englishwithlidia.plus/master/CHANGELOG.md)!
4747

48-
## Screenshots:
48+
## 🖼️ App preview:
4949

5050
<img src="/app/src/main/play/listings/en-US/graphics/phone-screenshots/1-screenshot_main.png" width="400">
5151

@@ -77,4 +77,4 @@ height="90">](https://play.google.com/store/apps/details?id=com.d4rk.englishwith
7777
__Privacy Policy__ [here](https://sites.google.com/view/d4rk7355608/more/apps/music-sleep-timer/privacy-policy).
7878
__Terms of Service__ [here](https://sites.google.com/view/d4rk7355608/more/apps/music-sleep-timer/terms-of-service).
7979

80-
![license](https://imgur.com/QQlcEVT.png)
80+
![license](https://imgur.com/QQlcEVT.png)

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ plugins {
77
}
88
android {
99
compileSdk 32
10-
def tagName = '1.2_r1'
10+
def tagName = '1.3_r1'
1111
defaultConfig {
1212
applicationId "com.d4rk.englishwithlidia.plus"
13-
minSdk 23
13+
minSdk 26
1414
targetSdk 32
15-
versionCode 15
15+
versionCode 17
1616
versionName tagName
1717
archivesBaseName = "com.d4rk.englishwithlidia.plus-v${tagName}"
1818
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -47,7 +47,7 @@ android {
4747
}
4848
}
4949
dependencies {
50-
implementation platform('com.google.firebase:firebase-bom:30.1.0')
50+
implementation platform('com.google.firebase:firebase-bom:30.2.0')
5151
implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.11'
5252
implementation 'com.google.firebase:firebase-analytics-ktx:21.0.0'
5353
implementation 'com.google.firebase:firebase-perf:20.1.0'

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
android:icon="@mipmap/ic_launcher"
1919
android:label="@string/app_name"
2020
android:logo="@drawable/ic_launcher_foreground"
21-
android:roundIcon="@mipmap/ic_launcher_round"
2221
android:screenOrientation="fullSensor"
2322
android:supportsRtl="true"
2423
android:theme="@style/AppThemeActionBar"
@@ -85,6 +84,9 @@
8584
<meta-data
8685
android:name="android.support.PARENT_ACTIVITY"
8786
android:value=".MainActivity"/>
87+
<meta-data
88+
android:name="android.app.shortcuts"
89+
android:resource="@xml/shortcuts"/>
8890
</activity>
8991
<meta-data
9092
android:name="firebase_performance_logcat_enabled"

app/src/main/kotlin/com/d4rk/englishwithlidia/plus/MainActivity.kt

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.d4rk.englishwithlidia.plus
22
import android.content.DialogInterface
33
import android.content.Intent
4+
import android.graphics.drawable.Icon
45
import android.net.Uri
56
import android.os.Bundle
67
import android.view.Menu
@@ -9,7 +10,11 @@ import android.view.View
910
import androidx.appcompat.app.AlertDialog
1011
import androidx.appcompat.app.AppCompatActivity
1112
import androidx.appcompat.app.AppCompatDelegate
13+
import androidx.core.content.pm.ShortcutInfoCompat
14+
import androidx.core.content.pm.ShortcutManagerCompat
15+
import androidx.core.graphics.drawable.IconCompat
1216
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
17+
import androidx.core.view.GravityCompat
1318
import androidx.drawerlayout.widget.DrawerLayout
1419
import androidx.navigation.fragment.NavHostFragment
1520
import androidx.navigation.ui.AppBarConfiguration
@@ -25,6 +30,7 @@ import com.google.android.material.textview.MaterialTextView
2530
class MainActivity : AppCompatActivity() {
2631
private lateinit var appBarConfiguration: AppBarConfiguration
2732
private lateinit var binding: ActivityMainBinding
33+
val context: MainActivity = this
2834
override fun onCreate(savedInstanceState: Bundle?) {
2935
super.onCreate(savedInstanceState)
3036
@Suppress("UNUSED_VARIABLE")
@@ -45,13 +51,21 @@ class MainActivity : AppCompatActivity() {
4551
val navHostFragment = supportFragmentManager.findFragmentById(R.id.nav_host_fragment_content_main) as NavHostFragment
4652
navHostFragment.navController
4753
}
54+
val shortcut = ShortcutInfoCompat.Builder(context, "website")
55+
.setShortLabel(getString(R.string.website))
56+
.setLongLabel(getString(R.string.website_tooltip))
57+
.setIcon(IconCompat.createFromIcon(Icon.createWithResource(context, R.mipmap.ic_shortcut_website)))
58+
.setIntent(Intent(Intent.ACTION_VIEW, Uri.parse("https://sites.google.com/view/englishwithlidia")))
59+
.build()
60+
ShortcutManagerCompat.pushDynamicShortcut(context, shortcut)
4861
appBarConfiguration = AppBarConfiguration(setOf(R.id.nav_home, R.id.nav_settings, R.id.nav_about, R.id.nav_lessons, R.id.nav_lesson1, R.id.nav_lesson2), drawerLayout)
4962
setupActionBarWithNavController(navController, appBarConfiguration)
5063
navView.setupWithNavController(navController)
5164
navController.setGraph(R.navigation.mobile_navigation)
65+
drawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_LOCKED_CLOSED, GravityCompat.END)
5266
}
5367
override fun onCreateOptionsMenu(menu: Menu): Boolean {
54-
menuInflater.inflate(R.menu.more_menu, menu)
68+
menuInflater.inflate(R.menu.menu_main, menu)
5569
return true
5670
}
5771
override fun onOptionsItemSelected(item: MenuItem) = when (item.itemId) {
@@ -70,6 +84,11 @@ class MainActivity : AppCompatActivity() {
7084
startActivity(newIntent)
7185
true
7286
}
87+
R.id.license -> {
88+
val newIntent = Intent(Intent.ACTION_VIEW, Uri.parse("https://www.gnu.org/licenses/gpl-3.0"))
89+
startActivity(newIntent)
90+
true
91+
}
7392
R.id.permissions -> {
7493
val intent = Intent(this, PermissionsActivity::class.java)
7594
startActivity(intent)
@@ -92,9 +111,9 @@ class MainActivity : AppCompatActivity() {
92111
val alertDialog: AlertDialog.Builder = AlertDialog.Builder(this)
93112
alertDialog.setTitle(R.string.more_apps)
94113
val view: View = layoutInflater.inflate(R.layout.fragment_dialog, null)
95-
val musicSleepTimerString: MaterialTextView = view.findViewById(R.id.musicSleepTimerString)
96114
alertDialog.setView(view)
97115
alertDialog.create()
116+
val musicSleepTimerString: MaterialTextView = view.findViewById(R.id.musicSleepTimerString)
98117
view.findViewById<View?>(R.id.musicSleepTimer)?.setOnClickListener {
99118
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.d4rk.musicsleeptimer.plus"))
100119
startActivity(intent)
@@ -103,6 +122,24 @@ class MainActivity : AppCompatActivity() {
103122
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.d4rk.musicsleeptimer.plus"))
104123
startActivity(intent)
105124
}
125+
val qrCodeScannerString: MaterialTextView = view.findViewById(R.id.qrCodeScannerString)
126+
view.findViewById<View?>(R.id.qrCodeScanner)?.setOnClickListener {
127+
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.d4rk.qrcodescanner.plus"))
128+
startActivity(intent)
129+
}
130+
qrCodeScannerString.setOnClickListener {
131+
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.d4rk.qrcodescanner.plus"))
132+
startActivity(intent)
133+
}
134+
val androidStudioTutorialsString: MaterialTextView = view.findViewById(R.id.androidStudioTutorialsString)
135+
view.findViewById<View?>(R.id.androidStudioTutorials)?.setOnClickListener {
136+
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.d4rk.androidtutorials"))
137+
startActivity(intent)
138+
}
139+
androidStudioTutorialsString.setOnClickListener {
140+
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("https://play.google.com/store/apps/details?id=com.d4rk.androidtutorials"))
141+
startActivity(intent)
142+
}
106143
alertDialog.setNegativeButton(R.string.cool, null)
107144
alertDialog.show()
108145
true

0 commit comments

Comments
 (0)