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

Commit f87afcc6 authored by Amit Kumar's avatar Amit Kumar 💻
Browse files

Add Home Screen and About Screen

parent 1e37b4f2
Loading
Loading
Loading
Loading
Loading

AUTHORS

0 → 100755
+1 −0
Original line number Diff line number Diff line
© ECORP SAS 2020 - Author: Amit Kumar
 No newline at end of file

LICENSE

0 → 100644
+674 −0

File added.

Preview size limit exceeded, changes collapsed.

+14 −4
Original line number Diff line number Diff line
@@ -3,6 +3,11 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'

// Manifest version information!
def versionMajor = 0
def versionMinor = 0
def versionPatch = 1

android {
    compileSdkVersion 29

@@ -10,15 +15,15 @@ android {
        applicationId "foundation.e.pwaplayer"
        minSdkVersion 24
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        versionCode versionMajor * 10000 + versionMinor * 1000 + versionPatch * 100
        versionName "${versionMajor}.${versionMinor}.${versionPatch}"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
@@ -28,7 +33,12 @@ dependencies {
    implementation fileTree(dir: "libs", include: ["*.jar"])
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation 'androidx.core:core-ktx:1.3.0'
    implementation 'androidx.appcompat:appcompat:1.1.0'

    def androidx_version = "1.1.0"
    implementation "androidx.appcompat:appcompat:$androidx_version"
    implementation "androidx.recyclerview:recyclerview:$androidx_version"
    implementation "androidx.coordinatorlayout:coordinatorlayout:$androidx_version"
    implementation "androidx.preference:preference:$androidx_version"

    def room_version = "2.2.5"
    implementation "androidx.room:room-runtime:$room_version"
+15 −5
Original line number Diff line number Diff line
@@ -3,32 +3,42 @@
    package="foundation.e.pwaplayer">

    <permission android:name="foundation.e.pwaplayer.provider.READ_WRITE" />

    <!-- Permissions for PWA -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />


    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity
            android:name=".ui.about.AboutActivity"
            android:parentActivityName=".ui.home.HomeActivity" />

        <provider
            android:name=".provider.PwaProvider"
            android:authorities="foundation.e.pwaplayer.provider"
            android:exported="true"
            android:permission="foundation.e.pwaplayer.provider.READ_WRITE" />

        <activity android:name=".ui.home.HomeActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity
            android:name=".player.PwaActivity"
            android:name=".ui.player.PwaActivity"
            android:exported="true">
            <intent-filter>
                <action android:name="foundation.e.blisslauncher.VIEW_PWA" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
+0 −13
Original line number Diff line number Diff line
package foundation.e.pwaplayer

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        

    }
}
 No newline at end of file
Loading