Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d283a73
Event optimised
hardik124 Nov 20, 2016
eb44133
Event optimised
hardik124 Nov 21, 2016
3bc8a81
Update AndroidManifest.xml
hardik124 Nov 21, 2016
b49b53d
Event feature , with Float Action Button
hardik124 Nov 21, 2016
bb816f8
Merge remote-tracking branch 'origin/branch2' into branch2
hardik124 Nov 21, 2016
48dbb9b
Event feature , with Float Action Button
hardik124 Nov 21, 2016
f04b31e
Event feature , with Float Action Button
hardik124 Nov 21, 2016
fc3f132
Event feature , with Float Action Button
hardik124 Nov 21, 2016
0df95de
Merge pull request #1 from hardik124/branch2
hardik124 Jan 17, 2017
333fda2
Merge pull request #2 from hardik124/feature1
hardik124 Jan 17, 2017
bec538a
Post function Completed in StoreRoom Feature
Nov 13, 2016
2a9fde1
Store Room Completed
Dec 16, 2016
90cfe3d
fix
Dec 18, 2016
1fff58f
fix
Dec 18, 2016
074c4c8
fix
Dec 18, 2016
46e9dec
Store Room Completed
Dec 20, 2016
13ebdfe
Store Room Completed
Dec 20, 2016
47b34f2
Store Room Completed
Dec 20, 2016
ee8637e
Store Room Completed
Dec 20, 2016
e73e3f6
Implemented Recycler View .
hardik124 Jan 13, 2017
589b79e
Implemented Recycler View .
hardik124 Jan 16, 2017
6476cfc
Search Added
hardik124 Jan 25, 2017
590db6e
Search Added
hardik124 Jan 25, 2017
df1471f
Search Added
hardik124 Jan 25, 2017
8eccab8
Merge remote-tracking branch 'remotes/upstream/storeRoom' into TryRebase
hardik124 Jan 26, 2017
a523042
Merge remote-tracking branch 'remotes/upstream/storeRoom' into TryRebase
hardik124 Jan 26, 2017
1a0ad3e
XzXZX
hardik124 Jan 27, 2017
0fc69c2
Merge remote-tracking branch 'upstream/master'
hardik124 Jan 28, 2017
4034477
Merge remote-tracking branch 'upstream/master'
hardik124 Jan 28, 2017
9424142
Merge pull request #3 from hardik124/Home
hardik124 Jan 28, 2017
ef74b0b
Merge branch 'master' of https://github.com/G-LOKi/ZConnect into PullTry
hardik124 Jan 30, 2017
bcc3388
Merge remote-tracking branch 'upstream/master' into PullTry
hardik124 Jan 30, 2017
de44025
Merge branch 'master' of https://github.com/G-LOKi/ZConnect into PullTry
hardik124 Jan 30, 2017
8968748
Merge branch 'master' of https://github.com/G-LOKi/ZConnect into PullTry
hardik124 Jan 30, 2017
0dd3f51
Merge branch 'master' of https://github.com/G-LOKi/ZConnect into PullTry
hardik124 Jan 31, 2017
9cac9de
Merge remote-tracking branch 'origin/master' into PullTry
hardik124 Jan 31, 2017
e489909
Pull try (#16)
hardik124 Jan 31, 2017
1c3fd0f
Merge branch 'Home2' of https://github.com/G-LOKi/ZConnect into PullTry
hardik124 Feb 1, 2017
85eafbf
Merge pull request #5 from hardik124/PullTry
hardik124 Feb 1, 2017
73f3809
Merge branch 'master' of https://github.com/hardik124/ZConnect into P…
hardik124 Feb 1, 2017
cf98869
Merge branch 'master' of https://github.com/G-LOKi/ZConnect into PullTry
hardik124 Feb 1, 2017
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
6 changes: 0 additions & 6 deletions .idea/encodings.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

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

11 changes: 11 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

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

1 change: 1 addition & 0 deletions .idea/misc.xml

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

2 changes: 1 addition & 1 deletion .idea/modules.xml

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

15 changes: 15 additions & 0 deletions ZConnect2.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="ZConnect2" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

34 changes: 21 additions & 13 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,46 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "24.0.1"

buildToolsVersion '25.0.0'
dexOptions {
javaMaxHeapSize "4g"
}
defaultConfig {
applicationId "com.zconnect.login.zconnect"
minSdkVersion 16
minSdkVersion 18
targetSdkVersion 24
versionCode 1
versionName "1.0"
multiDexEnabled true

}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

repositories {
maven { url 'https://maven.fabric.io/public' }
}

}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile files('libs/zbar.jar')

