Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# assessment_SeptemberTraining
This Repo is to submit the Android assignments. (September 2021 training)

## Asignment-1

| Layout-1 | Layout-2|
:-------------------------:|:-------------------------:
| <img src="https://user-images.githubusercontent.com/77436328/147749279-c3d85ede-ff6a-4971-9645-ebd3ded173a3.png" width="300" height="500"> | <img src="https://user-images.githubusercontent.com/77436328/147749234-1c3b3367-06dd-4613-8380-0ca770a25e24.png" width="330" height="500">|


## Assignment -2

| Layout-1 | Layout-2|
:-------------------------:|:-------------------------:
| <img src="https://user-images.githubusercontent.com/77436328/152938533-7921fc03-7c20-4ff2-b701-f41d44c9e2de.png" width="300" height="500"> | <img src="https://user-images.githubusercontent.com/77436328/152938259-8cd6f55a-f63e-47b6-9081-4f69ce5a9a39.png" width="330" height="500">|

## Assignment -3

| Layout-1 | Layout-2|
:-------------------------:|:-------------------------:
| <img src="https://user-images.githubusercontent.com/77436328/152941218-d45054ba-ba79-499a-8d03-621c0efa144d.png" width="300" height="500"> | <img src="https://user-images.githubusercontent.com/77436328/152941546-48bd0926-8fa8-4a91-bf0a-0105e85ec385.png" width="330" height="500">|
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
/entry/.preview
.cxx

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

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

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

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

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

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

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

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

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

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: 'com.huawei.ohos.app'

//For instructions on signature configuration, see https://developer.harmonyos.com/en/docs/documentation/doc-guides/ide_debug_device-0000001053822404#EN-US_TOPIC_0000001154985555__section1112183053510
ohos {
compileSdkVersion 5
defaultConfig {
compatibleSdkVersion 5
}
}

buildscript {
repositories {
maven {
url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
url 'https://developer.huawei.com/repo/'
}
jcenter()
}
dependencies {
classpath 'com.huawei.ohos:hap:2.4.4.2'
classpath 'com.huawei.ohos:decctest:1.2.4.0'
}
}

allprojects {
repositories {
maven {
url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
url 'https://developer.huawei.com/repo/'
}
jcenter()
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apply plugin: 'com.huawei.ohos.hap'
apply plugin: 'com.huawei.ohos.decctest'
//For instructions on signature configuration, see https://developer.harmonyos.com/en/docs/documentation/doc-guides/ide_debug_device-0000001053822404#EN-US_TOPIC_0000001154985555__section1112183053510
ohos {
compileSdkVersion 5
defaultConfig {
compatibleSdkVersion 5
}
buildTypes {
release {
proguardOpt {
proguardEnabled false
rulesFiles 'proguard-rules.pro'
}
}
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
testImplementation 'junit:junit:4.13'
ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100'
}
decc {
supportType = ['html','xml']
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# config module specific ProGuard rules here.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"app": {
"bundleName": "com.example.assignment_1",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.assignment_1",
"name": ".MyApplication",
"mainAbility": "com.example.assignment_1.MainAbility",
"deviceType": [
"phone",
"tablet",
"tv"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry",
"installationFree": true
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"orientation": "unspecified",
"name": "com.example.assignment_1.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:entry_MainAbility",
"type": "page",
"launchType": "standard"
},
{
"orientation": "unspecified",
"name": "com.example.assignment_1.Layout2",
"icon": "$media:icon",
"description": "$string:layout2_description",
"label": "$string:entry_Layout2",
"type": "page",
"launchType": "standard"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.assignment_1;

import com.example.assignment_1.slice.Layout2Slice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class Layout2 extends Ability {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
super.setMainRoute(Layout2Slice.class.getName());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.assignment_1;

import com.example.assignment_1.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
super.setMainRoute(MainAbilitySlice.class.getName());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.example.assignment_1;

import ohos.aafwk.ability.AbilityPackage;

public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
Loading