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

Added libraries section in drawer. #26

Merged
merged 3 commits into from
Mar 8, 2022
Merged
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
8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.vs.meetly">

<uses-permission android:name="android.permission.READ_PHONE_STATE" tools:node="remove" />
<uses-permission
android:name="android.permission.READ_PHONE_STATE"
tools:node="remove" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
Expand All @@ -15,6 +17,9 @@
android:roundIcon="@mipmap/ic_launcher_meetly_round"
android:supportsRtl="true"
android:theme="@style/Theme.Meetly">
<activity
android:name=".LibraryActivity"
android:exported="false" />
<activity
android:name=".MeetingViewDetail"
android:screenOrientation="portrait"
Expand Down Expand Up @@ -62,7 +67,6 @@
android:name=".MainActivity"
android:exported="true"
android:screenOrientation="portrait" />

<activity
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="keyboard|orientation"
Expand Down
33 changes: 33 additions & 0 deletions app/src/main/java/com/vs/meetly/LibraryActivity.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.vs.meetly

import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_library.*

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

retrofitBtn.setOnClickListener {
openLink("https://github.com/square/retrofit")
}
jitsiBtn.setOnClickListener {
openLink("https://github.com/jitsi/jitsi-meet")
}
glideBtn.setOnClickListener {
openLink("https://github.com/bumptech/glide")
}
lottieBtn.setOnClickListener {
openLink("https://github.com/airbnb/lottie-android")
}
}

private fun openLink(link : String){
val openURL = Intent(Intent.ACTION_VIEW)
openURL.data = Uri.parse(link)
startActivity(openURL)
}
}
6 changes: 6 additions & 0 deletions app/src/main/java/com/vs/meetly/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,12 @@ class MainActivity : AppCompatActivity(), IMeetingRVAdapter {
true

}
R.id.usedLib -> {
mainDrawer.closeDrawers()
val intent = Intent(this,LibraryActivity::class.java)
startActivity(intent)
true
}
R.id.logout -> {
mainDrawer.closeDrawers()
MaterialAlertDialogBuilder(
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_baseline_source_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M20,6h-8l-2,-2H4C2.9,4 2.01,4.9 2.01,6L2,18c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2V8C22,6.9 21.1,6 20,6zM14,16H6v-2h8V16zM18,12H6v-2h12V12z"/>
</vector>
8 changes: 4 additions & 4 deletions app/src/main/res/drawable/ic_github.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="48dp"
android:height="48dp"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M10.9,2.1c-4.6,0.5 -8.3,4.2 -8.8,8.7c-0.5,4.7 2.2,8.9 6.3,10.5C8.7,21.4 9,21.2 9,20.8v-1.6c0,0 -0.4,0.1 -0.9,0.1c-1.4,0 -2,-1.2 -2.1,-1.9c-0.1,-0.4 -0.3,-0.7 -0.6,-1C5.1,16.3 5,16.3 5,16.2C5,16 5.3,16 5.4,16c0.6,0 1.1,0.7 1.3,1c0.5,0.8 1.1,1 1.4,1c0.4,0 0.7,-0.1 0.9,-0.2c0.1,-0.7 0.4,-1.4 1,-1.8c-2.3,-0.5 -4,-1.8 -4,-4c0,-1.1 0.5,-2.2 1.2,-3C7.1,8.8 7,8.3 7,7.6C7,7.2 7,6.6 7.3,6c0,0 1.4,0 2.8,1.3C10.6,7.1 11.3,7 12,7s1.4,0.1 2,0.3C15.3,6 16.8,6 16.8,6C17,6.6 17,7.2 17,7.6c0,0.8 -0.1,1.2 -0.2,1.4c0.7,0.8 1.2,1.8 1.2,3c0,2.2 -1.7,3.5 -4,4c0.6,0.5 1,1.4 1,2.3v2.6c0,0.3 0.3,0.6 0.7,0.5c3.7,-1.5 6.3,-5.1 6.3,-9.3C22,6.1 16.9,1.4 10.9,2.1z"
android:fillColor="#ffffff"/>
android:fillColor="#FF000000"
android:pathData="M12,2.2467A10.0004,10.0004 0,0 0,8.8375 21.7342c0.5,0.0875 0.6875,-0.2125 0.6875,-0.475 0,-0.2375 -0.0125,-1.025 -0.0125,-1.8625C7,19.8592 6.35,18.7842 6.15,18.2217A3.636,3.636 0,0 0,5.125 16.8092c-0.35,-0.1875 -0.85,-0.65 -0.0125,-0.6625A2.0012,2.0012 0,0 1,6.65 17.1717a2.1374,2.1374 0,0 0,2.9125 0.825A2.1038,2.1038 0,0 1,10.2 16.6592c-2.225,-0.25 -4.55,-1.1125 -4.55,-4.9375a3.8919,3.8919 0,0 1,1.025 -2.6875,3.5937 3.5937,0 0,1 0.1,-2.65s0.8375,-0.2625 2.75,1.025a9.4275,9.4275 0,0 1,5 0c1.9125,-1.3 2.75,-1.025 2.75,-1.025a3.5932,3.5932 0,0 1,0.1 2.65,3.869 3.869,0 0,1 1.025,2.6875c0,3.8375 -2.3375,4.6875 -4.5625,4.9375a2.3681,2.3681 0,0 1,0.675 1.85c0,1.3375 -0.0125,2.4125 -0.0125,2.75 0,0.2625 0.1875,0.575 0.6875,0.475A10.0053,10.0053 0,0 0,12 2.2467Z"/>
</vector>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_github_icon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12,2.2467A10.0004,10.0004 0,0 0,8.8375 21.7342c0.5,0.0875 0.6875,-0.2125 0.6875,-0.475 0,-0.2375 -0.0125,-1.025 -0.0125,-1.8625C7,19.8592 6.35,18.7842 6.15,18.2217A3.636,3.636 0,0 0,5.125 16.8092c-0.35,-0.1875 -0.85,-0.65 -0.0125,-0.6625A2.0012,2.0012 0,0 1,6.65 17.1717a2.1374,2.1374 0,0 0,2.9125 0.825A2.1038,2.1038 0,0 1,10.2 16.6592c-2.225,-0.25 -4.55,-1.1125 -4.55,-4.9375a3.8919,3.8919 0,0 1,1.025 -2.6875,3.5937 3.5937,0 0,1 0.1,-2.65s0.8375,-0.2625 2.75,1.025a9.4275,9.4275 0,0 1,5 0c1.9125,-1.3 2.75,-1.025 2.75,-1.025a3.5932,3.5932 0,0 1,0.1 2.65,3.869 3.869,0 0,1 1.025,2.6875c0,3.8375 -2.3375,4.6875 -4.5625,4.9375a2.3681,2.3681 0,0 1,0.675 1.85c0,1.3375 -0.0125,2.4125 -0.0125,2.75 0,0.2625 0.1875,0.575 0.6875,0.475A10.0053,10.0053 0,0 0,12 2.2467Z"/>
</vector>
Loading