// compile 'com.firebaseui:firebase-ui:1.0.0'
// compile 'com.firebaseui:firebase-ui-database:1.0.0'

compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.google.firebase:firebase-core:9.8.0'
compile 'com.google.firebase:firebase-database:9.8.0'
compile 'com.google.firebase:firebase-storage:9.8.0'
compile 'com.google.firebase:firebase-auth:9.8.0'
compile 'com.google.android.gms:play-services-auth:9.8.0'
//compile 'com.android.support:multidex:1.0.1'


compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:recyclerview-v7:24.2.1'
Expand All @@ -46,8 +51,11 @@ dependencies {
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.facebook.fresco:fresco:0.12.0'
compile 'com.github.jjobes:slideDateTimePicker:1.0.2'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
testCompile 'junit:junit:4.12'
}



apply plugin: 'com.google.gms.google-services'
Binary file removed app/libs/zbar.jar
Binary file not shown.
17 changes: 0 additions & 17 deletions app/proguard-rules.pro

This file was deleted.

This file was deleted.

8 changes: 7 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.CALL_PHONE" />

<application
android:name=".ZConnect"
Expand Down Expand Up @@ -50,6 +51,7 @@
<meta-data
android:name="android.app.default_searchable"
android:value=".Phonebook_File.PhonebookSearch" />
android:value=".Phonebook_File.PhonebookSearch" />
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".HomeActivity" />
Expand Down Expand Up @@ -97,11 +99,15 @@
android:value=".HomeActivity" />
</activity>
<activity android:name=".OpenEventDetail" />
<activity android:name=".shop.Details_of_shop.ShopDetails" />
<activity android:name=".shop.categories.Shop" />
<activity android:name=".shop.ShopList.ListOfShop" />

<activity android:name=".OpenProductDetail" />
<activity
android:name=".HomeActivity"
android:label="ZConnect"
android:theme="@style/AppTheme"></activity>
android:theme="@style/AppTheme" />
</application>

