-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d97ca68
commit 5820ecf
Showing
9 changed files
with
1,393 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .core import MobileAdapt | ||
|
||
from .device.device_factory import DeviceFactory | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import asyncio | ||
|
||
import base64 | ||
import io | ||
import os | ||
|
||
from datetime import datetime | ||
|
||
from PIL import Image | ||
from loguru import logger | ||
from cognisim import mobileadapt | ||
|
||
|
||
async def main(): | ||
|
||
ios_device = mobileadapt(platform="ios") | ||
|
||
await ios_device.start_device() | ||
|
||
|
||
encoded_ui, screenshot, ui = await ios_device.get_state() | ||
logger.info(f"Current state: {encoded_ui}") | ||
|
||
if __name__ == "__main__": | ||
asyncio.run(main()) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,15 @@ requires = ["poetry-core>=1.0.0"] | |
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.poetry] | ||
name = "mobileadapt" | ||
name = "cognisim" | ||
version = "0.1.0" | ||
description = "A package for mobile app adaptation and testing" | ||
authors = ["Revyl AI <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/RevylAI/Mobileadapt" | ||
homepage = "https://mobileadapt.revyl.ai" | ||
packages = [{include = "mobileadapt"}] | ||
packages = [{include = "cognisim"}] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
|
@@ -35,6 +35,7 @@ pillow = "^10.4.0" | |
opencv-python = "^4.10.0.84" | ||
retrying = "^1.3.4" | ||
openai = "^1.43.0" | ||
setuptools = "^75.2.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
from setuptools import find_packages, setup | ||
|
||
with open("README.md", "r", encoding="utf-8") as fh: | ||
long_description = fh.read() | ||
|
||
setup( | ||
name="mobileadapt", | ||
version="0.1.0", | ||
author="Revyl AI", | ||
author_email="[email protected]", | ||
description="A package for mobile app adaptation and testing", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/revyl-ai/mobileadapt", | ||
packages=find_packages(), | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
], | ||
python_requires=">=3.7", | ||
install_requires=[ | ||
"appium-python-client", | ||
"loguru", | ||
"lxml", | ||
"numpy", | ||
"attrs", | ||
], | ||
) |