This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finishing some feature and fix some bug
- Loading branch information
1 parent
ad9b302
commit 70d9957
Showing
24 changed files
with
1,063 additions
and
322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "id.blossom", | ||
"variantName": "release", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 1, | ||
"versionName": "1.0", | ||
"outputFile": "app-release.apk" | ||
} | ||
], | ||
"elementType": "File" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
app/src/main/java/id/blossom/ui/activity/about/AboutActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
package id.blossom.ui.activity.about | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
import android.net.Uri | ||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import androidx.browser.customtabs.CustomTabsIntent | ||
import id.blossom.BuildConfig | ||
import id.blossom.databinding.ActivityAboutBinding | ||
import id.blossom.utils.Utils | ||
|
||
class AboutActivity : AppCompatActivity() { | ||
|
||
lateinit var binding: ActivityAboutBinding | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding = ActivityAboutBinding.inflate(layoutInflater) | ||
setContentView(binding.root) | ||
Utils().setFullScreenFlag(window) | ||
val customBrowser = CustomTabsIntent.Builder().build() | ||
|
||
binding.tvVersion.text = "Version ${BuildConfig.VERSION_NAME}" | ||
binding.llGithub.setOnClickListener { | ||
customBrowser.launchUrl(this, Uri.parse("https://github.com/evnx32")) | ||
} | ||
|
||
binding.llApi.setOnClickListener { | ||
customBrowser.launchUrl( | ||
this, | ||
Uri.parse("https://github.com/LuckyIndraEfendi/AnimeIndo-Rest-API") | ||
) | ||
} | ||
|
||
binding.llLicense.setOnClickListener { | ||
customBrowser.launchUrl( | ||
this, | ||
Uri.parse("https://www.apache.org/licenses/LICENSE-2.0")) | ||
} | ||
|
||
binding.llInstagram.setOnClickListener { | ||
customBrowser.launchUrl( | ||
this, | ||
Uri.parse("https://www.instagram.com/dword_ptr/") | ||
) | ||
} | ||
|
||
binding.llFacebook.setOnClickListener { | ||
customBrowser.launchUrl( | ||
this, | ||
Uri.parse("https://www.facebook.com/KanMaruKun") | ||
) | ||
} | ||
|
||
binding.llEmail.setOnClickListener { | ||
val intent = Intent(Intent.ACTION_SENDTO) | ||
intent.data = Uri.parse("mailto:evnx32@gmail.com") | ||
startActivity(intent) | ||
} | ||
|
||
} | ||
|
||
companion object { | ||
fun start(context: Context) { | ||
val intent = Intent(context, AboutActivity::class.java) | ||
context.startActivity(intent) | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
app/src/main/java/id/blossom/ui/activity/faq/FaqActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package id.blossom.ui.activity.faq | ||
|
||
import android.content.Context | ||
import android.content.Intent | ||
import androidx.appcompat.app.AppCompatActivity | ||
import android.os.Bundle | ||
import id.blossom.databinding.ActivityFaqBinding | ||
import id.blossom.utils.Utils | ||
|
||
class FaqActivity : AppCompatActivity() { | ||
|
||
lateinit var binding: ActivityFaqBinding | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
binding = ActivityFaqBinding.inflate(layoutInflater) | ||
setContentView(binding.root) | ||
Utils().setFullScreenFlag(window) | ||
|
||
} | ||
|
||
|
||
companion object { | ||
fun start(context: Context) { | ||
val intent = Intent(context, FaqActivity::class.java) | ||
context.startActivity(intent) | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.