Skip to content

Commit d83aec5

Browse files
committed
initial commit
1 parent e299336 commit d83aec5

File tree

230 files changed

+12296
-0
lines changed

Some content is hidden

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

230 files changed

+12296
-0
lines changed

.idea/.gitignore

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

OWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Project source and idea from @whyorean

app/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
4+
android {
5+
compileSdkVersion 29
6+
buildToolsVersion "29.0.3"
7+
defaultConfig {
8+
applicationId "com.aurora.phone"
9+
minSdkVersion 23
10+
targetSdkVersion 29
11+
versionCode 1
12+
versionName "1.0"
13+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
14+
}
15+
buildTypes {
16+
release {
17+
minifyEnabled false
18+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
19+
}
20+
}
21+
compileOptions {
22+
targetCompatibility 1.8
23+
sourceCompatibility 1.8
24+
}
25+
}
26+
27+
dependencies {
28+
implementation fileTree(dir: 'libs', include: ['*.jar'])
29+
30+
implementation 'androidx.appcompat:appcompat:1.1.0'
31+
implementation 'androidx.appcompat:appcompat-resources:1.1.0'
32+
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
33+
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
34+
implementation 'com.google.android.material:material:1.1.0'
35+
36+
//UI Components
37+
implementation "com.github.skydoves:powermenu:2.1.2"
38+
implementation 'com.google.android:flexbox:2.0.1'
39+
40+
//RX-Java2
41+
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
42+
implementation 'io.reactivex.rxjava2:rxjava:2.2.16'
43+
implementation 'com.jakewharton.rxrelay2:rxrelay:2.1.1'
44+
45+
//ButterKnife
46+
implementation 'com.jakewharton:butterknife:10.2.1'
47+
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
48+
49+
//Glide
50+
implementation 'com.github.bumptech.glide:glide:4.11.0'
51+
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
52+
53+
//Lambok
54+
compileOnly 'org.projectlombok:lombok:1.18.12'
55+
annotationProcessor 'org.projectlombok:lombok:1.18.12'
56+
57+
//JetPacks
58+
implementation "androidx.navigation:navigation-fragment:2.3.0"
59+
implementation "androidx.navigation:navigation-ui:2.3.0"
60+
implementation "androidx.lifecycle:lifecycle-viewmodel:2.2.0"
61+
implementation "android.arch.lifecycle:extensions:1.1.1"
62+
implementation 'androidx.room:room-runtime:2.2.5'
63+
annotationProcessor 'androidx.room:room-compiler:2.2.5'
64+
65+
66+
//Util
67+
implementation 'org.apache.commons:commons-text:1.8'
68+
implementation 'com.google.code.gson:gson:2.8.6'
69+
implementation 'com.googlecode.libphonenumber:libphonenumber:8.11.5'
70+
implementation 'com.github.florent37:runtime-permission-rx:1.1.1'
71+
implementation 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:3.1.0'
72+
implementation 'androidx.work:work-runtime:2.4.0'
73+
74+
75+
//Debug Util
76+
debugImplementation 'com.amitshekhar.android:debug-db:1.0.6'
77+
implementation "androidx.core:core-ktx:+"
78+
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.0.0"
79+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
80+
}
81+
repositories {
82+
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
83+
mavenCentral()
84+
}

app/proguard-rules.pro

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
15+
# Uncomment this to preserve the line phoneNumber information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line phoneNumber information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.aurora.phone;
2+
3+
import android.content.Context;
4+
5+
import androidx.test.ext.junit.runners.AndroidJUnit4;
6+
import androidx.test.platform.app.InstrumentationRegistry;
7+
8+
import org.junit.Test;
9+
import org.junit.runner.RunWith;
10+
11+
import static org.junit.Assert.*;
12+
13+
/**
14+
* Instrumented test, which will execute on an Android device.
15+
*
16+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
17+
*/
18+
@RunWith(AndroidJUnit4.class)
19+
public class ExampleInstrumentedTest {
20+
@Test
21+
public void useAppContext() {
22+
// Context of the app under test.
23+
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24+
25+
assertEquals("com.aurora.phone", appContext.getPackageName());
26+
}
27+
}

