Skip to content
Snippets Groups Projects
Commit f918c8d4 authored by Saravana1996's avatar Saravana1996
Browse files

Uploaded full project

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 460 additions and 0 deletions
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
<entry name="!?*.aj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>
\ No newline at end of file
<component name="CopyrightManager">
<settings default="" />
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="AndroidLintGradleCompatible" enabled="false" level="ERROR" enabled_by_default="false" />
</profile>
</component>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="PROJECT_PROFILE" value="Project Default" />
<option name="USE_PROJECT_PROFILE" value="true" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="NullableNotNullManager">
<option name="myDefaultNullable" value="android.support.annotation.Nullable" />
<option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
<option name="myNullables">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
</list>
</value>
</option>
<option name="myNotNulls">
<value>
<list size="4">
<item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
<item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
<item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
<item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
</list>
</value>
</option>
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/AmritaComrades.iml" filepath="$PROJECT_DIR$/AmritaComrades.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
/build
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.prabhu.amritacomrades"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.google.firebase:firebase-core:10.2.1'
compile 'com.google.firebase:firebase-database:10.2.1'
compile 'com.google.firebase:firebase-crash:10.2.1'
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.google.firebase:firebase-ads:10.2.1'
compile 'com.google.firebase:firebase-messaging:10.2.1'
compile 'com.google.firebase:firebase-storage:10.2.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:25.1.1'
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
compile 'com.firebaseui:firebase-ui-database:0.4.0'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.android.support:support-v4:25.1.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
\ No newline at end of file
{
"project_info": {
"project_number": "444001640560",
"firebase_url": "https://amritacomrades.firebaseio.com",
"project_id": "amritacomrades",
"storage_bucket": "amritacomrades.appspot.com"
},
"client": [
{
"client_info": {
"mobilesdk_app_id": "1:444001640560:android:91c9ba9a3524aa4a",
"android_client_info": {
"package_name": "com.example.prabhu.amritacomrades"
}
},
"oauth_client": [
{
"client_id": "444001640560-6p24fcetmbhic7qbtbmmgjg8i38rcdvm.apps.googleusercontent.com",
"client_type": 1,
"android_info": {
"package_name": "com.example.prabhu.amritacomrades",
"certificate_hash": "e380ae998891c347559ffdd18dcee35bc1e98a55"
}
},
{
"client_id": "444001640560-1s6tg6ba0t5i6iccda4bdqtsfqdu1n1r.apps.googleusercontent.com",
"client_type": 3
}
],
"api_key": [
{
"current_key": "AIzaSyDcXsAiQLArXFp_Al4AxMeSYdub_ktjVC8"
}
],
"services": {
"analytics_service": {
"status": 1
},
"appinvite_service": {
"status": 2,
"other_platform_oauth_client": [
{
"client_id": "444001640560-1s6tg6ba0t5i6iccda4bdqtsfqdu1n1r.apps.googleusercontent.com",
"client_type": 3
}
]
},
"ads_service": {
"status": 2
}
}
}
],
"configuration_version": "1"
}
\ No newline at end of file
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Android\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
package com.example.prabhu.amritacomrades;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();
assertEquals("com.example.prabhu.amritacomrades", appContext.getPackageName());
}
}
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.prabhu.amritacomrades">
<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.INTERNET" />
<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=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Learn.Aboutus" />
<activity android:name=".Faculty" />
<activity android:name=".Register" />
<activity
android:name=".Homepage"
android:label="@string/title_activity_homepage"
android:theme="@style/AppTheme" />
<activity android:name=".createproject" />
<activity
android:name=".selectDep"
android:label="@string/title_activity_select_dep"
android:theme="@style/AppTheme" />
<activity android:name=".Profile" />
<activity android:name=".Learn.learn" />
<activity android:name=".ProjectDetails" />
<activity android:name=".New_project" />
<activity android:name=".Inbox" />
<activity android:name=".facultyprojects"></activity>
</application>
</manifest>
\ No newline at end of file
app/src/main/ic_launcher-web.png

35.8 KiB

package com.example.prabhu.amritacomrades;
/**
* Created by PRABHU on 24-04-2017.
*/
public class FCMHelper {
}
package com.example.prabhu.amritacomrades;
import android.annotation.SuppressLint;
import android.graphics.Bitmap;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class Faculty extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_faculty);
Toolbar toolbar=(Toolbar)findViewById(R.id.toolbarfaculty);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setDisplayShowHomeEnabled(true);
WebView wv=(WebView)findViewById(R.id.wview);
WebSettings webSettings = wv.getSettings();
webSettings.setJavaScriptEnabled(true);
wv.setWebViewClient(new WebViewClient());
Bundle b=getIntent().getExtras();
String dept=b.getString("dept");
if(dept.equalsIgnoreCase("Computer Science Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=101&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Electrical and Electronics Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=103&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Electronics and Communication Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=102&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Mechanical Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=104&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Aerospace Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=137&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Civil Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=138&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Chemical Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=147&field_center_name_tid=All");
}
if(dept.equalsIgnoreCase("Electronics and Instrumentation Engineering")){
wv.loadUrl("https://www.amrita.edu/faculty?field_faculty_department_tid=38&field_faculty_campus_tid=53&field_faculty_designation_tid=All&field_faculty_department_main_tid=101&field_center_name_tid=All");
}
// wv.setWebViewClient(new WebViewClient() {
// @SuppressLint("NewApi")
// @Override
// public void onPageFinished(WebView view, String url) {
// super.onPageFinished(view, url);
// }
// @Override
// public void onPageStarted(WebView view, String url, Bitmap favicon) {
// super.onPageStarted(view, url, favicon);
// }
// });
}
@Override
public boolean onSupportNavigateUp() {
onBackPressed();
return true;
}
}
package com.example.prabhu.amritacomrades.Fragments;
import android.support.v4.app.Fragment;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.Query;
/**
* A simple {@link Fragment} subclass.
*/
public class All_Projects extends PostListFragment {
public All_Projects() {
// Required empty public constructor
}
@Override
public Query getQuery(DatabaseReference databaseReference) {
// All my posts
return databaseReference.child("All-Projects")
.limitToFirst(30);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment