Skip to content

Commit 2dffd1c

Browse files
committed
Añadir proyecto ProxyChat en Java
0 parents  commit 2dffd1c

File tree

155 files changed

+6857
-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.

155 files changed

+6857
-0
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild

.idea/compiler.xml

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

.idea/copyright/profiles_settings.xml

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

.idea/gradle.xml

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

.idea/misc.xml

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

.idea/modules.xml

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

.idea/runConfigurations.xml

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

.idea/vcs.xml

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

app/.gitignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Built application files
2+
/*/build/
3+
4+
# Crashlytics configuations
5+
com_crashlytics_export_strings.xml
6+
7+
# Local configuration file (sdk path, etc)
8+
local.properties
9+
10+
# Gradle generated files
11+
.gradle/
12+
13+
# Signing files
14+
.signing/
15+
16+
# User-specific configurations
17+
.idea/libraries/
18+
.idea/workspace.xml
19+
.idea/tasks.xml
20+
.idea/.name
21+
.idea/compiler.xml
22+
.idea/copyright/profiles_settings.xml
23+
.idea/encodings.xml
24+
.idea/misc.xml
25+
.idea/modules.xml
26+
.idea/scopes/scope_settings.xml
27+
.idea/vcs.xml
28+
*.iml
29+
30+
# OS-specific files
31+
.DS_Store
32+
.DS_Store?
33+
._*
34+
.Spotlight-V100
35+
.Trashes
36+
ehthumbs.db
37+
Thumbs.db

app/build.gradle

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.2"
6+
defaultConfig {
7+
applicationId "com.example.user.proxychat"
8+
minSdkVersion 16
9+
targetSdkVersion 25
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile fileTree(include: ['*.jar'], dir: 'libs')
24+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25+
exclude group: 'com.android.support', module: 'support-annotations'
26+
})
27+
28+
compile 'com.android.support:appcompat-v7:25.3.1'
29+
compile 'com.android.support:design:25.3.1'
30+
compile 'com.google.android.gms:play-services-maps:10.2.1'
31+
compile 'com.google.android.gms:play-services-location:10.2.1'
32+
compile 'com.android.support.constraint:constraint-layout:1.0.2'
33+
compile 'com.android.support:cardview-v7:25.3.1'
34+
compile 'com.google.firebase:firebase-auth:10.2.1'
35+
compile 'com.google.firebase:firebase-messaging:10.2.1'
36+
compile 'com.google.firebase:firebase-database:10.2.1'
37+
compile 'com.google.firebase:firebase-storage:10.2.1'
38+
compile 'com.firebase:geofire-android:2.1.1'
39+
compile 'io.nlopez.smartlocation:library:3.3.1'
40+
compile 'de.hdodenhof:circleimageview:2.1.0'
41+
compile 'com.android.support:support-v4:25.3.1'
42+
compile 'com.android.support:recyclerview-v7:25.3.1'
43+
compile 'com.github.bumptech.glide:glide:4.0.0-RC0'
44+
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC0'
45+
testCompile 'junit:junit:4.12'
46+
}
47+
apply plugin: 'com.google.gms.google-services'

app/google-services.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"project_info": {
3+
"project_number": "259240028469",
4+
"firebase_url": "https://proxychat-389d2.firebaseio.com",
5+
"project_id": "proxychat-389d2",
6+
"storage_bucket": "proxychat-389d2.appspot.com"
7+
},
8+
"client": [
9+
{
10+
"client_info": {
11+
"mobilesdk_app_id": "1:259240028469:android:3d58e6f5ce7df493",
12+
"android_client_info": {
13+
"package_name": "com.example.user.proxychat"
14+
}
15+
},
16+
"oauth_client": [
17+
{
18+
"client_id": "259240028469-2ce1fckcvd1cn439ogfh4l1i46tlltko.apps.googleusercontent.com",
19+
"client_type": 3
20+
}
21+
],
22+
"api_key": [
23+
{
24+
"current_key": "AIzaSyBxrck3jfI0wmHrLMeeJYdVYiDVJOqmx_E"
25+
}
26+
],
27+
"services": {
28+
"analytics_service": {
29+
"status": 1
30+
},
31+
"appinvite_service": {
32+
"status": 1,
33+
"other_platform_oauth_client": []
34+
},
35+
"ads_service": {
36+
"status": 2
37+
}
38+
}
39+
}
40+
],
41+
"configuration_version": "1"
42+
}

app/proguard-rules.pro

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in C:\Users\User\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package com.example.user.proxychat;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumentation test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest {
19+
@Test
20+
public void useAppContext() throws Exception {
21+
// Context of the app under test.
22+
Context appContext = InstrumentationRegistry.getTargetContext();
23+
24+
assertEquals("com.example.user.proxychat", appContext.getPackageName());
25+
}
26+
}

app/src/main/AndroidManifest.xml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.example.user.proxychat">
4+
5+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
6+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
7+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
8+
<uses-permission android:name="android.permission.INTERNET" />
9+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
10+
11+
<application
12+
android:name=".Aplicacion"
13+
android:allowBackup="true"
14+
android:icon="@drawable/logo"
15+
android:label="Proxychat"
16+
android:roundIcon="@mipmap/ic_launcher_round"
17+
android:supportsRtl="true"
18+
android:theme="@style/AppTheme">
19+
<activity
20+
android:name=".activities.LoginActivity"
21+
android:label="Proxychat"
22+
android:screenOrientation="portrait">
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN" />
25+
26+
<category android:name="android.intent.category.LAUNCHER" />
27+
</intent-filter>
28+
</activity>
29+
<activity
30+
android:name=".activities.MainActivity"
31+
android:label="@string/app_name"
32+
android:theme="@style/AppTheme.NoActionBar"
33+
android:screenOrientation="portrait"/>
34+
35+
<service
36+
android:name=".servicios.FirebaseId"
37+
android:enabled="true"
38+
android:exported="true">
39+
<intent-filter>
40+
<action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
41+
</intent-filter>
42+
</service>
43+
<service
44+
android:name=".servicios.FirebaseServicioMensajes"
45+
android:enabled="true"
46+
android:exported="true">
47+
<intent-filter>
48+
<action android:name="com.google.firebase.MESSAGING_EVENT" />
49+
</intent-filter>
50+
</service>
51+
52+
<meta-data
53+
android:name="com.google.android.maps.v2.API_KEY"
54+
android:value="AIzaSyDgQo7bEXV5Sv2ETQqOUpNudCDwkTRWONQ" />
55+
56+
<activity android:name=".activities.RegistroActivity"
57+
android:screenOrientation="portrait"/>
58+
<activity android:name=".activities.PerfilActivity"
59+
android:screenOrientation="portrait"/>
60+
<activity android:name=".activities.ChatActivity"
61+
android:screenOrientation="portrait"/>
62+
<activity android:name=".activities.ContactosActivity"
63+
android:screenOrientation="portrait"/>
64+
<activity android:name=".activities.InfoUsuarioActivity"
65+
android:screenOrientation="portrait"/>
66+
<activity
67+
android:name=".activities.MeetingPointActivity"
68+
android:label="@string/title_activity_meeting_point"
69+
android:theme="@style/AppTheme.NoActionBar"
70+
android:screenOrientation="portrait"></activity>
71+
</application>
72+
73+
</manifest>

0 commit comments

Comments
 (0)