app/src/main/AndroidManifest.xml

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
4+
package="com.aurora.phone">
5+
6+
<uses-permission android:name="android.permission.MANAGE_OWN_CALLS" />
7+
<uses-permission android:name="android.permission.CALL_PHONE" />
8+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
9+
<uses-permission android:name="android.permission.SEND_SMS" />
10+
<uses-permission android:name="android.permission.READ_CONTACTS" />
11+
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
12+
<uses-permission android:name="android.permission.READ_CALL_LOG" />
13+
<uses-permission android:name="android.permission.WRITE_CALL_LOG" />
14+
<uses-permission android:name="android.permission.VIBRATE" />
15+
<uses-permission android:name="android.permission.WAKE_LOCK" />
16+
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
17+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
18+
<uses-permission android:name="android.permission.RECORD_AUDIO" />
19+
20+
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE"
21+
tools:ignore="ProtectedPermissions" />
22+
23+
<application
24+
android:name=".AuroraApplication"
25+
android:allowBackup="true"
26+
android:icon="@mipmap/ic_launcher"
27+
android:label="@string/app_name"
28+
android:roundIcon="@mipmap/ic_launcher_round"
29+
android:supportsRtl="true"
30+
android:theme="@style/AppTheme"
31+
tools:ignore="AllowBackup">
32+
<activity
33+
android:name=".MainActivity"
34+
android:screenOrientation="portrait">
35+
<intent-filter>
36+
<action android:name="android.intent.action.MAIN" />
37+
38+
<category android:name="android.intent.category.DEFAULT" />
39+
<category android:name="android.intent.category.LAUNCHER" />
40+
<category android:name="android.intent.category.BROWSABLE" />
41+
</intent-filter>
42+
43+
<!-- For receiving intents -->
44+
<intent-filter>
45+
<action android:name="android.intent.action.SEND" />
46+
<category android:name="android.intent.category.DEFAULT" />
47+
<data android:mimeType="image/*" />
48+
</intent-filter>
49+
<intent-filter>
50+
<action android:name="android.intent.action.SEND" />
51+
<category android:name="android.intent.category.DEFAULT" />
52+
<data android:mimeType="text/plain" />
53+
</intent-filter>
54+
<intent-filter>
55+
<action android:name="android.intent.action.SEND_MULTIPLE" />
56+
<category android:name="android.intent.category.DEFAULT" />
57+
<data android:mimeType="image/*" />
58+
</intent-filter>
59+
60+
<!-- From Google's Dialer App -->
61+
<intent-filter>
62+
<action android:name="android.intent.action.DIAL" />
63+
64+
<category android:name="android.intent.category.DEFAULT" />
65+
<category android:name="android.intent.category.BROWSABLE" />
66+
67+
<data android:mimeType="vnd.android.cursorsor.item/phone" />
68+
<data android:mimeType="vnd.android.cursorsor.item/person" />
69+
</intent-filter>
70+
<intent-filter>
71+
<action android:name="android.intent.action.DIAL" />
72+
73+
<category android:name="android.intent.category.DEFAULT" />
74+
<category android:name="android.intent.category.BROWSABLE" />
75+
76+
<data android:scheme="voicemail" />
77+
</intent-filter>
78+
<intent-filter>
79+
<action android:name="android.intent.action.DIAL" />
80+
81+
<category android:name="android.intent.category.DEFAULT" />
82+
</intent-filter>
83+
<intent-filter>
84+
<action android:name="android.intent.action.VIEW" />
85+
<action android:name="android.intent.action.DIAL" />
86+
87+
<category android:name="android.intent.category.DEFAULT" />
88+
<category android:name="android.intent.category.BROWSABLE" />
89+
90+
<data android:scheme="tel" />
91+
</intent-filter>
92+
<intent-filter>
93+
<action android:name="android.intent.action.CALL_BUTTON" />
94+
95+
<category android:name="android.intent.category.DEFAULT" />
96+
<category android:name="android.intent.category.BROWSABLE" />
97+
</intent-filter>
98+
</activity>
99+
<activity
100+
android:name=".OnGoingCallActivity"
101+
android:launchMode="singleInstance"
102+
android:screenOrientation="portrait">
103+
<!-- <intent-filter>
104+
<action android:name="android.intent.action.MAIN" />
105+
106+
<category android:name="android.intent.category.DEFAULT" />
107+
<category android:name="android.intent.category.LAUNCHER" />
108+
<category android:name="android.intent.category.BROWSABLE" />
109+
</intent-filter>-->
110+
</activity>
111+
<activity android:name=".ContactActivity" />
112+
<activity android:name=".SearchActivity" />
113+
<activity android:name=".CallLogActivity" />
114+
115+
<service
116+
android:name=".service.CallService"
117+
android:permission="android.permission.BIND_INCALL_SERVICE">
118+
<meta-data
119+
android:name="android.telecom.IN_CALL_SERVICE_UI"
120+
android:value="true" />
121+
<meta-data
122+
android:name="android.telecom.IN_CALL_SERVICE_RINGING"
123+
android:value="true" />
124+
125+
<intent-filter>
126+
<action android:name="android.telecom.InCallService" />
127+
</intent-filter>
128+
</service>
129+
</application>
130+
</manifest>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[
2+
{
3+
"displayName": "Amar"
4+
},
5+
{
6+
"displayName": "Akbar"
7+
},
8+
{
9+
"displayName": "Anthony"
10+
},
11+
{
12+
"displayName": "Bhole"
13+
},
14+
{
15+
"displayName": "Bambam"
16+
}
17+
]

0 commit comments

Comments
 (0)