Skip to content

Commit 1a36a1c

Browse files
committed
init commit
1 parent 389e41c commit 1a36a1c

File tree

90 files changed

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

90 files changed

+8449
-0
lines changed

.gitignore

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Built application files
2+
*.apk
3+
*.ap_
4+
5+
# Files for the ART/Dalvik VM
6+
*.dex
7+
8+
# Java class files
9+
*.class
10+
11+
# Generated files
12+
bin/
13+
gen/
14+
out/
15+
16+
# Gradle files
17+
.gradle/
18+
build/
19+
20+
# Local configuration file (sdk path, etc)
21+
local.properties
22+
23+
# Proguard folder generated by Eclipse
24+
proguard/
25+
26+
# Log Files
27+
*.log
28+
29+
# Android Studio Navigation editor temp files
30+
.navigation/
31+
32+
# Android Studio captures folder
33+
captures/
34+
35+
# Intellij
36+
*.iml
37+
.idea/workspace.xml
38+
.idea/libraries
39+
40+
# Keystore files
41+
*.jks
42+
43+
# External native build folder generated in Android Studio 2.2 and later
44+
.externalNativeBuild

.idea/compiler.xml

+23
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/encodings.xml

+6
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

+69
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

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

app/build.gradle

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 27
5+
buildToolsVersion "27.0.0"
6+
defaultConfig {
7+
applicationId "com.devhima.xcrypto"
8+
minSdkVersion 15
9+
targetSdkVersion 27
10+
versionCode 6
11+
versionName "2.1.1"
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(dir: 'libs', include: ['*.jar'])
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.0.0'
29+
compile 'com.android.support:design:25.0.0'
30+
31+
testCompile 'junit:junit:4.12'
32+
}

app/proguard-rules.pro

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/Jaison/Library/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+
#}

app/src/main/AndroidManifest.xml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.devhima.xcrypto">
4+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
5+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
6+
<application
7+
android:allowBackup="true"
8+
android:icon="@mipmap/ic_launcher"
9+
android:label="@string/app_name"
10+
android:supportsRtl="true"
11+
android:theme="@style/AppTheme">
12+
<activity android:name=".ViewPager.MainActivity">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN" />
15+
<category android:name="android.intent.category.LAUNCHER" />
16+
</intent-filter>
17+
</activity>
18+
</application>
19+
20+
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
package com.devhima.xcrypto.Fragment;
2+
3+
import android.content.*;
4+
import android.net.*;
5+
import android.os.*;
6+
import android.support.annotation.*;
7+
import android.support.v4.app.*;
8+
import android.view.*;
9+
import android.view.View.*;
10+
import android.widget.*;
11+
import com.devhima.xcrypto.*;
12+
import com.devhima.xcrypto.ViewPager.*;
13+
14+
15+
/**
16+
* AboutFragment subclass.
17+
*/
18+
public class AboutFragment extends Fragment {
19+
20+
21+
public AboutFragment() {
22+
// Required empty public constructor
23+
}
24+
25+
// Define AboutFragment vars:
26+
private Button fragmentaboutButtonVDW;
27+
private TextView fragmentaboutTextViewNtruLink;
28+
29+
// Initializing AboutFragment vars, contents & methods
30+
private void initAboutFragmentContents(View view){
31+
// VARs & Contents
32+
this.fragmentaboutButtonVDW = view.findViewById(R.id.fragmentaboutButtonVDW);
33+
this.fragmentaboutTextViewNtruLink = view.findViewById(R.id.fragmentaboutTextViewNtruLink);
34+
35+
// Methods
36+
37+
// fragmentaboutButtonVDW - onClick method
38+
fragmentaboutButtonVDW.setOnClickListener(new OnClickListener(){
39+
@Override
40+
public void onClick(View p1)
41+
{
42+
Intent browse = new Intent(Intent.ACTION_VIEW, Uri.parse("https://devhima.tk/"));
43+
startActivity(browse);
44+
}
45+
});
46+
47+
// fragmentaboutTextViewNtruLink - onClick method
48+
fragmentaboutTextViewNtruLink.setOnClickListener(new OnClickListener(){
49+
@Override
50+
public void onClick(View p1)
51+
{
52+
Intent browse = new Intent(Intent.ACTION_VIEW, Uri.parse("https://github.com/NTRUOpenSourceProject/ntru-crypto"));
53+
startActivity(browse);
54+
}
55+
});
56+
}
57+
58+
@Override
59+
public void onCreate(@Nullable Bundle savedInstanceState) {
60+
super.onCreate(savedInstanceState);
61+
setHasOptionsMenu(true);
62+
}
63+
64+
@Override
65+
public View onCreateView(LayoutInflater inflater, ViewGroup container,
66+
Bundle savedInstanceState) {
67+
// Inflate the layout for this fragment
68+
View view = inflater.inflate(R.layout.fragment_about, container, false);
69+
initAboutFragmentContents(view);
70+
return view;
71+
}
72+
73+
@Override
74+
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
75+
inflater.inflate(R.menu.menu_about_fragment, menu);
76+
super.onCreateOptionsMenu(menu, inflater);
77+
}
78+
79+
@Override
80+
public boolean onOptionsItemSelected(MenuItem item) {
81+
// Handle item selection
82+
switch (item.getItemId()) {
83+
case R.id.action_visit:
84+
//Visit website
85+
fragmentaboutButtonVDW.callOnClick();
86+
return true;
87+
default:
88+
return super.onOptionsItemSelected(item);
89+
}
90+
}
91+
92+
}

0 commit comments

Comments
 (0)