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

Simple/Scientific/Graph setup #72

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 15 additions & 0 deletions Calculator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
3 changes: 3 additions & 0 deletions Calculator/.idea/.gitignore

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

6 changes: 6 additions & 0 deletions Calculator/.idea/compiler.xml

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

20 changes: 20 additions & 0 deletions Calculator/.idea/gradle.xml

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

45 changes: 45 additions & 0 deletions Calculator/.idea/misc.xml

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

6 changes: 6 additions & 0 deletions Calculator/.idea/vcs.xml

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

Empty file added Calculator/app/.gitignore
Empty file.
54 changes: 54 additions & 0 deletions Calculator/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
}

android {
compileSdk 32

defaultConfig {
applicationId "com.example.calculator"
minSdk 16
targetSdk 32
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures {
viewBinding true
}
}

dependencies {

implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
implementation 'com.google.android.material:material:1.6.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment-ktx:2.3.5'
implementation 'androidx.navigation:navigation-ui-ktx:2.3.5'
implementation files('libs\\GraphView-4.0.1.jar')
testImplementation 'junit:junit:4.13.2'
implementation 'net.objecthunter:exp4j:0.4.5'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation 'io.apisense:rhino-android:1.0'
implementation 'com.intuit.ssp:ssp-android:1.0.5'
implementation 'com.intuit.sdp:sdp-android:1.0.5'
implementation 'de.hdodenhof:circleimageview:3.1.0'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
// Generated by view binder compiler. Do not edit!
package com.example.calculator.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.calculator.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class ActivityGraphBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;

@NonNull
public final Button Cosecx;

@NonNull
public final Button Cosx;

@NonNull
public final Button Cotx;

@NonNull
public final Button Equal;

@NonNull
public final Button Logx;

@NonNull
public final Button Secx;

@NonNull
public final Button Sinx;

@NonNull
public final Button Tanx;

@NonNull
public final Button btnThemeConverter;

@NonNull
public final Button graphCubex;

@NonNull
public final Button graphSqrtx;

@NonNull
public final Button graphSquareX;

@NonNull
public final Button graphX;

@NonNull
public final TextView value;

private ActivityGraphBinding(@NonNull LinearLayout rootView, @NonNull Button Cosecx,
@NonNull Button Cosx, @NonNull Button Cotx, @NonNull Button Equal, @NonNull Button Logx,
@NonNull Button Secx, @NonNull Button Sinx, @NonNull Button Tanx,
@NonNull Button btnThemeConverter, @NonNull Button graphCubex, @NonNull Button graphSqrtx,
@NonNull Button graphSquareX, @NonNull Button graphX, @NonNull TextView value) {
this.rootView = rootView;
this.Cosecx = Cosecx;
this.Cosx = Cosx;
this.Cotx = Cotx;
this.Equal = Equal;
this.Logx = Logx;
this.Secx = Secx;
this.Sinx = Sinx;
this.Tanx = Tanx;
this.btnThemeConverter = btnThemeConverter;
this.graphCubex = graphCubex;
this.graphSqrtx = graphSqrtx;
this.graphSquareX = graphSquareX;
this.graphX = graphX;
this.value = value;
}

@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}

@NonNull
public static ActivityGraphBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}

@NonNull
public static ActivityGraphBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_graph, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}

@NonNull
public static ActivityGraphBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.Cosecx;
Button Cosecx = ViewBindings.findChildViewById(rootView, id);
if (Cosecx == null) {
break missingId;
}

id = R.id.Cosx;
Button Cosx = ViewBindings.findChildViewById(rootView, id);
if (Cosx == null) {
break missingId;
}

id = R.id.Cotx;
Button Cotx = ViewBindings.findChildViewById(rootView, id);
if (Cotx == null) {
break missingId;
}

id = R.id.Equal;
Button Equal = ViewBindings.findChildViewById(rootView, id);
if (Equal == null) {
break missingId;
}

id = R.id.Logx;
Button Logx = ViewBindings.findChildViewById(rootView, id);
if (Logx == null) {
break missingId;
}

id = R.id.Secx;
Button Secx = ViewBindings.findChildViewById(rootView, id);
if (Secx == null) {
break missingId;
}

id = R.id.Sinx;
Button Sinx = ViewBindings.findChildViewById(rootView, id);
if (Sinx == null) {
break missingId;
}

id = R.id.Tanx;
Button Tanx = ViewBindings.findChildViewById(rootView, id);
if (Tanx == null) {
break missingId;
}

id = R.id.btnThemeConverter;
Button btnThemeConverter = ViewBindings.findChildViewById(rootView, id);
if (btnThemeConverter == null) {
break missingId;
}

id = R.id.graph_Cubex;
Button graphCubex = ViewBindings.findChildViewById(rootView, id);
if (graphCubex == null) {
break missingId;
}

id = R.id.graph_Sqrtx;
Button graphSqrtx = ViewBindings.findChildViewById(rootView, id);
if (graphSqrtx == null) {
break missingId;
}

id = R.id.graph_SquareX;
Button graphSquareX = ViewBindings.findChildViewById(rootView, id);
if (graphSquareX == null) {
break missingId;
}

id = R.id.graph_x;
Button graphX = ViewBindings.findChildViewById(rootView, id);
if (graphX == null) {
break missingId;
}

id = R.id.value;
TextView value = ViewBindings.findChildViewById(rootView, id);
if (value == null) {
break missingId;
}

return new ActivityGraphBinding((LinearLayout) rootView, Cosecx, Cosx, Cotx, Equal, Logx,
Secx, Sinx, Tanx, btnThemeConverter, graphCubex, graphSqrtx, graphSquareX, graphX, value);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}
Loading