</manifest>
32 changes: 21 additions & 11 deletions app/src/main/java/com/zconnect/login/zconnect/AddEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected void onCreate(Bundle savedInstanceState) {
mEventDescription = (EditText) findViewById(R.id.EventDescription);
mPostBtn = (Button) findViewById(R.id.postButton);
mStorage = FirebaseStorage.getInstance().getReference();
mDatabase = FirebaseDatabase.getInstance().getReference().child("ZConnect/Events/Posts");
mDatabase = FirebaseDatabase.getInstance().getReference().child("ZConnect");

CalendarButton = (Button) findViewById(R.id.Calender_button);

Expand Down Expand Up @@ -104,16 +104,26 @@ private void startPosting() {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
Uri downloadUri = taskSnapshot.getDownloadUrl();
DatabaseReference newPost = mDatabase.push();
String key = newPost.getKey();
newPost.child("Key").setValue(key);
newPost.child("EventName").setValue(eventNameValue);
newPost.child("EventDescription").setValue(eventDescriptionValue);
newPost.child("EventImage").setValue(downloadUri.toString());
newPost.child("EventDate").setValue(eventDate);
newPost.child("FormatDate").setValue(dateString);


{
DatabaseReference newPost = mDatabase.child("/Events/Posts").push();
String key = newPost.getKey();
newPost.child("Key").setValue(key);
newPost.child("EventName").setValue(eventNameValue);
newPost.child("EventDescription").setValue(eventDescriptionValue);
newPost.child("EventImage").setValue(downloadUri.toString());
newPost.child("EventDate").setValue(eventDate);
newPost.child("FormatDate").setValue(dateString);

}
{
DatabaseReference newPost = mDatabase.child("ZConnect/everything").push();
newPost.child("Title").setValue(eventNameValue);
newPost.child("Description").setValue(eventDescriptionValue);
newPost.child("Url").setValue(downloadUri.toString());
newPost.child("multiUse2").setValue(eventDate);
newPost.child("multiUse1").setValue(dateString);

}
mProgress.dismiss();
startActivity(new Intent(AddEvent.this, AllEvents.class));
}
Expand Down
36 changes: 24 additions & 12 deletions app/src/main/java/com/zconnect/login/zconnect/AddProduct.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class AddProduct extends AppCompatActivity {
private Uri mImageUri = null;
private ImageButton mAddImage;
private Button mPostBtn;
private EditText mProductName;
private EditText mProductName, mPosterNumber;
private EditText mProductDescription;
private StorageReference mStorage;
private DatabaseReference mDatabase;
Expand All @@ -50,10 +50,11 @@ protected void onCreate(Bundle savedInstanceState) {
mProductDescription = (EditText)findViewById(R.id.description);
mPostBtn = (Button)findViewById(R.id.postButton);
mStorage = FirebaseStorage.getInstance().getReference();
mDatabase = FirebaseDatabase.getInstance().getReference().child("ZConnect/storeroom");
mDatabase = FirebaseDatabase.getInstance().getReference().child("ZConnect");
spinner1 = (Spinner) findViewById(R.id.spinner1);
mAuth = FirebaseAuth.getInstance();
mProgress = new ProgressDialog(this);
mPosterNumber = (EditText) findViewById(R.id.PosterPhoneNo);

mAddImage.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down Expand Up @@ -104,16 +105,27 @@ public void onCancelled(DatabaseError databaseError) {
@Override
public void onSuccess(UploadTask.TaskSnapshot taskSnapshot) {
Uri downloadUri = taskSnapshot.getDownloadUrl();

DatabaseReference newPost = mDatabase.push();
String key = newPost.getKey();
newPost.child("Category").setValue(String.valueOf(spinner1.getSelectedItem()));
newPost.child("Key").setValue(key);
newPost.child("ProductName").setValue(productNameValue);
newPost.child("ProductDescription").setValue(productDescriptionValue);
newPost.child("Image").setValue(downloadUri.toString());
newPost.child("PostedBy").setValue(mAuth.getCurrentUser().getUid());
newPost.child("SellerUsername").setValue(sellerName);
{ //Store in Storeroom
DatabaseReference newPost = mDatabase.child("storeroom").push();
String key = newPost.getKey();
newPost.child("Category").setValue(String.valueOf(spinner1.getSelectedItem()));
newPost.child("Key").setValue(key);
newPost.child("ProductName").setValue(productNameValue);
newPost.child("ProductDescription").setValue(productDescriptionValue);
newPost.child("Image").setValue(downloadUri.toString());
newPost.child("PostedBy").setValue(mAuth.getCurrentUser().getUid());
newPost.child("SellerUsername").setValue(sellerName);
}
{
{ //Store in everything
DatabaseReference newPost = mDatabase.child("everything").push();
newPost.child("Title").setValue(productNameValue);
newPost.child("Description").setValue(productDescriptionValue);
newPost.child("Url").setValue(downloadUri.toString());
newPost.child("Phone_no").setValue(mPosterNumber.getText().toString());

}
}
mProgress.dismiss();
startActivity(new Intent(AddProduct.this,TabStoreRoom.class));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.Toast;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import android.widget.LinearLayout;


public class CollapseAnimation extends TranslateAnimation implements TranslateAnimation.AnimationListener{
public class CollapseAnimation extends TranslateAnimation implements TranslateAnimation.AnimationListener {

private LinearLayout slidingLayout;
int panelWidth;
private LinearLayout slidingLayout;

public CollapseAnimation(LinearLayout layout, int width, int fromXType, float fromXValue, int toXType,
float toXValue, int fromYType, float fromYValue, int toYType, float toYValue) {
Expand All @@ -21,7 +21,7 @@ public CollapseAnimation(LinearLayout layout, int width, int fromXType, float fr
slidingLayout = layout;
panelWidth = width;
setDuration(400);
setFillAfter( false );
setFillAfter(false);
setInterpolator(new AccelerateDecelerateInterpolator());
setAnimationListener(this);

Expand All @@ -34,6 +34,7 @@ public CollapseAnimation(LinearLayout layout, int width, int fromXType, float fr
slidingLayout.startAnimation(this);

}

public void onAnimationEnd(Animation animation) {

}
Expand Down
Loading