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

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

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.0.0.7'
}
}

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,40 @@
apply plugin: 'com.huawei.ohos.hap'
apply plugin: 'com.huawei.ohos.decctest'
ohos {
compileSdkVersion 5
defaultConfig {
compatibleSdkVersion 5
}
buildTypes {
release {
proguardOpt {
proguardEnabled false
rulesFiles 'proguard-rules.pro'
}
}
}
compileOptions{
annotationEnabled true
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
testImplementation 'junit:junit:4.13'
ohosTestImplementation 'com.huawei.ohos.testkit:runner:1.0.0.100'

compile files(
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\api\\ohos.jar",
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\build-tools\\lib\\orm_annotations_java.jar",
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\build-tools\\lib\\orm_annotations_processor_java.jar",
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\build-tools\\lib\\javapoet_java.jar"
)
annotationProcessor files(
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\build-tools\\lib\\orm_annotations_java.jar",
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\build-tools\\lib\\orm_annotations_processor_java.jar",
"C:\\Users\\shivam.jamaiwar\\AppData\\Local\\Huawei\\Sdk\\java\\2.1.1.21\\build-tools\\lib\\javapoet_java.jar"
)
}
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,76 @@
{
"app": {
"bundleName": "com.example.myfirstapplication",
"vendor": "example",
"version": {
"code": 1000000,
"name": "1.0.0"
},
"apiVersion": {
"compatible": 5,
"target": 5,
"releaseType": "Release"
}
},
"deviceConfig": {},
"module": {
"package": "com.example.myfirstapplication",
"name": ".MyApplication",
"deviceType": [
"phone"
],
"distro": {
"deliveryWithInstall": true,
"moduleName": "entry",
"moduleType": "entry"
},
"abilities": [
{
"skills": [
{
"entities": [
"entity.system.home"
],
"actions": [
"action.system.home"
]
}
],
"orientation": "unspecified",
"name": "com.example.myfirstapplication.MainAbility",
"icon": "$media:icon",
"description": "$string:mainability_description",
"label": "$string:app_name",
"type": "page",
"launchType": "standard"
},
{
"orientation": "unspecified",
"name": "com.example.myfirstapplication.LoginAbility",
"icon": "$media:icon",
"description": "$string:secondability_description",
"label": "$string:title_login",
"type": "page",
"launchType": "standard"
},
{
"orientation": "unspecified",
"name": "com.example.myfirstapplication.SignupAbility",
"icon": "$media:icon",
"description": "$string:signupability_description",
"label": "$string:title_signup",
"type": "page",
"launchType": "standard"
},
{
"orientation": "unspecified",
"name": "com.example.myfirstapplication.HomeAbility",
"icon": "$media:icon",
"description": "$string:homeability_description",
"label": "$string:title_home",
"type": "page",
"launchType": "standard"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.myfirstapplication;

import com.example.myfirstapplication.slice.HomeAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

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

import com.example.myfirstapplication.slice.LoginAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

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

import com.example.myfirstapplication.rdb.RdbHelper;
import com.example.myfirstapplication.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.myfirstapplication;

import ohos.aafwk.ability.AbilityPackage;

public class MyApplication extends AbilityPackage {
@Override
public void onInitialize() {
super.onInitialize();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.example.myfirstapplication;

import com.example.myfirstapplication.slice.SignupAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class SignupAbility extends Ability {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
super.setMainRoute(SignupAbilitySlice.class.getName());
}
}
Loading